Skip to content

Commit b6d6df1

Browse files
committed
feat: Upgrades to pre2 pack manifestr
1 parent ff5367e commit b6d6df1

File tree

13 files changed

+1630
-196
lines changed

13 files changed

+1630
-196
lines changed

esbuild.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import esbuild from "esbuild";
22

3-
esbuild
4-
.build({
5-
entryPoints: ['src/index.ts'],
6-
outdir: 'dist',
7-
bundle: true,
8-
sourcemap: "inline",
9-
minify: false, // might want to use true for production build
10-
format: 'cjs', // needs to be CJS for now
11-
target: ['es2020'] // don't go over es2020 because quickjs doesn't support it
12-
})
3+
esbuild.build({
4+
entryPoints: ["src/index.ts"],
5+
outdir: "dist",
6+
bundle: true,
7+
sourcemap: "inline",
8+
minify: false, // might want to use true for production build
9+
format: "cjs", // needs to be CJS for now
10+
target: ["es2020"], // don't go over es2020 because quickjs doesn't support it
11+
});

package.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,41 @@
99
"build": "run-s 'build:tsc' 'build:esbuild' 'build:extism' 'build:pack'",
1010
"build:esbuild": "node esbuild.js",
1111
"build:extism": "extism-js dist/index.js -i src/index.d.ts -o dist/plugin.wasm",
12-
"build:pack": "node scripts/packbuild.js",
12+
"build:pack": "tsx scripts/packbuild.ts",
1313
"build:tsc": "tsc --noEmit",
14+
"codegen": "tsx scripts/generate.ts",
1415
"prepare": "husky",
1516
"prettier": "prettier",
1617
"syncpack": "syncpack",
1718
"test": "pnpm dlx @taskless/packcheck@latest --fixture ./test/fixture.json --manifest ./dist/manifest.json ./dist/plugin.wasm",
19+
"tsx": "tsx",
1820
"xo": "xo"
1921
},
2022
"type": "module",
2123
"main": "src/index.ts",
24+
"dependencies": {
25+
"zod": "^3.24.2"
26+
},
2227
"devDependencies": {
2328
"@changesets/cli": "^2.27.7",
2429
"@commitlint/cli": "^19.3.0",
2530
"@commitlint/config-conventional": "^19.2.2",
2631
"@extism/js-pdk": "^1.0.1",
32+
"@taskless/loader": "^0.0.27",
33+
"@types/node": "^22.13.5",
2734
"esbuild": "^0.19.6",
2835
"husky": "^9.0.11",
36+
"json-schema-to-typescript": "^15.0.4",
2937
"lint-staged": "^15.2.4",
38+
"mkdirp": "^3.0.1",
3039
"npm-run-all2": "^7.0.1",
40+
"pkg-dir": "^8.0.0",
3141
"prettier": "^3.2.5",
42+
"rimraf": "^6.0.1",
3243
"syncpack": "^12.3.2",
33-
"typescript": "^5.3.2",
44+
"tsx": "^4.19.3",
45+
"type-fest": "^4.37.0",
46+
"typescript": "^5.8.2",
3447
"uint8array-extras": "^1.4.0",
3548
"xo": "^0.59.3"
3649
},

0 commit comments

Comments
 (0)