meta-json-schema 1.18.5-alpha → 1.18.5-alpha2

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/README.md CHANGED
@@ -105,18 +105,18 @@ code /path/to/project/location
105
105
  npm install
106
106
  ```
107
107
 
108
- 4. 启动项目。执行下列命令后,会对`src`目录进行监视,如果发生变动则会对项目进行bundle,输出到`.temp`目录下。
108
+ 4. 启动项目。执行下列命令后,会对`src`目录进行监视,如果发生变动则会对项目进行bundle,输出到`schemas`目录下。
109
109
 
110
110
  ```bash
111
111
  npm run dev
112
112
  ```
113
113
 
114
- 5. 测试schema。由于`.vscode`目录下`settings.json`中已事先配置了如下配置(`test`目录下的文件使用`.temp`目录下输出的schema文件)。因此可以对`src`进行修改,并在`test`目录下新增测试文件,及时观察变动并做出修正。
114
+ 5. 测试schema。由于`.vscode`目录下`settings.json`中已事先配置了如下配置(`test`目录下的文件使用`schemas`目录下输出的schema文件)。因此可以对`src`进行修改,并在`test`目录下新增测试文件,及时观察变动并做出修正。
115
115
 
116
116
  ```json
117
117
  "yaml.schemas": {
118
- ".temp/meta-json-schema.json": "test/clash-meta/**/*.yaml",
119
- ".temp/clash-verge-merge-json-schema.json": "test/clash-verge/**/*.yaml"
118
+ "schemas/meta-json-schema.json": "test/clash-meta/**/*.yaml",
119
+ "schemas/clash-verge-merge-json-schema.json": "test/clash-verge/**/*.yaml"
120
120
  },
121
121
  ```
122
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meta-json-schema",
3
- "version": "v1.18.5-alpha",
3
+ "version": "1.18.5-alpha2",
4
4
  "description": "JSON Schema for Clash Meta",
5
5
  "keywords": [
6
6
  "clash",
@@ -20,31 +20,11 @@
20
20
  "url": "https://github.com/dongchengjie/meta-json-schema"
21
21
  },
22
22
  "scripts": {
23
- "dev": "node ./scripts/watch.mjs",
24
- "release": "node ./scripts/release.mjs"
25
- },
26
- "config": {
27
- "watches": [
28
- "./src/meta-json-schema.json",
29
- "./src/clash-verge-merge-json-schema.json"
30
- ],
31
- "releases": [
32
- {
33
- "enabled": true,
34
- "source": "./src/meta-json-schema.json",
35
- "target": "./schemas/meta-json-schema.json",
36
- "optimization": true
37
- },
38
- {
39
- "enabled": true,
40
- "source": "./src/clash-verge-merge-json-schema.json",
41
- "target": "./schemas/clash-verge-merge-json-schema.json",
42
- "optimization": true
43
- }
44
- ]
23
+ "dev": "npx json-schema-artifact --watch",
24
+ "release": "npx json-schema-artifact",
25
+ "preview": "npm publish --dry-run"
45
26
  },
46
27
  "devDependencies": {
47
- "@apidevtools/json-schema-ref-parser": "^11.5.4",
48
- "prettier": "^3.2.5"
28
+ "json-schema-artifact": "^1.0.0"
49
29
  }
50
- }
30
+ }