Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 628 Bytes

README.md

File metadata and controls

16 lines (15 loc) · 628 Bytes

build-island

Manage intermediate process for TypeScript, CommonJS and Vanilla JS mixed environment
You can get a solution for some of defects/bugs in the internal loader of nodejs such as below:
(Case1) [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for ...
(Case2) require() of ES Module is not supported
(Case3) exports is not defined

Usage - for build child directory

    ...
    "script": {
      "build": "npx build-island b cmd/oips"
    },
    ...
    // => you can run a build safely which root directory is at "./cmd/oips" (child directory, package `type: "module"`)