@make-mjs
packages
Collection of Purpose
This is a collection of packages that help turn a normal Babel JavaScript file that uses ES module import
syntax into a .mjs
file that import
s exact URL.
Packages
- @make-mjs/cli: Command-line executable
- @make-mjs/main: APIs to compile a directory
- @make-mjs/code: APIs to compile a file
- @make-mjs/url: APIs to transform an import/export URL
- and more...
APIs Documentation
Go to the GitHub page
Development
System Requirements
- Node.js ≥ 10.16.3
- Package Manager: pnpm
- Git
Scripts
Build
pnpm run build
Clean
pnpm run clean
Test
Test Everything
pnpm test
Test Changed Files Only
pnpm test -- --onlyChanged
Test A Single File
pnpm test path/to/test/file.test.ts
or
pnpm test filename.test.ts
Update Jest Snapshot
pnpm test -- -u
Start Node.js REPL
This starts a Node.js REPL where you can import every module inside packages/
folder.
pnpm run repl