Comparing version 0.1.4 to 1.0.0
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.1.4", | ||
"version": "1.0.0", | ||
"license": "Apache-2.0", | ||
@@ -25,3 +25,3 @@ "author": { | ||
], | ||
"main": "./loader.mjs", | ||
"main": "./register.mjs", | ||
"bin": { | ||
@@ -28,0 +28,0 @@ "tsm-test": "./test.mjs", |
@@ -17,6 +17,6 @@ # @nlib/tsm | ||
``` | ||
node --experimental-loader=@nlib/tsm path/to/your/script.mts | ||
node --import=@nlib/tsm path/to/your/script.mts | ||
``` | ||
[`loader.mjs`](./loader.mjs) is a [Loader](https://nodejs.org/api/esm.html#loaders) to customize the default module resolution. It exports the [`load`](https://nodejs.org/api/esm.html#loadurl-context-nextload) function that loads modules with [esbuild](https://esbuild.github.io/). | ||
`@nlib/tsm` exports `register.mjs` which [registers](https://nodejs.org/api/module.html#moduleregisterspecifier-parenturl-options) `loader.mjs`. `loader.mjs` is a [loader](https://nodejs.org/api/esm.html#loaders) to customize the default module resolution. It exports the [`load`](https://nodejs.org/api/esm.html#loadurl-context-nextload) function that loads modules with [esbuild](https://esbuild.github.io/). | ||
@@ -27,3 +27,3 @@ ## Usage: Run test files | ||
The `tsm-test` will search for the test file for you and pass it to `node --test`. | ||
The `tsm-test` will search for the test files for you and pass them to `node --test`. | ||
@@ -30,0 +30,0 @@ ```sh |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10637
0