Skip to content

Commit 04cc66f

Browse files
committed
Adding test-webpack script
1 parent d826155 commit 04cc66f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"mocha": "mocha test/*.js",
3434
"rollup": "rollup --config",
3535
"test": "npm run lint && npm run mocha",
36+
"test-webpack": "mkdir -p test/webpack && rm -rf test/webpack && git clone git@github.com:rabelais88/typescript-webpack.git test/webpack && echo \"import { filesize } from 'filesize';console.log(filesize(1234));\" >> test/webpack/src/index.ts && cd test/webpack && npm install && mkdir -p node_modules/filesize/dist && cp ../../package.json node_modules/filesize/ && cp ../../dist/* node_modules/filesize/dist/ && npm run build",
3637
"types": "npx -p typescript tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir types"
3738
},
3839
"devDependencies": {

0 commit comments

Comments
 (0)