Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 1f5d90f

Browse files
committed
ESM Rollup config
1 parent 4194a59 commit 1f5d90f

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,18 @@
3333
"./testing": "./dist/hatsy.testing.js"
3434
},
3535
"dependencies": {
36-
"@frontmeans/httongue": "^2.2.0",
37-
"@hatsy/http-header-value": "^3.5.3",
38-
"@proc7ts/primitives": "^2.2.0"
36+
"@frontmeans/httongue": "^2.3.0",
37+
"@hatsy/http-header-value": "^3.6.0",
38+
"@proc7ts/primitives": "^3.0.0"
3939
},
4040
"engines": {
4141
"node": ">=12"
4242
},
4343
"devDependencies": {
4444
"@jest/globals": "^27.0.1",
45-
"@rollup/plugin-commonjs": "^19.0.0",
4645
"@rollup/plugin-node-resolve": "^13.0.0",
4746
"@run-z/eslint-config": "^1.2.1",
48-
"@run-z/rollup-helpers": "^1.1.0",
47+
"@run-z/rollup-helpers": "^1.1.1",
4948
"@types/node": "^12.20.13",
5049
"@typescript-eslint/eslint-plugin": "^4.25.0",
5150
"@typescript-eslint/parser": "^4.25.0",
@@ -56,7 +55,7 @@
5655
"jest-junit": "^12.1.0",
5756
"jest-mock": "^27.0.1",
5857
"rollup": "^2.50.2",
59-
"rollup-plugin-flat-dts": "^1.2.1",
58+
"rollup-plugin-flat-dts": "^1.2.2",
6059
"rollup-plugin-sourcemaps": "^0.6.3",
6160
"rollup-plugin-typescript2": "^0.30.0",
6261
"run-z": "^1.7.2",
@@ -68,7 +67,7 @@
6867
},
6968
"scripts": {
7069
"all": "run-z build,lint,test",
71-
"build": "run-z +z --then rollup --config ./rollup.config.js",
70+
"build": "run-z +z --then rollup -c",
7271
"ci:all": "run-z all +test/--ci/--runInBand",
7372
"clean": "run-z +z --then shx rm -rf 'index.d.ts?(.map)' '*/index.d.ts?(.map)' dist target",
7473
"doc": "run-z +z --then typedoc",

rollup.config.js renamed to rollup.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import commonjs from '@rollup/plugin-commonjs';
21
import nodeResolve from '@rollup/plugin-node-resolve';
32
import { externalModules } from '@run-z/rollup-helpers';
43
import path from 'path';
@@ -15,7 +14,6 @@ export default {
1514
'hatsy.testing': './src/testing/index.ts',
1615
},
1716
plugins: [
18-
commonjs(),
1917
ts({
2018
typescript,
2119
tsconfig: 'tsconfig.main.json',

0 commit comments

Comments
 (0)