Skip to content

Commit 74671ef

Browse files
committed
fix(scripts/pkg): exclude binaries from export and exclude node modules from binaries
1 parent a7c9500 commit 74671ef

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

implementations/js/server/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"version": "1.0.0",
33
"name": "@asls/wsc-server",
44
"private": false,
5+
"type": "module",
56
"publishConfig": {
67
"access": "public"
78
},
@@ -18,8 +19,7 @@
1819
"pkg": {
1920
"scripts": "dist/**/*.cjs",
2021
"assets": [
21-
"./dist/**/*",
22-
"../../../node_modules/**/*"
22+
"./dist/**/*"
2323
],
2424
"options": {
2525
"no-bytecode": true,
@@ -40,7 +40,8 @@
4040
".": "./dist/main.cjs"
4141
},
4242
"files": [
43-
"dist"
43+
"dist/**/*.cjs",
44+
"dist/package.json"
4445
],
4546
"scripts": {
4647
"test": "echo \"Error: no test specified\" && exit 1",

implementations/js/server/src/scripts/build.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ async function run() {
2020
platform: 'node',
2121
target: 'node20',
2222
format: 'cjs',
23-
external: [
24-
'@roamhq/wrtc',
25-
'systeminformation',
26-
],
23+
// external: [
24+
// '@roamhq/wrtc',
25+
// 'systeminformation',
26+
// ],
2727
});
2828

2929
console.log('📄 Updating package.json...');

0 commit comments

Comments
 (0)