Skip to content

Commit

Permalink
Attempt to fix package.json (#64)
Browse files Browse the repository at this point in the history
* Attempt to fix package.json

* Fix GitHub Actions

* Set main to dist/asherah.node

* Add stub

* Avoid conflicting with asherah.node name
  • Loading branch information
jgowdy authored Oct 4, 2023
1 parent 5e34602 commit 39cb0ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install packages
run: npm i
- name: Build
run: npm run build
run: npm install
- name: Test
run: npm test
- name: Set version to match tag
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install npm packages
run: npm i
- name: Build TypeScript
run: npm run build
run: npm install
- name: Unit Test
run: npm test
- name: Initialize RDBMS based metastore
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
"name": "asherah",
"version": "0.0.0",
"description": "Asherah envelope encryption and key rotation library",
"main": "dist/asherah.js",
"main": "dist/main.js",
"repository": {
"type": "git",
"url": "https://github.com/jgowdy/asherah-cobhan.git"
},
"scripts": {
"build": "node-gyp build && mkdir -p dist/ && cp build/Release/asherah.node dist/asherah.node && cp src/asherah.d.ts dist/asherah.d.ts",
"preinstall": "scripts/download-libraries.sh",
"install": "CFLAGS=-fexceptions CXXFLAGS=-fexceptions node-gyp rebuild",
"install": "node-gyp configure && node-gyp build && mkdir -p dist/ && cp build/Release/asherah.node dist/asherah.node && cp src/asherah.d.ts dist/asherah.d.ts && cp src/main.js dist/main.js",
"test:mocha": "mocha",
"test": "nyc npm run test:mocha",
"posttest": "npm run lint",
Expand All @@ -23,6 +22,7 @@
"binding.gyp",
"src/asherah.cc",
"dist/asherah.d.ts",
"dist/main.js",
"scripts/download-libraries.sh",
"SHA256SUMS",
"SHA256SUMS-darwin",
Expand Down
Empty file added src/main.js
Empty file.

0 comments on commit 39cb0ca

Please sign in to comment.