@hirarijs/loader 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ // src/import.ts
4
+ var import_node_module = require("module");
5
+ (0, import_node_module.register)("@hirarijs/loader/loader");
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/import.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/import.ts
2
+ import { register } from "module";
3
+ register("@hirarijs/loader/loader");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hirarijs/loader",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Runtime loader for HirariJS that wires loader plugins and config",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -17,13 +17,14 @@
17
17
  "require": "./dist/register-auto.cjs",
18
18
  "types": "./dist/register.d.ts"
19
19
  },
20
- "./loader": "./dist/loader.js"
20
+ "./loader": "./dist/loader.js",
21
+ "./import": "./dist/import.js"
21
22
  },
22
23
  "files": [
23
24
  "dist"
24
25
  ],
25
26
  "scripts": {
26
- "build": "tsup src/index.ts src/register.ts src/register-auto.ts src/loader.ts --format esm,cjs --dts",
27
+ "build": "tsup src/index.ts src/register.ts src/register-auto.ts src/loader.ts src/import.ts --format esm,cjs --dts",
27
28
  "test": "node --test"
28
29
  },
29
30
  "dependencies": {