electrobun 2.0.1-beta.7 → 2.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.
package/lib/moved.cjs ADDED
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ // Electrobun 2.x application APIs are not distributed through npm. The SDK
4
+ // is projected into your project by Hutch; this module exists only to turn
5
+ // a stale import into instructions.
6
+
7
+ throw new Error(
8
+ "Electrobun 2.x APIs come from the Hutch devkit, not node_modules. " +
9
+ "Run `npx electrobun dev` (or `hutch electrobun prepare`) so imports " +
10
+ "resolve from .hutch/devkit, and see the migration guide: " +
11
+ "https://electrobun.dev/electrobun/guides/migrating-to-v2",
12
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "2.0.1-beta.7",
3
+ "version": "2.0.1",
4
4
  "description": "The lightweight npm bootstrap for Electrobun and Hutch.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",
@@ -22,10 +22,17 @@
22
22
  },
23
23
  "files": [
24
24
  "bin/electrobun.cjs",
25
+ "bin/resolve-hutch.cjs",
26
+ "lib/moved.cjs",
25
27
  "README.md",
26
28
  "LICENSE"
27
29
  ],
28
30
  "engines": {
29
31
  "node": ">=18"
32
+ },
33
+ "exports": {
34
+ ".": "./lib/moved.cjs",
35
+ "./package.json": "./package.json",
36
+ "./*": "./lib/moved.cjs"
30
37
  }
31
38
  }