@weapp-vite/ast 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +79 -0
- package/dist/babel.d.mts +21 -0
- package/dist/babel.mjs +64 -0
- package/dist/babelNodes.d.mts +10 -0
- package/dist/babelNodes.mjs +54 -0
- package/dist/engine-DHqNPCDA.mjs +37 -0
- package/dist/engine.d.mts +13 -0
- package/dist/engine.mjs +2 -0
- package/dist/index.d.mts +32 -0
- package/dist/index.mjs +10 -0
- package/dist/operations/componentProps.d.mts +12 -0
- package/dist/operations/componentProps.mjs +170 -0
- package/dist/operations/featureFlags.d.mts +14 -0
- package/dist/operations/featureFlags.mjs +97 -0
- package/dist/operations/jsxAutoComponents.d.mts +36 -0
- package/dist/operations/jsxAutoComponents.mjs +305 -0
- package/dist/operations/platformApi.d.mts +13 -0
- package/dist/operations/platformApi.mjs +35 -0
- package/dist/operations/require.d.mts +24 -0
- package/dist/operations/require.mjs +54 -0
- package/dist/operations/scriptSetupImports.d.mts +17 -0
- package/dist/operations/scriptSetupImports.mjs +80 -0
- package/dist/types.d.mts +24 -0
- package/dist/types.mjs +1 -0
- package/package.json +101 -0
package/package.json
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@weapp-vite/ast",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "6.8.0",
|
|
5
|
+
"description": "weapp-vite 共享 AST 分析工具包,统一 Babel/Oxc 解析与常用分析操作",
|
|
6
|
+
"author": "ice breaker <1324318532@qq.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://vite.icebreaker.top/",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/weapp-vite/weapp-vite.git",
|
|
12
|
+
"directory": "packages/ast"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/weapp-vite/weapp-vite/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"ast",
|
|
19
|
+
"babel",
|
|
20
|
+
"oxc",
|
|
21
|
+
"weapp-vite",
|
|
22
|
+
"compiler",
|
|
23
|
+
"analysis"
|
|
24
|
+
],
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.mts",
|
|
29
|
+
"import": "./dist/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./babel": {
|
|
32
|
+
"types": "./dist/babel.d.mts",
|
|
33
|
+
"import": "./dist/babel.mjs"
|
|
34
|
+
},
|
|
35
|
+
"./babelNodes": {
|
|
36
|
+
"types": "./dist/babelNodes.d.mts",
|
|
37
|
+
"import": "./dist/babelNodes.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./engine": {
|
|
40
|
+
"types": "./dist/engine.d.mts",
|
|
41
|
+
"import": "./dist/engine.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./types": {
|
|
44
|
+
"types": "./dist/types.d.mts",
|
|
45
|
+
"import": "./dist/types.mjs"
|
|
46
|
+
},
|
|
47
|
+
"./operations/platformApi": {
|
|
48
|
+
"types": "./dist/operations/platformApi.d.mts",
|
|
49
|
+
"import": "./dist/operations/platformApi.mjs"
|
|
50
|
+
},
|
|
51
|
+
"./operations/componentProps": {
|
|
52
|
+
"types": "./dist/operations/componentProps.d.mts",
|
|
53
|
+
"import": "./dist/operations/componentProps.mjs"
|
|
54
|
+
},
|
|
55
|
+
"./operations/featureFlags": {
|
|
56
|
+
"types": "./dist/operations/featureFlags.d.mts",
|
|
57
|
+
"import": "./dist/operations/featureFlags.mjs"
|
|
58
|
+
},
|
|
59
|
+
"./operations/jsxAutoComponents": {
|
|
60
|
+
"types": "./dist/operations/jsxAutoComponents.d.mts",
|
|
61
|
+
"import": "./dist/operations/jsxAutoComponents.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./operations/require": {
|
|
64
|
+
"types": "./dist/operations/require.d.mts",
|
|
65
|
+
"import": "./dist/operations/require.mjs"
|
|
66
|
+
},
|
|
67
|
+
"./operations/scriptSetupImports": {
|
|
68
|
+
"types": "./dist/operations/scriptSetupImports.d.mts",
|
|
69
|
+
"import": "./dist/operations/scriptSetupImports.mjs"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"main": "./dist/index.mjs",
|
|
73
|
+
"module": "./dist/index.mjs",
|
|
74
|
+
"types": "./dist/index.d.mts",
|
|
75
|
+
"files": [
|
|
76
|
+
"dist"
|
|
77
|
+
],
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"@babel/generator": "^7.29.1",
|
|
80
|
+
"@babel/parser": "^7.29.0",
|
|
81
|
+
"@babel/traverse": "^7.29.0",
|
|
82
|
+
"@babel/types": "^7.29.0",
|
|
83
|
+
"@oxc-project/types": "^0.119.0",
|
|
84
|
+
"oxc-parser": "^0.119.0",
|
|
85
|
+
"oxc-walker": "^0.7.0"
|
|
86
|
+
},
|
|
87
|
+
"publishConfig": {
|
|
88
|
+
"access": "public",
|
|
89
|
+
"registry": "https://registry.npmjs.org"
|
|
90
|
+
},
|
|
91
|
+
"scripts": {
|
|
92
|
+
"dev": "tsdown -w",
|
|
93
|
+
"build": "tsdown",
|
|
94
|
+
"test": "vitest run",
|
|
95
|
+
"test:dev": "vitest",
|
|
96
|
+
"typecheck": "tsc --noEmit",
|
|
97
|
+
"release": "pnpm publish",
|
|
98
|
+
"lint": "eslint .",
|
|
99
|
+
"lint:fix": "eslint . --fix"
|
|
100
|
+
}
|
|
101
|
+
}
|