Skip to content

Commit

Permalink
Fix build examples CI step (#10113)
Browse files Browse the repository at this point in the history
* Revert swc plugin changes package.json that point to non-existent files

* Convert vite config to mts to avoid errors
  • Loading branch information
eddeee888 authored Aug 21, 2024
1 parent 1c76986 commit 58d9e53
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 28 deletions.
2 changes: 1 addition & 1 deletion examples/react/apollo-client-swc-plugin/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
"include": ["vite.config.mts"]
}
28 changes: 1 addition & 27 deletions packages/presets/swc-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"graphql-codegen",
"preset-client"
],
"main": "dist/cjs/index.js",
"main": "swc_plugin.wasm",
"scripts": {
"build-wasm": "cargo build --target wasm32-wasi --release && cp target/wasm32-wasi/release/swc_plugin.wasm ./",
"debug": "cargo build --target wasm32-wasi && cp target/wasm32-wasi/debug/swc_plugin.wasm ./"
Expand All @@ -27,32 +27,6 @@
"swc_plugin.wasm"
],
"type": "module",
"module": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"typescript": {
"definition": "dist/typings/index.d.ts"
},
"exports": {
".": {
"require": {
"types": "./dist/typings/index.d.cts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/typings/index.d.ts",
"default": "./dist/esm/index.js"
},
"default": {
"types": "./dist/typings/index.d.ts",
"default": "./dist/esm/index.js"
}
},
"./package.json": "./package.json"
},
"publishConfig": {
"directory": "dist",
"access": "public"
},
"engines": {
"node": ">=16"
}
Expand Down

0 comments on commit 58d9e53

Please sign in to comment.