Skip to content

Commit 4280e7a

Browse files
committed
ci(types): lint types under development
1 parent 66a6c27 commit 4280e7a

19 files changed

+14
-4
lines changed

β€Žpackage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"remote-version": "node scripts/remote-version.js",
2424
"show-help": "yarn workspace docs show-help",
2525
"test": "node scripts/test.js",
26-
"tsc": "yarn workspace @vuepress/shared-utils tsc",
26+
"tsc": "lerna run tsc --stream",
2727
"unregister-vuepress": "lerna exec --scope vuepress -- yarn unlink",
2828
"update-core-team": "all-contributors generate",
2929
"view-info": "yarn tsc && yarn workspace docs view-info"

β€Žpackages/@vuepress/shared-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"types"
2525
],
2626
"main": "lib/index.js",
27-
"types": "types/index.d.ts",
27+
"types": "lib/index.d.ts",
2828
"scripts": {
2929
"tsc": "tsc",
3030
"update-index": "node scripts/update-index.js"

β€Žpackages/@vuepress/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import {
55
DefaultThemeConfig,
66
Theme,
77
Plugin,
8-
} from './lib'
8+
} from './src'
99

10-
export * from './lib'
10+
export * from './src'
1111

1212
/**
1313
* A helper function to define VuePress config file.

β€Žpackages/@vuepress/types/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"author": "ULIVZ",
2323
"main": "index.js",
2424
"types": "index.d.ts",
25+
"scripts": {
26+
"tsc": "tsc"
27+
},
2528
"dependencies": {
2629
"@types/markdown-it": "^10.0.0",
2730
"@types/webpack-dev-server": "^3",

0 commit comments

Comments
Β (0)