0.0.2 • Published 7 months ago
build-island v0.0.2
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"`)