Skip to content

Commit 5fc4770

Browse files
committed
explicitly include ./src/*.ts, which ensures that files in the root of the source directory (like const.ts) are correctly included in the build output on all platforms
1 parent 650109a commit 5fc4770

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"type-check": "npx tsc --noEmit",
5454
"update-pkg": "npm upgrade -S",
5555
"rm": "rmdir /s /q lib",
56-
"test:build": "npx esbuild ./src/**/* --format=cjs --sourcemap --outdir=lib --platform=node",
56+
"test:build": "npx esbuild ./src/**/* ./src/*.ts --format=cjs --sourcemap --outdir=lib --platform=node",
5757
"test": "npm run test:build && node --test",
5858
"build:build-ci": "npx esbuild ./src/index.ts --format=cjs --outdir=lib --bundle --external:tree-sitter --external:tree-sitter-typescript --external:tree-sitter-php --external:tree-sitter-javascript --external:@babel/preset-typescript --platform=node",
5959
"test:ci": "npm run build:build-ci && npm run test",
@@ -84,4 +84,4 @@
8484
"esbuild": "0.25.9",
8585
"typescript": "^5.9.3"
8686
}
87-
}
87+
}

0 commit comments

Comments
 (0)