Skip to content

Commit 1b38a6a

Browse files
committed
fix(): fix jsx types exports
1 parent cb2a296 commit 1b38a6a

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

bricks/basic/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,24 @@
1515
"dist-types",
1616
"docs"
1717
],
18+
"types": "dist-types/jsx.d.ts",
1819
"exports": {
1920
"./package.json": "./package.json",
2021
"./dist/bricks.json": "./dist/bricks.json",
2122
"./dist/manifest.json": "./dist/manifest.json",
2223
"./data-providers/*": {
2324
"types": "./dist-types/data-providers/*.d.ts"
2425
},
26+
".": "./dist-types/jsx.d.ts",
2527
"./*": {
2628
"types": "./dist-types/*/index.d.ts"
27-
},
28-
"./jsx.d.ts": "./dist-types/jsx.d.ts"
29+
}
2930
},
3031
"scripts": {
3132
"start": "cross-env NODE_ENV=development build-next-bricks --watch",
3233
"build": "npm run build:main && npm run build:types",
3334
"build:main": "cross-env NODE_ENV=production build-next-bricks",
34-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json && cp src/jsx.d.ts dist-types/jsx.d.ts",
35+
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json && copy-jsx-d-ts",
3536
"build:manifest": "cross-env NODE_ENV=production build-next-bricks --manifest-only",
3637
"test": "cross-env NODE_ENV='test' test-next",
3738
"test:ci": "cross-env NODE_ENV='test' CI=true test-next",

bricks/containers/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,21 @@
1515
"dist-types",
1616
"docs"
1717
],
18+
"types": "dist-types/jsx.d.ts",
1819
"exports": {
1920
"./package.json": "./package.json",
2021
"./dist/bricks.json": "./dist/bricks.json",
2122
"./dist/manifest.json": "./dist/manifest.json",
23+
".": "./dist-types/jsx.d.ts",
2224
"./*": {
2325
"types": "./dist-types/*/index.d.ts"
24-
},
25-
"./jsx.d.ts": "./dist-types/jsx.d.ts"
26+
}
2627
},
2728
"scripts": {
2829
"start": "cross-env NODE_ENV=development build-next-bricks --watch",
2930
"build": "npm run build:main && npm run build:types",
3031
"build:main": "cross-env NODE_ENV=production build-next-bricks",
31-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json && cp src/jsx.d.ts dist-types/jsx.d.ts",
32+
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json && copy-jsx-d-ts",
3233
"build:manifest": "cross-env NODE_ENV=production build-next-bricks --manifest-only",
3334
"test": "cross-env NODE_ENV='test' test-next",
3435
"test:ci": "cross-env NODE_ENV='test' CI=true test-next",

bricks/icons/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,18 @@
4747
}
4848
}
4949
},
50+
"types": "dist-types/jsx.d.ts",
5051
"exports": {
5152
"./package.json": "./package.json",
5253
"./dist/bricks.json": "./dist/bricks.json",
5354
"./dist/manifest.json": "./dist/manifest.json",
5455
"./data-providers/*": {
5556
"types": "./dist-types/data-providers/*.d.ts"
5657
},
58+
".": "./dist-types/jsx.d.ts",
5759
"./*": {
5860
"types": "./dist-types/*/index.d.ts"
59-
},
60-
"./jsx.d.ts": "./dist-types/jsx.d.ts"
61+
}
6162
},
6263
"scripts": {
6364
"prestart": "node ./scripts/pre-build.js",
@@ -66,7 +67,7 @@
6667
"prebuild:types": "node ./scripts/pre-build.js",
6768
"build": "npm run build:main && npm run build:types",
6869
"build:main": "cross-env NODE_ENV=production build-next-bricks",
69-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json && cp src/jsx.d.ts dist-types/jsx.d.ts",
70+
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json && copy-jsx-d-ts",
7071
"build:manifest": "cross-env NODE_ENV=production build-next-bricks --manifest-only",
7172
"test": "cross-env NODE_ENV='test' test-next",
7273
"test:ci": "cross-env NODE_ENV='test' CI=true test-next",

bricks/illustrations/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@
1515
"dist-types",
1616
"docs"
1717
],
18+
"types": "dist-types/jsx.d.ts",
1819
"exports": {
1920
"./package.json": "./package.json",
2021
"./dist/bricks.json": "./dist/bricks.json",
2122
"./dist/manifest.json": "./dist/manifest.json",
2223
"./data-providers/*": {
2324
"types": "./dist-types/data-providers/*.d.ts"
2425
},
26+
".": "./dist-types/jsx.d.ts",
2527
"./*": {
2628
"types": "./dist-types/*/index.d.ts"
27-
},
28-
"./jsx.d.ts": "./dist-types/jsx.d.ts"
29+
}
2930
},
3031
"nx": {
3132
"targets": {
@@ -53,7 +54,7 @@
5354
"prebuild:types": "node ./scripts/pre-build.js",
5455
"build": "npm run build:main && npm run build:types",
5556
"build:main": "cross-env NODE_ENV=production build-next-bricks",
56-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json && cp src/jsx.d.ts dist-types/jsx.d.ts",
57+
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json && copy-jsx-d-ts",
5758
"build:manifest": "cross-env NODE_ENV=production build-next-bricks --manifest-only",
5859
"test": "cross-env NODE_ENV='test' test-next",
5960
"test:ci": "cross-env NODE_ENV='test' CI=true test-next",

0 commit comments

Comments
 (0)