Skip to content

Commit

Permalink
Fix npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Jun 19, 2024
1 parent a00b0f2 commit b1fd46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ npm/snikket.js:
sed -i 's/snikket\.MessageDirection/enums.MessageDirection/g' npm/snikket.d.ts
sed -i '1ivar exports = {};' npm/snikket.js
echo "export const snikket = exports.snikket;" >> npm/snikket.js
cd npm && npx tsc --esModuleInterop --lib esnext,dom --target esnext --preserveConstEnums -d index.ts
sed -i '1iimport { snikket as enums } from "./snikket-enums";' npm/index.js

npm: npm/snikket.js snikket/persistence/browser.js
cp snikket/persistence/browser.js npm
cd npm && npx tsc --esModuleInterop --lib esnext,dom --target esnext --preserveConstEnums -d index.ts
sed -i '1iimport { snikket as enums } from "./snikket-enums";' npm/index.js

cpp/output.dso:
haxe cpp.hxml
Expand Down

0 comments on commit b1fd46a

Please sign in to comment.