Skip to content

Commit d5cc26d

Browse files
authored
chore: unify migrated packages (#32819)
* add readme note in root * use declarations instead of src root and ship it with package. also use tsconfig.json instead of tsconfig.base as it has better IDE support. Also add a watcher * use declarations instead of src root and ship it with package. also use tsconfig.json instead of tsconfig.base as it has better IDE support. Also add a watcher * use declarations instead of src root and ship it with package. also use tsconfig.json instead of tsconfig.base as it has better IDE support. Also add a watcher * use declarations instead of src root and ship it with package. also use tsconfig.json instead of tsconfig.base as it has better IDE support. Also add a watcher * use declarations instead of src root and ship it with package. also use tsconfig.json instead of tsconfig.base as it has better IDE support. Also add a watcher * use declarations instead of src root and ship it with package. also use tsconfig.json instead of tsconfig.base as it has better IDE support. Also add a watcher * use declarations instead of src root and ship it with package. also use tsconfig.json instead of tsconfig.base as it has better IDE support. Also add a watcher * use declarations instead of src root and ship it with package. also use tsconfig.json instead of tsconfig.base as it has better IDE support. Also add a watcher * use declarations instead of src root and ship it with package. also use tsconfig.json instead of tsconfig.base as it has better IDE support. Also add a watcher
1 parent 4ea36d4 commit d5cc26d

37 files changed

+48
-39
lines changed

packages/config/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"test-debug": "vitest --inspect-brk --no-file-parallelism --test-timeout=0",
1919
"test-unit": "vitest run",
2020
"test:clean": "find ./test/__fixtures__ -depth -name 'output.*' -type f -exec rm {} \\;",
21-
"tslint": "tslint --config ../ts/tslint.json --project ."
21+
"tslint": "tslint --config ../ts/tslint.json --project .",
22+
"watch": "yarn build:cjs --watch & yarn build:esm --watch"
2223
},
2324
"dependencies": {
2425
"@babel/core": "^7.28.0",
@@ -53,7 +54,7 @@
5354
"cjs/*",
5455
"esm/*"
5556
],
56-
"types": "src/index.ts",
57+
"types": "cjs/index.d.ts",
5758
"module": "esm/index.js",
5859
"nx": {}
5960
}

packages/config/tsconfig.cjs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"rootDir": "./src",
55
"outDir": "./cjs",

packages/config/tsconfig.esm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"rootDir": "./src",
55
"outDir": "./esm",

packages/config/tsconfig.base.json renamed to packages/config/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"resolveJsonModule": true,
1515
"types": [
1616
"node"
17-
]
17+
],
18+
"declaration": true
1819
}
1920
}

packages/errors/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"cjs/*",
1010
"esm/*"
1111
],
12-
"types": "src/index.ts",
12+
"types": "cjs/index.d.ts",
1313
"scripts": {
1414
"build": "yarn build:esm && yarn build:cjs",
1515
"build-prod": "yarn build",
@@ -21,7 +21,9 @@
2121
"test": "yarn test-unit",
2222
"test-unit": "vitest run",
2323
"test-debug": "vitest --inspect-brk --no-file-parallelism --test-timeout=0",
24-
"tslint": "tslint --config ../ts/tslint.json --project ."
24+
"tslint": "tslint --config ../ts/tslint.json --project .",
25+
"watch": "yarn build:cjs --watch & yarn build:esm --watch"
26+
2527
},
2628
"dependencies": {
2729
"ansi_up": "5.0.0",

packages/errors/tsconfig.cjs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"rootDir": "./src",
55
"outDir": "./cjs",

packages/errors/tsconfig.esm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"rootDir": "./src",
55
"outDir": "./esm",

packages/errors/tsconfig.base.json renamed to packages/errors/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"noUncheckedIndexedAccess": true,
1010
"skipLibCheck": true,
1111
"resolveJsonModule": true,
12-
"esModuleInterop": true
12+
"esModuleInterop": true,
13+
"declaration": true
1314
}
1415
}

packages/icons/tsconfig.cjs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.json",
33
"include": [
44
"index.ts"
55
],

packages/icons/tsconfig.esm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.json",
33
"include": [
44
"index.mts"
55
],

0 commit comments

Comments
 (0)