File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 2525 " plugin:prettier/recommended"
2626 ],
2727 "rules" : {
28+ "@typescript-eslint/no-var-requires" : [
29+ " error" ,
30+ {
31+ "allow" : [" /package\\ .json$" ]
32+ }
33+ ],
2834 "require-jsdoc" : [
2935 " error" ,
3036 {
Original file line number Diff line number Diff line change 1010 "types" : " dist/index.d.ts" ,
1111 "scripts" : {
1212 "test" : " cross-env NODE_ENV=test npx jest" ,
13- "development" : " cross-env NODE_ENV=local npx rollup --config rollup.config.ts --configPlugin typescript" ,
13+ "development" : " cross-env NODE_ENV=local npx rollup --bundleConfigAsCjs -- config rollup.config.ts --configPlugin typescript" ,
1414 "dev" : " npm run development" ,
15- "production" : " cross-env NODE_ENV=production npx rollup --config rollup.config.ts --configPlugin typescript" ,
15+ "production" : " cross-env NODE_ENV=production npx rollup --bundleConfigAsCjs -- config rollup.config.ts --configPlugin typescript" ,
1616 "prod" : " npm run production" ,
17- "watch" : " cross-env NODE_ENV=local npx rollup --config rollup.config.ts --configPlugin typescript --watch" ,
17+ "watch" : " cross-env NODE_ENV=local npx rollup --bundleConfigAsCjs -- config rollup.config.ts --configPlugin typescript --watch" ,
1818 "lint" : " npx eslint --ext .tsx,.ts ./" ,
1919 "clean" : " rm -rf dist"
2020 },
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import { nodeResolve } from '@rollup/plugin-node-resolve';
33import typescript from '@rollup/plugin-typescript' ;
44import terser from '@rollup/plugin-terser' ;
55
6- import pkg from './package.json' assert { type : 'json' } ;
7-
6+ const pkg = require ( './package.json' ) ;
87const local = process . env . NODE_ENV === 'local' ;
98
109export default {
You can’t perform that action at this time.
0 commit comments