Skip to content

Commit

Permalink
tweak to ensure path stuff doesnt affect build
Browse files Browse the repository at this point in the history
  • Loading branch information
justjake committed Aug 31, 2024
1 parent 33b870e commit 80e107c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/quickjs-emscripten/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"clean": "git clean -fx dist .output",
"tsc": "npx tsc -p . --noEmit",
"test:vi": "VITEST=1 npx vitest run",
"test:node": "npx tsc -p tsconfig.node.json && ./makeTestPackageJson.ts && node -r source-map-support/register --test ./.output/*node-test*.*js",
"test:node": "npx tsc -p tsconfig.build.json && ./makeTestPackageJson.ts && node -r source-map-support/register --test ./.output/*node-test*.*js",
"test": "npm run test:vi && npm run test:node"
},
"types": "./dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/quickjs-emscripten/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ const browsers: Extract<Options["target"], Array<any>> = [
const configs = [
extendConfig({
entry: ["src/index.ts", "src/variants.ts"],
tsconfig: "./tsconfig.node.json",
format: "esm",
target: ["node16", ...browsers],
}),
extendConfig({
entry: ["src/index.ts", "src/variants.ts"],
tsconfig: "./tsconfig.node.json",
format: "cjs",
}),
extendConfig({
Expand Down

0 comments on commit 80e107c

Please sign in to comment.