Skip to content

Commit 4035b13

Browse files
committed
Update build file paths
1 parent 09b609a commit 4035b13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"scripts": {
8-
"build": "tsc && rollup -c",
8+
"build": "rm -rf dist && tsc --emitDeclarationOnly && rollup -c",
99
"prepublishOnly": "npm run build",
10-
"start": "node dist/bundle.js",
10+
"start": "node dist/index.js",
1111
"dev": "rollup -c -w",
1212
"test": "echo \"Error: no test specified\" && exit 1"
1313
},

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import commonjs from '@rollup/plugin-commonjs';
55
export default {
66
input: 'src/index.ts',
77
output: {
8-
file: 'dist/bundle.js',
8+
file: 'dist/index.js',
99
format: 'cjs',
1010
exports: 'named',
1111
sourcemap: true,

0 commit comments

Comments
 (0)