Skip to content

Commit f46dc98

Browse files
masterfulirvinlim
authored andcommitted
Include package-lock.json during build (#29)
* include package-lock.json when building dist * should also add it to the test step, too
1 parent 6bc4757 commit f46dc98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"build": "npm run build:init && npm run build:js && npm run build:install",
3636
"build:init": "rm -rf dist && mkdir dist",
3737
"build:js": "cd src && babel . -d ../dist",
38-
"build:install": "cp package.json dist/ && cd dist && npm install --production",
38+
"build:install": "cp package.json package-lock.json dist/ && cd dist && npm install --production",
3939
"deploy": "npm run package && npm run deploy:run",
4040
"deploy:run": "babel-node ./bin/deploy.js",
4141
"package": "npm run build && npm run package:pack",
@@ -47,7 +47,7 @@
4747
"test:build": "npm run test:build:init && npm run test:build:js && npm run test:build:install",
4848
"test:build:init": "cd test && rm -rf dist && mkdir dist",
4949
"test:build:js": "cd src && babel . -d ../test/dist",
50-
"test:build:install": "cp package.json test/dist/ && cd test/dist && npm install --production",
50+
"test:build:install": "cp package.json package-lock.json test/dist/ && cd test/dist && npm install --production",
5151
"test:run": "jest test/"
5252
},
5353
"dependencies": {

0 commit comments

Comments
 (0)