@axiom-lattice/microsandbox-service 0.0.8 → 0.0.9

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @axiom-lattice/microsandbox-service
2
2
 
3
+ ## 0.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 228d1e4: fix esm
8
+
3
9
  ## 0.0.8
4
10
 
5
11
  ### Patch Changes
package/dist/cli.js CHANGED
File without changes
package/dist/cli.mjs CHANGED
File without changes
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@axiom-lattice/microsandbox-service",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
7
7
  "bin": {
8
- "lattice-microsandbox-service": "./dist/cli.js"
8
+ "lattice-microsandbox-service": "./dist/cli.mjs"
9
9
  },
10
10
  "exports": {
11
11
  ".": {
@@ -16,12 +16,12 @@
16
16
  "./server": {
17
17
  "types": "./dist/server.d.ts",
18
18
  "import": "./dist/server.mjs",
19
- "require": "./dist/server.js"
19
+ "require": "./dist/server.mjs"
20
20
  },
21
21
  "./cli": {
22
22
  "types": "./dist/cli.d.ts",
23
23
  "import": "./dist/cli.mjs",
24
- "require": "./dist/cli.js"
24
+ "require": "./dist/cli.mjs"
25
25
  }
26
26
  },
27
27
  "dependencies": {
@@ -42,8 +42,8 @@
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsup src/index.ts src/server.ts src/cli.ts --format cjs,esm --dts --clean --sourcemap",
45
- "start": "node dist/cli.js",
46
- "dev": "tsup src/index.ts src/server.ts src/cli.ts --format cjs,esm --dts --watch --sourcemap --onSuccess \"node dist/cli.js\"",
45
+ "start": "node dist/cli.mjs",
46
+ "dev": "tsup src/index.ts src/server.ts src/cli.ts --format cjs,esm --dts --watch --sourcemap --onSuccess \"node dist/cli.mjs\"",
47
47
  "lint": "tsc --noEmit",
48
48
  "test": "jest",
49
49
  "test:watch": "jest --watch"
@@ -23,12 +23,12 @@ describe("package entrypoint", () => {
23
23
  describe("package metadata", () => {
24
24
  it("exposes the production CLI bin", () => {
25
25
  expect(packageJson.bin).toEqual({
26
- "lattice-microsandbox-service": "./dist/cli.js",
26
+ "lattice-microsandbox-service": "./dist/cli.mjs",
27
27
  });
28
28
  });
29
29
 
30
30
  it("uses explicit CLI-driven start scripts", () => {
31
- expect(packageJson.scripts.start).toBe("node dist/cli.js");
32
- expect(packageJson.scripts.dev).toContain('--onSuccess "node dist/cli.js"');
31
+ expect(packageJson.scripts.start).toBe("node dist/cli.mjs");
32
+ expect(packageJson.scripts.dev).toContain('--onSuccess "node dist/cli.mjs"');
33
33
  });
34
34
  });
@@ -68,7 +68,7 @@ function loadServerModule({
68
68
 
69
69
  describe("server CLI parsing", () => {
70
70
  it("publishes a dedicated CLI entrypoint", () => {
71
- expect(packageJson.bin["lattice-microsandbox-service"]).toBe("./dist/cli.js");
71
+ expect(packageJson.bin["lattice-microsandbox-service"]).toBe("./dist/cli.mjs");
72
72
  });
73
73
 
74
74
  it("parses --port and --host args", () => {