We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b609a commit 4035b13Copy full SHA for 4035b13
package.json
@@ -5,9 +5,9 @@
5
"main": "dist/index.js",
6
"types": "dist/index.d.ts",
7
"scripts": {
8
- "build": "tsc && rollup -c",
+ "build": "rm -rf dist && tsc --emitDeclarationOnly && rollup -c",
9
"prepublishOnly": "npm run build",
10
- "start": "node dist/bundle.js",
+ "start": "node dist/index.js",
11
"dev": "rollup -c -w",
12
"test": "echo \"Error: no test specified\" && exit 1"
13
},
rollup.config.js
@@ -5,7 +5,7 @@ import commonjs from '@rollup/plugin-commonjs';
export default {
input: 'src/index.ts',
output: {
- file: 'dist/bundle.js',
+ file: 'dist/index.js',
format: 'cjs',
exports: 'named',
sourcemap: true,
0 commit comments