Skip to content

Commit 140d726

Browse files
committed
workflow: integrate publint
1 parent a99fa4c commit 140d726

File tree

3 files changed

+80
-1
lines changed

3 files changed

+80
-1
lines changed

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "json-editor-vue",
33
"PascalCasedName": "JsonEditorVue",
4+
"type": "commonjs",
45
"version": "0.17.1",
56
"private": false,
67
"description": "Vue and Nuxt 2/3 isomorphic JSON editor, viewer, formatter and validator.",
@@ -9,7 +10,10 @@
910
"url": "https://github.com/cloydlau"
1011
},
1112
"license": "MIT",
12-
"repository": "https://github.com/cloydlau/json-editor-vue",
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/cloydlau/json-editor-vue.git"
16+
},
1317
"keywords": [
1418
"ajv",
1519
"bigint",
@@ -117,6 +121,7 @@
117121
"only-allow": "^1.2.1",
118122
"open": "^10.1.0",
119123
"prompts": "^2.4.2",
124+
"publint": "^0.2.11",
120125
"rollup-plugin-visualizer": "^5.12.0",
121126
"semver": "^7.6.3",
122127
"simple-git-hooks": "^2.11.1",

pnpm-lock.yaml

+69
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/release.mts

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ async function release() {
3131
return
3232
}
3333

34+
console.log(cyan('Publinting...'))
35+
if (spawn.sync('npx', ['publint'], { stdio: 'inherit' }).status === 1) {
36+
return
37+
}
38+
3439
console.log(cyan('Checking exports...'))
3540
if (spawn.sync('pnpm', ['check-exports'], { stdio: 'inherit' }).status === 1) {
3641
return

0 commit comments

Comments
 (0)