Skip to content

Commit 944a660

Browse files
committed
ESM Rollup config
1 parent 4ae12bd commit 944a660

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"./help": "./dist/optionz.help.js"
2727
},
2828
"dependencies": {
29-
"@proc7ts/primitives": "^2.2.0",
29+
"@proc7ts/primitives": "^3.0.0",
3030
"string-width": "^5.0.0",
3131
"wrap-ansi": "^8.0.0"
3232
},
@@ -40,10 +40,8 @@
4040
},
4141
"devDependencies": {
4242
"@jest/globals": "^27.0.1",
43-
"@rollup/plugin-commonjs": "^19.0.0",
44-
"@rollup/plugin-node-resolve": "^13.0.0",
4543
"@run-z/eslint-config": "^1.2.1",
46-
"@run-z/rollup-helpers": "^1.1.0",
44+
"@run-z/rollup-helpers": "^1.1.1",
4745
"@types/node": "^12.20.13",
4846
"@types/wrap-ansi": "^8.0.0",
4947
"@typescript-eslint/eslint-plugin": "^4.25.0",
@@ -56,7 +54,7 @@
5654
"jest-junit": "^12.1.0",
5755
"jest-mock": "^27.0.1",
5856
"rollup": "^2.50.2",
59-
"rollup-plugin-flat-dts": "^1.2.1",
57+
"rollup-plugin-flat-dts": "^1.2.2",
6058
"rollup-plugin-sourcemaps": "^0.6.3",
6159
"rollup-plugin-typescript2": "^0.30.0",
6260
"run-z": "=1.7.2-bootstrap",
@@ -69,7 +67,7 @@
6967
},
7068
"scripts": {
7169
"all": "run-z build,lint,test",
72-
"bootstrap": "rollup --config rollup.config.js",
70+
"bootstrap": "rollup -c",
7371
"build": "run-z +z bootstrap",
7472
"ci:all": "run-z all +test/--ci/--runInBand",
7573
"clean": "run-z +z --then shx rm -rf 'index.d.ts?(.map)' '*/index.d.ts?(.map)' dist target",

rollup.config.js rollup.config.mjs

-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import commonjs from '@rollup/plugin-commonjs';
2-
import nodeResolve from '@rollup/plugin-node-resolve';
31
import { externalModules } from '@run-z/rollup-helpers';
42
import path from 'path';
53
import flatDts from 'rollup-plugin-flat-dts';
@@ -14,14 +12,12 @@ export default {
1412
'optionz.help': './src/help/index.ts',
1513
},
1614
plugins: [
17-
commonjs(),
1815
ts({
1916
typescript,
2017
tsconfig: 'tsconfig.main.json',
2118
cacheRoot: 'target/.rts2_cache',
2219
useTsconfigDeclarationDir: true,
2320
}),
24-
nodeResolve(),
2521
sourcemaps(),
2622
],
2723
external: externalModules(),

0 commit comments

Comments
 (0)