Skip to content

Commit 58d9e53

Browse files
authored
Fix build examples CI step (#10113)
* Revert swc plugin changes package.json that point to non-existent files * Convert vite config to mts to avoid errors
1 parent 1c76986 commit 58d9e53

File tree

3 files changed

+2
-28
lines changed

3 files changed

+2
-28
lines changed

examples/react/apollo-client-swc-plugin/tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"moduleResolution": "Node",
66
"allowSyntheticDefaultImports": true
77
},
8-
"include": ["vite.config.ts"]
8+
"include": ["vite.config.mts"]
99
}

packages/presets/swc-plugin/package.json

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"graphql-codegen",
1010
"preset-client"
1111
],
12-
"main": "dist/cjs/index.js",
12+
"main": "swc_plugin.wasm",
1313
"scripts": {
1414
"build-wasm": "cargo build --target wasm32-wasi --release && cp target/wasm32-wasi/release/swc_plugin.wasm ./",
1515
"debug": "cargo build --target wasm32-wasi && cp target/wasm32-wasi/debug/swc_plugin.wasm ./"
@@ -27,32 +27,6 @@
2727
"swc_plugin.wasm"
2828
],
2929
"type": "module",
30-
"module": "dist/esm/index.js",
31-
"typings": "dist/typings/index.d.ts",
32-
"typescript": {
33-
"definition": "dist/typings/index.d.ts"
34-
},
35-
"exports": {
36-
".": {
37-
"require": {
38-
"types": "./dist/typings/index.d.cts",
39-
"default": "./dist/cjs/index.js"
40-
},
41-
"import": {
42-
"types": "./dist/typings/index.d.ts",
43-
"default": "./dist/esm/index.js"
44-
},
45-
"default": {
46-
"types": "./dist/typings/index.d.ts",
47-
"default": "./dist/esm/index.js"
48-
}
49-
},
50-
"./package.json": "./package.json"
51-
},
52-
"publishConfig": {
53-
"directory": "dist",
54-
"access": "public"
55-
},
5630
"engines": {
5731
"node": ">=16"
5832
}

0 commit comments

Comments
 (0)