Skip to content

Commit e301785

Browse files
committed
build solidrouter types into root
1 parent 9903133 commit e301785

File tree

4 files changed

+26
-9
lines changed

4 files changed

+26
-9
lines changed

packages/solid/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/*.d.ts
2+
/*.d.ts.map

packages/solid/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@
1515
],
1616
"main": "build/cjs/index.js",
1717
"module": "build/esm/index.js",
18-
"types": "build/index.d.ts",
18+
"types": "build/types/index.d.ts",
1919
"exports": {
2020
"./package.json": "./package.json",
2121
".": {
2222
"import": {
23-
"types": "./build/index.d.ts",
23+
"types": "./build/types/index.d.ts",
2424
"default": "./build/esm/index.js"
2525
},
2626
"require": {
27-
"types": "./build/index.d.ts",
27+
"types": "./build/types/index.d.ts",
2828
"default": "./build/cjs/index.js"
2929
}
3030
},
3131
"./solidrouter": {
3232
"import": {
33-
"types": "./build/solidrouter.d.ts",
33+
"types": "./solidrouter.d.ts",
3434
"default": "./build/esm/solidrouter.js"
3535
},
3636
"require": {
37-
"types": "./build/solidrouter.d.ts",
37+
"types": "./solidrouter.d.ts",
3838
"default": "./build/cjs/solidrouter.js"
3939
}
4040
}
@@ -69,15 +69,16 @@
6969
"build": "run-p build:transpile build:types",
7070
"build:dev": "yarn build",
7171
"build:transpile": "rollup -c rollup.npm.config.mjs",
72-
"build:types": "run-s build:types:core",
72+
"build:types": "run-s build:types:core build:types:solidrouter",
7373
"build:types:core": "tsc -p tsconfig.types.json",
74+
"build:types:solidrouter": "tsc -p tsconfig.solidrouter-types.json",
7475
"build:watch": "run-p build:transpile:watch build:types:watch",
7576
"build:dev:watch": "yarn build:watch",
7677
"build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
7778
"build:types:watch": "tsc -p tsconfig.types.json --watch",
7879
"build:tarball": "npm pack",
7980
"circularDepCheck": "madge --circular src/index.ts",
80-
"clean": "rimraf build coverage sentry-solid-*.tgz",
81+
"clean": "rimraf build coverage sentry-solid-*.tgz ./*.d.ts ./*.d.ts.map",
8182
"fix": "eslint . --format stylish --fix",
8283
"lint": "eslint . --format stylish",
8384
"test": "vitest run",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
4+
"compilerOptions": {
5+
"declaration": true,
6+
"declarationMap": true,
7+
"emitDeclarationOnly": true,
8+
"outDir": "./"
9+
},
10+
11+
"include": ["src/solidrouter.ts"],
12+
"exclude": []
13+
}

packages/solid/tsconfig.types.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"declaration": true,
66
"declarationMap": true,
77
"emitDeclarationOnly": true,
8-
"outDir": "build"
9-
}
8+
"outDir": "build/types"
9+
},
10+
11+
"exclude": ["src/solidrouter.ts"]
1012
}

0 commit comments

Comments
 (0)