Skip to content

Commit 11a89c6

Browse files
committed
chore: revert references related changes
1 parent e43572e commit 11a89c6

File tree

7 files changed

+20
-40
lines changed

7 files changed

+20
-40
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lib-boilerplate",
3-
"version": "0.0.1",
3+
"version": "0.0.0",
44
"type": "module",
55
"description": "A simple library boilerplate.",
66
"repository": "git+https://github.com/un-ts/lib-boilerplate.git",
@@ -33,8 +33,8 @@
3333
],
3434
"scripts": {
3535
"build": "run-p 'build:*'",
36-
"build:tsc": "tsc -b",
37-
"build:tsdown": "tsdown --clean false -d lib --format cjs --tsconfig src/tsconfig.json src/index.ts",
36+
"build:tsc": "tsc -p src",
37+
"build:tsdown": "tsdown --clean false -d lib --format cjs src/index.ts",
3838
"clean": "premove .type-coverage coverage dist lib .eslintcache .stylelintcache",
3939
"dev": "vitest",
4040
"docs": "vite",
@@ -43,7 +43,7 @@
4343
"lint": "run-p 'lint:*'",
4444
"lint:es": "eslint . --cache --max-warnings 10",
4545
"lint:style": "stylelint . --cache",
46-
"lint:tsc": "tsc -b --noEmit",
46+
"lint:tsc": "tsc -p tsconfig.eslint.json --noEmit",
4747
"prepare": "simple-git-hooks && yarn-berry-deduplicate || exit 0",
4848
"release": "yarn build && clean-pkg-json && changeset publish",
4949
"serve": "vite preview",

src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.lib",
2+
"extends": "..",
33
"compilerOptions": {
44
"composite": true,
55
"rootDir": ".",

test/tsconfig.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
{
2-
"extends": "../tsconfig.lib",
3-
"compilerOptions": {
4-
"composite": true,
5-
"noEmit": true,
6-
"paths": {
7-
"lib-boilerplate": ["../src/index.ts"]
8-
}
9-
},
10-
"include": ["../src", "."]
2+
"extends": "../tsconfig.eslint"
113
}

tsconfig.eslint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": ".",
3+
"compilerOptions": {
4+
"paths": {
5+
"lib-boilerplate": ["./src/index.ts"]
6+
}
7+
}
8+
}

tsconfig.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
{
2-
"extends": "./tsconfig.lib",
3-
"files": [],
4-
"references": [
5-
{
6-
"path": "./src"
7-
},
8-
{
9-
"path": "./test"
10-
},
11-
{
12-
"path": "./tsconfig.node.json"
13-
}
14-
]
2+
"extends": "@1stg/tsconfig/node16",
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
// https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping#node-12
6+
"target": "ES2019"
7+
}
158
}

tsconfig.lib.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

tsconfig.node.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)