@tscircuit/core 0.0.37 → 0.0.38

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/dist/index.js CHANGED
@@ -922,7 +922,7 @@ var hostConfig = {
922
922
  );
923
923
  }
924
924
  throw new Error(
925
- `Unsupported component type (not registered in @tscircuit/core catalogue): ${type}`
925
+ `Unsupported component type (not registered in @tscircuit/core catalogue): "${type}" See CREATING_NEW_COMPONENTS.md`
926
926
  );
927
927
  }
928
928
  const instance = prepare(new target(props), {});
@@ -53,7 +53,7 @@ const hostConfig: HostConfig<
53
53
  )
54
54
  }
55
55
  throw new Error(
56
- `Unsupported component type (not registered in @tscircuit/core catalogue): ${type}`,
56
+ `Unsupported component type (not registered in @tscircuit/core catalogue): "${type}" See CREATING_NEW_COMPONENTS.md`,
57
57
  )
58
58
  }
59
59
 
@@ -1,5 +1,9 @@
1
1
  import * as Components from "./components"
2
2
  import { extendCatalogue } from "./fiber/catalogue"
3
+
4
+ // Register all components, generally you don't need to manually
5
+ // register a component, as long as it's exported from lib/components
6
+ // it'll automatically be registered!
3
7
  extendCatalogue(Components)
4
8
 
5
9
  // Aliases
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tscircuit/core",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "0.0.37",
5
+ "version": "0.0.38",
6
6
  "types": "dist/index.d.ts",
7
7
  "main": "dist/index.js",
8
8
  "files": [