Skip to content

Commit 796dd6b

Browse files
committed
chore: setup tsgo
1 parent a75ca55 commit 796dd6b

File tree

4 files changed

+101
-26
lines changed

4 files changed

+101
-26
lines changed

examples/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "unplugin-element-plus-vite-example",
3+
"type": "module",
34
"version": "0.0.0",
45
"private": true,
5-
"type": "module",
66
"license": "MIT",
77
"scripts": {
88
"dev": "vite",

package.json

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
{
22
"name": "unplugin-element-plus",
3+
"type": "module",
34
"version": "0.11.1",
45
"packageManager": "[email protected]",
56
"description": "Import Element Plus on demand. Support Vite, Webpack, Vue CLI, Rollup and esbuild.",
6-
"type": "module",
7+
"license": "MIT",
8+
"homepage": "https://github.com/element-plus/unplugin-element-plus/tree/main/#readme",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/element-plus/unplugin-element-plus.git"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/element-plus/unplugin-element-plus/issues"
15+
},
716
"keywords": [
817
"element-plus",
918
"unplugin",
@@ -13,21 +22,6 @@
1322
"esbuild",
1423
"plugin"
1524
],
16-
"license": "MIT",
17-
"homepage": "https://github.com/element-plus/unplugin-element-plus/tree/main/#readme",
18-
"bugs": {
19-
"url": "https://github.com/element-plus/unplugin-element-plus/issues"
20-
},
21-
"repository": {
22-
"type": "git",
23-
"url": "git+https://github.com/element-plus/unplugin-element-plus.git"
24-
},
25-
"files": [
26-
"dist"
27-
],
28-
"main": "./dist/index.mjs",
29-
"module": "./dist/index.mjs",
30-
"types": "./dist/index.d.mts",
3125
"exports": {
3226
".": "./dist/index.mjs",
3327
"./esbuild": "./dist/esbuild.mjs",
@@ -39,6 +33,9 @@
3933
"./webpack": "./dist/webpack.mjs",
4034
"./package.json": "./package.json"
4135
},
36+
"main": "./dist/index.mjs",
37+
"module": "./dist/index.mjs",
38+
"types": "./dist/index.d.mts",
4239
"typesVersions": {
4340
"*": {
4441
"*": [
@@ -47,9 +44,15 @@
4744
]
4845
}
4946
},
47+
"files": [
48+
"dist"
49+
],
5050
"publishConfig": {
5151
"access": "public"
5252
},
53+
"engines": {
54+
"node": ">=20.19.0"
55+
},
5356
"scripts": {
5457
"lint": "eslint .",
5558
"lint:fix": "pnpm run lint --fix",
@@ -59,7 +62,7 @@
5962
"release": "bumpp",
6063
"vite:build": "npm -C examples/vite run build",
6164
"vite:dev": "npm -C examples/vite run dev",
62-
"typecheck": "tsc --noEmit",
65+
"typecheck": "tsgo --noEmit",
6366
"test": "vitest",
6467
"prepublishOnly": "pnpm run build"
6568
},
@@ -75,6 +78,7 @@
7578
"@sxzz/eslint-config": "^7.4.3",
7679
"@sxzz/prettier-config": "^2.2.6",
7780
"@types/node": "^25.0.2",
81+
"@typescript/native-preview": "7.0.0-dev.20251215.1",
7882
"@vitest/ui": "^4.0.15",
7983
"bumpp": "^10.3.2",
8084
"esbuild": "~0.27.1",
@@ -88,8 +92,5 @@
8892
"vite": "^7.3.0",
8993
"vitest": "^4.0.15"
9094
},
91-
"engines": {
92-
"node": ">=20.19.0"
93-
},
9495
"prettier": "@sxzz/prettier-config"
9596
}

pnpm-lock.yaml

Lines changed: 78 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"strict": true,
1111
"noUnusedLocals": true,
1212
"declaration": true,
13-
"isolatedDeclarations": true,
1413
"esModuleInterop": true,
14+
"isolatedDeclarations": true,
1515
"isolatedModules": true,
1616
"verbatimModuleSyntax": true,
1717
"skipLibCheck": true

0 commit comments

Comments
 (0)