Skip to content

Commit

Permalink
workflow: integrate publint
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Oct 11, 2024
1 parent a99fa4c commit 140d726
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "json-editor-vue",
"PascalCasedName": "JsonEditorVue",
"type": "commonjs",
"version": "0.17.1",
"private": false,
"description": "Vue and Nuxt 2/3 isomorphic JSON editor, viewer, formatter and validator.",
Expand All @@ -9,7 +10,10 @@
"url": "https://github.com/cloydlau"
},
"license": "MIT",
"repository": "https://github.com/cloydlau/json-editor-vue",
"repository": {
"type": "git",
"url": "git+https://github.com/cloydlau/json-editor-vue.git"
},
"keywords": [
"ajv",
"bigint",
Expand Down Expand Up @@ -117,6 +121,7 @@
"only-allow": "^1.2.1",
"open": "^10.1.0",
"prompts": "^2.4.2",
"publint": "^0.2.11",
"rollup-plugin-visualizer": "^5.12.0",
"semver": "^7.6.3",
"simple-git-hooks": "^2.11.1",
Expand Down
69 changes: 69 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions scripts/release.mts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ async function release() {
return
}

console.log(cyan('Publinting...'))
if (spawn.sync('npx', ['publint'], { stdio: 'inherit' }).status === 1) {
return
}

console.log(cyan('Checking exports...'))
if (spawn.sync('pnpm', ['check-exports'], { stdio: 'inherit' }).status === 1) {
return
Expand Down

0 comments on commit 140d726

Please sign in to comment.