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

Commit 6ed8807

Browse files
committed
chore: update templates with types script
1 parent c75e9fa commit 6ed8807

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ to: tooling/<%=h.changeCase.paramCase(name)%>/package.json
2020
"build": "rimraf ./dist && concurrently yarn:build:*",
2121
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps",
2222
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps",
23+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
2324
"watch": "concurrently yarn:watch:*",
2425
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps --watch",
2526
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps --watch",

tooling/auto-import/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"build": "rimraf ./dist && concurrently yarn:build:*",
1717
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps",
1818
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps",
19+
"build:types": "cross-env tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
1920
"watch": "concurrently yarn:watch:*",
2021
"watch:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps --watch",
2122
"watch:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps --watch",

0 commit comments

Comments
 (0)