Skip to content

Commit 093219d

Browse files
committed
chore: switch to toolchain
1 parent 8b426b3 commit 093219d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+9923
-9480
lines changed

.babelrc.cjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-env node, es2018 */
2+
module.exports = function (api) {
3+
const base = require('@jcoreio/toolchain-esnext/.babelrc.cjs')(api)
4+
return {
5+
...base,
6+
}
7+
}

.babelrc.js

-24
This file was deleted.

.circleci/config.yml

+24-20
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
1-
version: 2
1+
# created by @jcoreio/toolchain-circle
2+
3+
version: 2.1
24
jobs:
35
build:
46
docker:
5-
- image: circleci/node:16
7+
- image: cimg/node:20.3.0
68

79
steps:
810
- checkout
9-
1011
- run:
1112
name: Setup NPM Token
1213
command: |
13-
yarn config set registry "https://registry.npmjs.org/"
14-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
15-
echo "registry=https://registry.npmjs.org/" >> .npmrc
16-
17-
# https://github.com/atlassian/react-beautiful-dnd/issues/1007#issuecomment-446415426
14+
npm config set \
15+
"//registry.npmjs.org/:_authToken=$NPM_TOKEN" \
16+
"registry=https://registry.npmjs.org/"
1817
- run:
19-
name: Workaround for Flow crashing
20-
command: echo "server.max_workers=1" >> .flowconfig
21-
18+
name: Corepack enable
19+
command: sudo corepack enable
2220
- run:
2321
name: Install Dependencies
24-
command: yarn install --frozen-lockfile
25-
22+
command: pnpm install --frozen-lockfile
2623
- run:
27-
name: build
28-
command: yarn run prepublishOnly
29-
- run:
30-
name: upload test coverage
31-
command: yarn codecov
24+
name: Prepublish
25+
command: |
26+
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc prepublish
3227
- run:
33-
name: release
34-
command: yarn run semantic-release
28+
name: Release
29+
command: |
30+
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc release
31+
32+
workflows:
33+
build:
34+
jobs:
35+
- build:
36+
context:
37+
- npm-release
38+
- github-release

.eslintrc

-11
This file was deleted.

.eslintrc.cjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-env node, es2018 */
2+
module.exports = {
3+
extends: [require.resolve('@jcoreio/toolchain/eslint.config.cjs')],
4+
env: {
5+
es2017: true,
6+
},
7+
}

.flowconfig

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<PROJECT_ROOT>/node_modules/fbjs/.*
66
<PROJECT_ROOT>/node_modules/.*/fbjs/.*
77
<PROJECT_ROOT>/node_modules/.*/config-chain/.*
8+
<PROJECT_ROOT>/dist/.*
9+
.*/malformed_package_json/.*
810

911
[include]
1012
./src

.gitignore

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
/coverage
2-
/.nyc_output
1+
/dist
2+
.nyc_output
33
node_modules
4-
/lib
5-
/es
6-
.eslintcache
7-
*.js
8-
*.js.flow
9-
*.ts
10-
!/flow-typed/**/*.js
11-
!/src/**/*.js
12-
!/src/**/*.ts
13-
!/test/**/*.js
14-
!/.babelrc.js
4+
/coverage

.mocharc.cjs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* eslint-env node, es2018 */
2+
const base = require('@jcoreio/toolchain-mocha/.mocharc.cjs')
3+
module.exports = {
4+
...base,
5+
}

.npmignore

-11
This file was deleted.

flow-typed/npm/@commitlint/cli_vx.x.x.js

+35-35
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
declare module '@commitlint/cli' {
17-
declare module.exports: any;
17+
declare module.exports: any
1818
}
1919

2020
/**
@@ -23,121 +23,121 @@ declare module '@commitlint/cli' {
2323
* needed.
2424
*/
2525
declare module '@commitlint/cli/fixtures/empty/commitlint.config' {
26-
declare module.exports: any;
26+
declare module.exports: any
2727
}
2828

2929
declare module '@commitlint/cli/fixtures/extends-root/extended' {
30-
declare module.exports: any;
30+
declare module.exports: any
3131
}
3232

3333
declare module '@commitlint/cli/fixtures/inner-scope/commitlint.config' {
34-
declare module.exports: any;
34+
declare module.exports: any
3535
}
3636

3737
declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config' {
38-
declare module.exports: any;
38+
declare module.exports: any
3939
}
4040

4141
declare module '@commitlint/cli/fixtures/issue-prefixes/commitlint.config' {
42-
declare module.exports: any;
42+
declare module.exports: any
4343
}
4444

4545
declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config' {
46-
declare module.exports: any;
46+
declare module.exports: any
4747
}
4848

4949
declare module '@commitlint/cli/fixtures/parser-preset/commitlint.config' {
50-
declare module.exports: any;
50+
declare module.exports: any
5151
}
5252

5353
declare module '@commitlint/cli/fixtures/parser-preset/parser-preset' {
54-
declare module.exports: any;
54+
declare module.exports: any
5555
}
5656

5757
declare module '@commitlint/cli/fixtures/signoff/commitlint.config' {
58-
declare module.exports: any;
58+
declare module.exports: any
5959
}
6060

6161
declare module '@commitlint/cli/fixtures/simple/commitlint.config' {
62-
declare module.exports: any;
62+
declare module.exports: any
6363
}
6464

6565
declare module '@commitlint/cli/lib/cli' {
66-
declare module.exports: any;
66+
declare module.exports: any
6767
}
6868

6969
declare module '@commitlint/cli/lib/cli.test' {
70-
declare module.exports: any;
70+
declare module.exports: any
7171
}
7272

7373
declare module '@commitlint/cli/lib/help' {
74-
declare module.exports: any;
74+
declare module.exports: any
7575
}
7676

7777
declare module '@commitlint/cli/src/cli' {
78-
declare module.exports: any;
78+
declare module.exports: any
7979
}
8080

8181
declare module '@commitlint/cli/src/cli.test' {
82-
declare module.exports: any;
82+
declare module.exports: any
8383
}
8484

8585
declare module '@commitlint/cli/src/help' {
86-
declare module.exports: any;
86+
declare module.exports: any
8787
}
8888

8989
// Filename aliases
9090
declare module '@commitlint/cli/fixtures/empty/commitlint.config.js' {
91-
declare module.exports: $Exports<'@commitlint/cli/fixtures/empty/commitlint.config'>;
91+
declare module.exports: $Exports<'@commitlint/cli/fixtures/empty/commitlint.config'>
9292
}
9393
declare module '@commitlint/cli/fixtures/extends-root/extended.js' {
94-
declare module.exports: $Exports<'@commitlint/cli/fixtures/extends-root/extended'>;
94+
declare module.exports: $Exports<'@commitlint/cli/fixtures/extends-root/extended'>
9595
}
9696
declare module '@commitlint/cli/fixtures/inner-scope/commitlint.config.js' {
97-
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/commitlint.config'>;
97+
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/commitlint.config'>
9898
}
9999
declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config.js' {
100-
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config'>;
100+
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config'>
101101
}
102102
declare module '@commitlint/cli/fixtures/issue-prefixes/commitlint.config.js' {
103-
declare module.exports: $Exports<'@commitlint/cli/fixtures/issue-prefixes/commitlint.config'>;
103+
declare module.exports: $Exports<'@commitlint/cli/fixtures/issue-prefixes/commitlint.config'>
104104
}
105105
declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config.js' {
106-
declare module.exports: $Exports<'@commitlint/cli/fixtures/outer-scope/commitlint.config'>;
106+
declare module.exports: $Exports<'@commitlint/cli/fixtures/outer-scope/commitlint.config'>
107107
}
108108
declare module '@commitlint/cli/fixtures/parser-preset/commitlint.config.js' {
109-
declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/commitlint.config'>;
109+
declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/commitlint.config'>
110110
}
111111
declare module '@commitlint/cli/fixtures/parser-preset/parser-preset.js' {
112-
declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/parser-preset'>;
112+
declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/parser-preset'>
113113
}
114114
declare module '@commitlint/cli/fixtures/signoff/commitlint.config.js' {
115-
declare module.exports: $Exports<'@commitlint/cli/fixtures/signoff/commitlint.config'>;
115+
declare module.exports: $Exports<'@commitlint/cli/fixtures/signoff/commitlint.config'>
116116
}
117117
declare module '@commitlint/cli/fixtures/simple/commitlint.config.js' {
118-
declare module.exports: $Exports<'@commitlint/cli/fixtures/simple/commitlint.config'>;
118+
declare module.exports: $Exports<'@commitlint/cli/fixtures/simple/commitlint.config'>
119119
}
120120
declare module '@commitlint/cli/index' {
121-
declare module.exports: $Exports<'@commitlint/cli'>;
121+
declare module.exports: $Exports<'@commitlint/cli'>
122122
}
123123
declare module '@commitlint/cli/index.js' {
124-
declare module.exports: $Exports<'@commitlint/cli'>;
124+
declare module.exports: $Exports<'@commitlint/cli'>
125125
}
126126
declare module '@commitlint/cli/lib/cli.js' {
127-
declare module.exports: $Exports<'@commitlint/cli/lib/cli'>;
127+
declare module.exports: $Exports<'@commitlint/cli/lib/cli'>
128128
}
129129
declare module '@commitlint/cli/lib/cli.test.js' {
130-
declare module.exports: $Exports<'@commitlint/cli/lib/cli.test'>;
130+
declare module.exports: $Exports<'@commitlint/cli/lib/cli.test'>
131131
}
132132
declare module '@commitlint/cli/lib/help.js' {
133-
declare module.exports: $Exports<'@commitlint/cli/lib/help'>;
133+
declare module.exports: $Exports<'@commitlint/cli/lib/help'>
134134
}
135135
declare module '@commitlint/cli/src/cli.js' {
136-
declare module.exports: $Exports<'@commitlint/cli/src/cli'>;
136+
declare module.exports: $Exports<'@commitlint/cli/src/cli'>
137137
}
138138
declare module '@commitlint/cli/src/cli.test.js' {
139-
declare module.exports: $Exports<'@commitlint/cli/src/cli.test'>;
139+
declare module.exports: $Exports<'@commitlint/cli/src/cli.test'>
140140
}
141141
declare module '@commitlint/cli/src/help.js' {
142-
declare module.exports: $Exports<'@commitlint/cli/src/help'>;
142+
declare module.exports: $Exports<'@commitlint/cli/src/help'>
143143
}

flow-typed/npm/@commitlint/config-conventional_vx.x.x.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
declare module '@commitlint/config-conventional' {
17-
declare module.exports: any;
17+
declare module.exports: any
1818
}
1919

2020
/**
@@ -23,11 +23,10 @@ declare module '@commitlint/config-conventional' {
2323
* needed.
2424
*/
2525

26-
2726
// Filename aliases
2827
declare module '@commitlint/config-conventional/index' {
29-
declare module.exports: $Exports<'@commitlint/config-conventional'>;
28+
declare module.exports: $Exports<'@commitlint/config-conventional'>
3029
}
3130
declare module '@commitlint/config-conventional/index.js' {
32-
declare module.exports: $Exports<'@commitlint/config-conventional'>;
31+
declare module.exports: $Exports<'@commitlint/config-conventional'>
3332
}

flow-typed/npm/@jedwards1211/commitlint-config_vx.x.x.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
declare module '@jedwards1211/commitlint-config' {
17-
declare module.exports: any;
17+
declare module.exports: any
1818
}
1919

2020
/**
@@ -23,10 +23,10 @@ declare module '@jedwards1211/commitlint-config' {
2323
* needed.
2424
*/
2525
declare module '@jedwards1211/commitlint-config/commitlint.config' {
26-
declare module.exports: any;
26+
declare module.exports: any
2727
}
2828

2929
// Filename aliases
3030
declare module '@jedwards1211/commitlint-config/commitlint.config.js' {
31-
declare module.exports: $Exports<'@jedwards1211/commitlint-config/commitlint.config'>;
31+
declare module.exports: $Exports<'@jedwards1211/commitlint-config/commitlint.config'>
3232
}

flow-typed/npm/@jedwards1211/eslint-config-flow_vx.x.x.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
declare module '@jedwards1211/eslint-config-flow' {
17-
declare module.exports: any;
17+
declare module.exports: any
1818
}
1919

2020
/**
@@ -23,11 +23,10 @@ declare module '@jedwards1211/eslint-config-flow' {
2323
* needed.
2424
*/
2525

26-
2726
// Filename aliases
2827
declare module '@jedwards1211/eslint-config-flow/index' {
29-
declare module.exports: $Exports<'@jedwards1211/eslint-config-flow'>;
28+
declare module.exports: $Exports<'@jedwards1211/eslint-config-flow'>
3029
}
3130
declare module '@jedwards1211/eslint-config-flow/index.js' {
32-
declare module.exports: $Exports<'@jedwards1211/eslint-config-flow'>;
31+
declare module.exports: $Exports<'@jedwards1211/eslint-config-flow'>
3332
}

0 commit comments

Comments
 (0)