Skip to content

Commit ab5e775

Browse files
committed
Add publint
1 parent 6ff8eb8 commit ab5e775

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

packages/create-vue-lib/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,19 @@
3232
"ejs": "^3.1.10",
3333
"npm-run-all2": "^7.0.2",
3434
"prompts": "^2.4.2",
35+
"publint": "^0.3.8",
3536
"rimraf": "^6.0.1",
3637
"tsup": "^8.3.6",
3738
"typescript": "^5.7.3"
3839
},
3940
"scripts": {
4041
"clean": "rimraf dist LICENSE README.md",
4142
"type-check": "tsc",
43+
"lint:package": "publint",
4244
"build:copy": "copyfiles -f ../../LICENSE ../../README.md .",
4345
"build:templates": "copyfiles -u 1 -a \"src/template/**\" dist",
4446
"build:ts": "tsup src/index.ts --format cjs --target node18",
45-
"build": "run-s clean build:copy build:templates build:ts",
47+
"build": "run-s clean build:copy build:templates build:ts lint:package",
4648
"start": "node ./dist/index.cjs",
4749
"preinstall": "npx only-allow pnpm"
4850
}

packages/create-vue-lib/src/template/base/config/packages/@projectName@/package.json.ejs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"cross-env": "^7.0.3",
5252
"jsdom": "^26.0.0",
5353
"npm-run-all2": "^7.0.2",
54+
"publint": "^0.3.8",
5455
"rimraf": "^5.0.1",
5556
"typescript": "~5.8.0",
5657
"vite": "^6.2.1",
@@ -69,10 +70,11 @@
6970
"coverage": "vitest run --coverage --environment jsdom",
7071
<%_ } _%>
7172
"type-check": "vue-tsc --build",
73+
"lint:package": "publint",
7274
"build:copy": "copyfiles -f ../../README.md .",
7375
"build:dev": "cross-env NODE_ENV=development vite build --mode development",
7476
"build:neutral": "vite build --mode neutral",
7577
"build:prod": "vite build --mode production",
76-
"build": "run-s clean:dist build:* type-check"
78+
"build": "run-s clean:dist build:* type-check lint:package"
7779
}
7880
}

pnpm-lock.yaml

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)