-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output typescript declarations during build. Resolves #289.
- Loading branch information
1 parent
901a36b
commit f6344ab
Showing
15 changed files
with
281 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
packages/generator-single-spa/src/react/templates/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
{ | ||
"extends": "ts-config-single-spa", | ||
"compilerOptions": { | ||
"jsx": "react-jsx" | ||
"jsx": "react-jsx", | ||
"declarationDir": "dist" | ||
}, | ||
"include": ["src/**/*", "node_modules/@types"], | ||
"files": ["<%- mainFile %>"], | ||
"include": ["src/**/*"], | ||
"exclude": ["src/**/*.test*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
packages/generator-single-spa/src/root-config/templates/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"extends": "ts-config-single-spa", | ||
"include": ["src/**/*", "node_modules/@types"], | ||
"files": ["<%- mainFile %>"], | ||
"compilerOptions": { | ||
"declarationDir": "dist" | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["src/**/*.test*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
packages/generator-single-spa/src/util-module/templates/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"extends": "ts-config-single-spa", | ||
"include": ["src/**/*", "node_modules/@types"], | ||
"files": ["<%= mainFile %>"], | ||
"compilerOptions": { | ||
"declarationDir": "dist" | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["src/**/*.test*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"0 debug pnpm:scope": { | ||
"selected": 1, | ||
"workspacePrefix": "/Users/joeldenning/code/create-single-spa" | ||
}, | ||
"1 error pnpm": { | ||
"code": "ERR_PNPM_LINK_BAD_PARAMS", | ||
"err": { | ||
"name": "Error", | ||
"message": "You must provide a parameter", | ||
"code": "ERR_PNPM_LINK_BAD_PARAMS", | ||
"stack": "Error: You must provide a parameter\n at Object.handler (/Users/joeldenning/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:118117:17)\n at async /Users/joeldenning/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:126966:20\n at async run (/Users/joeldenning/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:126941:34)\n at async runPnpm (/Users/joeldenning/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:127151:5)\n at async /Users/joeldenning/pnpm-global/5/node_modules/.pnpm/[email protected]/node_modules/pnpm/dist/pnpm.cjs:127143:7" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
"es2016.array.include", | ||
"es2018" | ||
], | ||
"noEmit": true | ||
"declaration": true, | ||
"emitDeclarationOnly": true | ||
} | ||
} |
Oops, something went wrong.