Skip to content

Commit dcf88bf

Browse files
committed
refactor npm scripts
1 parent a0b9ef0 commit dcf88bf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lambda-layer/packages/layer/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
},
1818
"scripts": {
1919
"clean": "rimraf build/*",
20+
"install-externals": "./install-externals.sh",
2021
"lint": "eslint . --ext .ts",
2122
"lint:fix": "eslint . --ext .ts --fix",
22-
"prepare": "npm run compile",
23-
"compile": "webpack && ./install-externals.sh",
24-
"postcompile": "copyfiles -f 'scripts/*' build/workspace && copyfiles -f 'build/src/*' build/workspace && cd build/workspace && bestzip ../layer.zip *"
23+
"prepare": "npm run compile && npm run install-externals && npm run package",
24+
"compile": "webpack",
25+
"package": "cd build/workspace && bestzip ../layer.zip *",
26+
"postcompile": "copyfiles -f 'scripts/*' build/workspace && copyfiles -f 'build/src/*' build/workspace"
2527
},
2628
"keywords": [
2729
"awsdistroopentelemetry",

0 commit comments

Comments
 (0)