Package Exports
- typescript-esbuild
- typescript-esbuild/Target/Class/TypeScriptESBuild.js
- typescript-esbuild/Target/Function/JSON.js
- typescript-esbuild/Target/Function/Merge.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (typescript-esbuild) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🌀 TypeScriptESBuild
Build all your TypeScript files into JavaScript.
Installation
Add configuration and setup scripts:
npm install -D -E typescript-esbuild
Usage
Through a command line run:
npx typescript-esbuild 'Source/**/*.ts'
or in a package.json
file:
{
"scripts": {
"prepublishOnly": "TypeScriptESBuild 'Source/**/*.ts'"
}
}
ESBuild Configuration
Or with a custom ESBuild config file:
package.json
{
"scripts": {
"prepublishOnly": "TypeScriptESBuild 'Source/**/*.ts' -es ESBuild.ts"
}
}
See an example of a configuration file in ESBuild.ts
TypeScript Configuration
tsconfig.json
{
"compilerOptions": {
"outDir": "Target"
},
"extends": "typescript-esbuild/Target/Notation/TypeScript",
"include": ["Source"]
}