Skip to content

Commit ae604ec

Browse files
committed
refactor: simplify package.sh
1 parent d9c51c4 commit ae604ec

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

package.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,7 @@ cp nonce.js package.json package-lock.json ./dist/
1414

1515
cd dist
1616
npm ci --production
17-
rm package*.json
18-
1917
cd -
20-
npx webpack
2118

22-
cd dist
23-
zip_path="./lambda-edge-azure-auth-${version}.zip"
24-
# zip -q -j $zip_path ./{.js,*.json}
25-
# zip -q -r $zip_path ./node_modules
26-
zip -q -j $zip_path ./index.js
27-
cd -
19+
npx webpack
20+
zip -q -j ./dist/lambda-edge-azure-auth-${version}.zip dist/index.js

0 commit comments

Comments
 (0)