Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 9158f28

Browse files
committed
chore: use corss-env to build types
1 parent 4f31245 commit 9158f28

File tree

18 files changed

+29
-30
lines changed

18 files changed

+29
-30
lines changed

_templates/generator/component/package.json.ejs.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ to: packages/<%=h.changeCase.paramCase(name)%>/package.json
3232
"build": "concurrently yarn:build:*",
3333
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps",
3434
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps",
35-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
35+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
3636
"watch": "concurrently yarn:watch:*",
3737
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps --watch",
3838
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps --watch",
39-
"watch:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
39+
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
4040
},
4141
"dependencies": {
4242
"@chakra-ui/styled-system": "^1.4.1",

_templates/generator/module/package.json.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ to: packages/<%=h.changeCase.paramCase(name)%>/package.json
2323
"watch": "concurrently yarn:watch:*",
2424
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps --watch",
2525
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps --watch",
26-
"watch:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
26+
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
2727
}
2828
}

packages/c-accordion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build": "concurrently yarn:build:*",
1717
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps",
1818
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps",
19-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types"
19+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types"
2020
},
2121
"dependencies": {
2222
"@chakra-ui/vue-system": "*"

packages/c-alert/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"build": "concurrently yarn:build:*",
1818
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps",
1919
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps",
20-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
20+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
2121
"watch": "concurrently yarn:watch:*",
2222
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps --watch",
2323
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps --watch",
24-
"watch:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
24+
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
2525
},
2626
"dependencies": {
2727
"@chakra-ui/styled-system": "^1.4.1",

packages/c-button/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"build": "concurrently yarn:build:*",
1717
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .tsx -d dist/esm --source-maps",
1818
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .tsx -d dist/cjs --source-maps",
19-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
19+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
2020
"watch": "concurrently yarn:watch:*",
2121
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .tsx -d dist/esm --source-maps --watch",
2222
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .tsx -d dist/cjs --source-maps --watch",
23-
"watch:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
23+
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
2424
},
2525
"dependencies": {
2626
"@chakra-ui/styled-system": "^1.4.1",

packages/c-button/src/button.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ const CButtonIcon = defineComponent({
149149
: children?.[0]
150150

151151
return () =>
152-
// @ts-ignore JSX props error
153152
<chakra.span label="button__icon" {...attrs}>
154153
{_children}
155154
</chakra.span>

packages/c-icon/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"build": "concurrently yarn:build:*",
2424
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps",
2525
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps",
26-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
26+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
2727
"watch": "concurrently yarn:watch:*",
2828
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps --watch",
2929
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps --watch",
30-
"watch:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
30+
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
3131
},
3232
"dependencies": {
3333
"@chakra-ui/styled-system": "^1.4.1",

packages/c-reset/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
"build": "concurrently yarn:build:*",
3030
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps",
3131
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps",
32-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
32+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
3333
"watch": "concurrently yarn:watch:*",
3434
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps --watch",
3535
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps --watch",
36-
"watch:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
36+
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
3737
},
3838
"dependencies": {
3939
"@chakra-ui/styled-system": "^1.4.1",

packages/c-spinner/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"build": "concurrently yarn:build:*",
2929
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps",
3030
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps",
31-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
31+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
3232
"watch": "concurrently yarn:watch:*",
3333
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps --watch",
3434
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps --watch",
35-
"watch:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
35+
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
3636
},
3737
"dependencies": {
3838
"@chakra-ui/styled-system": "^1.4.1",

packages/c-theme-provider/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
"build": "concurrently yarn:build:*",
2323
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps",
2424
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps",
25-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
25+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
2626
"watch": "concurrently yarn:watch:*",
2727
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts -d dist/esm --source-maps --watch",
2828
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts -d dist/cjs --source-maps --watch",
29-
"watch:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
29+
"watch:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types --watch"
3030
},
3131
"dependencies": {
3232
"@chakra-ui/vue-theme": "*"

0 commit comments

Comments
 (0)