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

Diff for: β€Žpackage.json

+1-1
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"

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

+1-1
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"

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

+2-2
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.

Diff for: β€Žpackages/@vuepress/types/package.json

+3
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",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: β€Žpackages/@vuepress/types/tsconfig.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../../../tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": true
5+
},
6+
"include": ["./src"]
7+
}

0 commit comments

Comments
Β (0)