@weapp-vite/wxml 0.0.0-stage → 0.0.1

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/package.json CHANGED
@@ -1,6 +1,86 @@
1
1
  {
2
2
  "name": "@weapp-vite/wxml",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "type": "module",
4
+ "version": "0.0.1",
5
+ "description": "Source-preserving multi-platform mini-program template parser and serializer",
6
+ "license": "MIT",
7
+ "homepage": "https://vite.weapp.dev/packages/wxml",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/weapp-vite/weapp-vite.git",
11
+ "directory": "packages/wxml"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/weapp-vite/weapp-vite/issues"
15
+ },
16
+ "keywords": [
17
+ "weapp-vite",
18
+ "wxml",
19
+ "mini-program",
20
+ "parser",
21
+ "serializer"
22
+ ],
23
+ "sideEffects": false,
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.mts",
27
+ "import": "./dist/index.mjs"
28
+ },
29
+ "./presets": {
30
+ "types": "./dist/presets/index.d.mts",
31
+ "import": "./dist/presets/index.mjs"
32
+ },
33
+ "./core": {
34
+ "types": "./dist/core/index.d.mts",
35
+ "import": "./dist/core/index.mjs"
36
+ },
37
+ "./package.json": "./package.json"
38
+ },
39
+ "main": "./dist/index.mjs",
40
+ "module": "./dist/index.mjs",
41
+ "types": "./dist/index.d.mts",
42
+ "files": [
43
+ "README.md",
44
+ "dist"
45
+ ],
46
+ "engines": {
47
+ "node": "^22.23.4 || ^24.22.1 || >=26.12.1"
48
+ },
49
+ "dependencies": {
50
+ "entities": "^9.0.0"
51
+ },
52
+ "devDependencies": {
53
+ "dom-serializer": "^3.1.1",
54
+ "htmlparser2": "^12.0.0",
55
+ "typescript": "^6.0.3",
56
+ "vitest": "~5.1.0"
57
+ },
58
+ "tsd": {
59
+ "compilerOptions": {
60
+ "module": "NodeNext",
61
+ "moduleResolution": "NodeNext",
62
+ "strict": true,
63
+ "skipLibCheck": false
64
+ }
65
+ },
66
+ "publishConfig": {
67
+ "access": "public",
68
+ "registry": "https://registry.npmjs.org"
69
+ },
70
+ "scripts": {
71
+ "build": "tsdown",
72
+ "test": "vitest run --config ./vitest.config.ts",
73
+ "test:types": "pnpm build && pnpm run test:types:check",
74
+ "test:types:check": "tsd --files \"test-d/**/*.test-d.ts\"",
75
+ "typecheck": "tsc -p tsconfig.json --noEmit",
76
+ "lint": "eslint .",
77
+ "bench": "node --stack-size=4096 --expose-gc --import tsx ../../scripts/benchmarkWxmlParser/index.ts --quick --browser --consumer-scanner packages/weapp-vite/src/wxml/scan/parser.ts#parseWxml --consumer-web packages-runtime/web/src/compiler/wxml/parser.ts#parseWxml --consumer-simulator mpcore/packages/simulator/src/view/wxsDocument.ts#parseWxsTemplateDocument",
78
+ "bench:check": "node --stack-size=4096 --expose-gc --import tsx ../../scripts/benchmarkWxmlParser/index.ts --check --browser --consumer-scanner packages/weapp-vite/src/wxml/scan/parser.ts#parseWxml --consumer-web packages-runtime/web/src/compiler/wxml/parser.ts#parseWxml --consumer-simulator mpcore/packages/simulator/src/view/wxsDocument.ts#parseWxsTemplateDocument",
79
+ "bench:regression": "node --stack-size=4096 --expose-gc --import tsx ../../scripts/templateCorpus/benchmark/regression.ts --quick",
80
+ "bench:regression:check": "node --stack-size=4096 --expose-gc --import tsx ../../scripts/templateCorpus/benchmark/regression.ts --check",
81
+ "test:acceptance": "node --import tsx ../../scripts/templateCorpus/verify.ts --suite all",
82
+ "test:corpus": "node --import tsx ../../scripts/templateCorpus/verify.ts --suite corpus",
83
+ "test:fuzz": "node --import tsx ../../scripts/templateCorpus/verify.ts --suite fuzz",
84
+ "test:coverage": "node --import tsx ../../scripts/templateCorpus/coverage/run.ts"
85
+ }
6
86
  }