@tscircuit/cli 0.1.1045 → 0.1.1046
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/cli/main.js
CHANGED
|
@@ -71664,7 +71664,7 @@ var registerStaticAssetLoaders = () => {
|
|
|
71664
71664
|
// cli/main.ts
|
|
71665
71665
|
var import_perfect_cli = __toESM2(require_dist2(), 1);
|
|
71666
71666
|
// package.json
|
|
71667
|
-
var version = "0.1.
|
|
71667
|
+
var version = "0.1.1045";
|
|
71668
71668
|
var package_default = {
|
|
71669
71669
|
name: "@tscircuit/cli",
|
|
71670
71670
|
version,
|
|
@@ -75402,6 +75402,7 @@ import * as path14 from "node:path";
|
|
|
75402
75402
|
import { z } from "zod";
|
|
75403
75403
|
var projectConfigSchema = z.object({
|
|
75404
75404
|
mainEntrypoint: z.string().optional(),
|
|
75405
|
+
libraryEntrypoint: z.string().optional(),
|
|
75405
75406
|
previewComponentPath: z.string().optional(),
|
|
75406
75407
|
siteDefaultComponentPath: z.string().optional(),
|
|
75407
75408
|
ignoredFiles: z.array(z.string()).optional(),
|
|
@@ -80103,8 +80104,9 @@ var getEntrypoint = async ({
|
|
|
80103
80104
|
return null;
|
|
80104
80105
|
}
|
|
80105
80106
|
const projectConfig = loadProjectConfig(validatedProjectDir);
|
|
80106
|
-
|
|
80107
|
-
|
|
80107
|
+
const configEntrypoint = projectConfig?.mainEntrypoint ?? projectConfig?.libraryEntrypoint;
|
|
80108
|
+
if (configEntrypoint && typeof configEntrypoint === "string") {
|
|
80109
|
+
const validatedConfigPath = validateFilePath(configEntrypoint, validatedProjectDir);
|
|
80108
80110
|
if (validatedConfigPath) {
|
|
80109
80111
|
const relativePath = path18.relative(validatedProjectDir, validatedConfigPath);
|
|
80110
80112
|
onSuccess(`Using entrypoint from tscircuit.config.json: '${relativePath}'`);
|
package/dist/lib/index.js
CHANGED
|
@@ -60435,7 +60435,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
|
|
|
60435
60435
|
}));
|
|
60436
60436
|
};
|
|
60437
60437
|
// package.json
|
|
60438
|
-
var version = "0.1.
|
|
60438
|
+
var version = "0.1.1045";
|
|
60439
60439
|
var package_default = {
|
|
60440
60440
|
name: "@tscircuit/cli",
|
|
60441
60441
|
version,
|
|
@@ -67724,6 +67724,7 @@ import * as path11 from "node:path";
|
|
|
67724
67724
|
import { z as z21 } from "zod";
|
|
67725
67725
|
var projectConfigSchema = z21.object({
|
|
67726
67726
|
mainEntrypoint: z21.string().optional(),
|
|
67727
|
+
libraryEntrypoint: z21.string().optional(),
|
|
67727
67728
|
previewComponentPath: z21.string().optional(),
|
|
67728
67729
|
siteDefaultComponentPath: z21.string().optional(),
|
|
67729
67730
|
ignoredFiles: z21.array(z21.string()).optional(),
|
package/package.json
CHANGED
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"type": "string",
|
|
15
15
|
"description": "Entry file for the circuit project."
|
|
16
16
|
},
|
|
17
|
+
"libraryEntrypoint": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Alias for mainEntrypoint used as the TypeScript library entry file."
|
|
20
|
+
},
|
|
17
21
|
"previewComponentPath": {
|
|
18
22
|
"type": "string",
|
|
19
23
|
"description": "Optional component path used for previews."
|