Skip to content

Commit 60eae84

Browse files
committed
Fix missing transpiled files on NPM distribution
Release workflow executes `npm publish` on cleaned workspace. The publish command *WILL* run the prepack script, which we are missing. Set the prepack script to run the build script.
1 parent 04deca3 commit 60eae84

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ jobs:
7171
registry-url: "https://registry.npmjs.org"
7272
- name: Install dependencies
7373
run: npm ci
74-
- name: Build wrapper and scripts
75-
run: npm run build
76-
- name: Prepare workspace
77-
run: npm run clean
7874
- name: Publish wrapper
7975
env:
8076
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ THis project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1919

2020
### Fixed
2121

22+
- Fixed an issue where transpiled library files are not included in the NPM distribution.
23+
Prior versions are still usable, though they require manual building.
24+
Navigate to the nearest `node_modules/@ghifari160/binwrap` and execute `npm run build`.
25+
2226
### Security
2327

2428
## [0.2.0] - 2025-07-25

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@
3737
"scripts": {
3838
"build": "npm run clean && npm run build:mjs && npm run build:cjs",
3939
"clean": "del-cli cjs lib mjs",
40-
40+
"prepack": "npm run build",
4141
"build:mjs": "npm run build:mjs:ts && npm run build:mjs:transform",
4242
"build:mjs:ts": "tsc -d -p tsconfig.mjs.json",
4343
"build:mjs:transform": "mjscjs -p tsconfig.mjs.json",
44-
4544
"build:cjs": "npm run build:cjs:ts && npm run build:cjs:transform",
4645
"build:cjs:ts": "tsc -d -p tsconfig.cjs.json",
4746
"build:cjs:transform": "mjscjs -p tsconfig.cjs.json"

0 commit comments

Comments
 (0)