1.1.0 • Published 2 years ago

@wz-libs/ts-to-js v1.1.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
2 years ago

ts-to-js

introduction


rollup tools to translate typescript into javascript.

build.config.ts Or build.config.js


NOTE


  1. build.config.js | build.config.ts package.json setting type: commonjs Execute with the command tsToJs.

  2. build.config.js | build.config.ts package.json setting type: module Execute with the command tsToJsEsm.

  3. If dtsFile: true is set, error code may be reported: TS2792, where you need to create the tsconfig.json file in the project root and add the moduleResolution: node or module: commonjs property:

{
  "compilerOptions": {
    "moduleResolution": "node" 
  }
}

commander


  • build - Compile
  • clean - Clearing output Files