Search Terms
out, suffix
Suggestion
add --outSuffix compiler option
Use Cases
tsc --module es6 --outSuffix mjs
Examples
Imagine I have a package with file tree:
my_package/
├── a.ts
├── b.ts
├── index.ts
├── package.json
└── tsconfig.json
then I run:
> tsc --module es6 --outSuffix mjs
> tsc --module commonjs --outSuffix js
then the file tree will be:
my_package/
├── a.d.ts
├── a.js
├── a.mjs
├── a.ts
├── b.d.ts
├── b.js
├── b.mjs
├── b.ts
├── index.d.ts
├── index.js
├── index.mjs
├── index.ts
├── package.json
└── tsconfig.json
Checklist
My suggestion meets these guidelines:
Search Terms
out, suffix
Suggestion
add --outSuffix compiler option
Use Cases
tsc --module es6 --outSuffix mjsExamples
Checklist
My suggestion meets these guidelines: