Skip to content

Commit e93f6d0

Browse files
committed
build: cleanup scripts
1 parent 8e1451d commit e93f6d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nodejs/packages/layer/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts",
1010
"lint:fix": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts --fix",
1111
"build": "npm run clean && npm run compile && npm run postcompile",
12-
"copy-esm-files": "copyfiles 'src/**/*.mjs' build && copyfiles 'test/**/*.mjs' build",
12+
"copy-esm-files": "copyfiles -f 'src/**/*.mjs' build/workspace && copyfiles 'test/**/*.mjs' build",
1313
"pretest": "npm run compile",
1414
"test:cjs": "mocha 'test/**/*.spec.ts' --exclude 'test/**/*.spec.mjs' --timeout 10000",
1515
"test:esm": "mocha 'test/**/*.spec.mjs' --exclude 'test/**/*.spec.ts' --timeout 10000",
1616
"test": "npm run test:cjs && npm run test:esm",
17-
"compile": "esbuild --bundle --target=es2022 --platform=node --format=cjs --sourcemap --minify src/wrapper.ts --outfile=build/workspace/wrapper.js --external:@aws-sdk/*",
18-
"postcompile": "npm run copy-esm-files && copyfiles -f 'scripts/*' build/workspace && cd build/workspace && bestzip ../layer.zip *"
17+
"compile": "esbuild --bundle --target=es2022 --platform=node --format=cjs --sourcemap --minify src/wrapper.ts --outfile=build/src/wrapper.js --external:@aws-sdk/*",
18+
"postcompile": "npm run copy-esm-files && copyfiles -f 'scripts/*' build/workspace && copyfiles -f 'build/src/*.js' build/workspace && cd build/workspace && bestzip ../layer.zip *"
1919
},
2020
"keywords": [
2121
"opentelemetry",

0 commit comments

Comments
 (0)