Skip to content

Commit 866042c

Browse files
fix: CI issues - add npm publish tag and module exports
1 parent 9ca9616 commit 866042c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
ASHERAH_KMS_MODE: static
6363
run: scripts/integration-test.sh
6464
- name: Publish (dry-run)
65-
run: npm publish --dry-run
65+
run: npm publish --dry-run --tag development
6666
test-multi-arch:
6767
runs-on: ubuntu-latest
6868
strategy:

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"name": "asherah",
33
"version": "0.0.0",
44
"description": "Asherah envelope encryption and key rotation library",
5+
"main": "./dist/asherah.js",
56
"exports": {
7+
".": "./dist/asherah.js",
68
"node-addons": "./dist/asherah.node"
79
},
810
"repository": {

scripts/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ else
1414
fi
1515

1616
cp src/asherah.d.ts dist/asherah.d.ts
17+
18+
# Create wrapper JS file
19+
echo "module.exports = require('./asherah.node');" > dist/asherah.js

0 commit comments

Comments
 (0)