@tscircuit/cli 0.1.1439 → 0.1.1441
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 +14 -3
- package/dist/lib/index.js +14 -3
- package/package.json +2 -2
package/dist/cli/main.js
CHANGED
|
@@ -100688,7 +100688,7 @@ var import_perfect_cli = __toESM2(require_dist2(), 1);
|
|
|
100688
100688
|
// lib/getVersion.ts
|
|
100689
100689
|
import { createRequire as createRequire2 } from "node:module";
|
|
100690
100690
|
// package.json
|
|
100691
|
-
var version = "0.1.
|
|
100691
|
+
var version = "0.1.1439";
|
|
100692
100692
|
var package_default = {
|
|
100693
100693
|
name: "@tscircuit/cli",
|
|
100694
100694
|
version,
|
|
@@ -100702,7 +100702,7 @@ var package_default = {
|
|
|
100702
100702
|
"@biomejs/biome": "^1.9.4",
|
|
100703
100703
|
"@tscircuit/circuit-json-placement-analysis": "^0.0.6",
|
|
100704
100704
|
"@tscircuit/circuit-json-routing-analysis": "^0.0.1",
|
|
100705
|
-
"@tscircuit/circuit-json-schematic-placement-analysis": "github:tscircuit/circuit-json-schematic-placement-analysis#
|
|
100705
|
+
"@tscircuit/circuit-json-schematic-placement-analysis": "github:tscircuit/circuit-json-schematic-placement-analysis#b6d5fe675adc26a2fc988aa081e6fb51e6bf696a",
|
|
100706
100706
|
"@tscircuit/eval": "^0.0.835",
|
|
100707
100707
|
"@tscircuit/fake-snippets": "^0.0.182",
|
|
100708
100708
|
"@tscircuit/file-server": "^0.0.32",
|
|
@@ -250926,6 +250926,7 @@ Publish completed with ${uploadResults.succeeded.length} files uploaded and ${up
|
|
|
250926
250926
|
// lib/dev/DevServer.ts
|
|
250927
250927
|
var debug13 = Debug3("tscircuit:devserver");
|
|
250928
250928
|
var BINARY_FILE_EXTENSIONS2 = new Set([".glb", ".png", ".jpeg", ".jpg"]);
|
|
250929
|
+
var CONFIG_MODULE_FILENAMES2 = ["tscircuit.config.ts", "tscircuit.config.js"];
|
|
250929
250930
|
|
|
250930
250931
|
class DevServer {
|
|
250931
250932
|
port;
|
|
@@ -251120,7 +251121,7 @@ class DevServer {
|
|
|
251120
251121
|
async uploadInitialNodeModules() {
|
|
251121
251122
|
try {
|
|
251122
251123
|
console.log(kleur_default.blue("Analyzing node_modules dependencies..."));
|
|
251123
|
-
const nodeModuleFiles =
|
|
251124
|
+
const nodeModuleFiles = Array.from(new Set(this.getInitialNodeModuleDependencyEntryFiles().flatMap((entryFilePath) => getAllNodeModuleFilePaths(entryFilePath, this.projectDir))));
|
|
251124
251125
|
console.log(kleur_default.blue(`Found ${nodeModuleFiles.length} node_modules files to upload`));
|
|
251125
251126
|
if (nodeModuleFiles.length > 0) {
|
|
251126
251127
|
await this.uploadNodeModuleFiles(nodeModuleFiles);
|
|
@@ -251168,6 +251169,16 @@ class DevServer {
|
|
|
251168
251169
|
throw error;
|
|
251169
251170
|
}
|
|
251170
251171
|
}
|
|
251172
|
+
getInitialNodeModuleDependencyEntryFiles() {
|
|
251173
|
+
const entryFiles = [this.componentFilePath];
|
|
251174
|
+
for (const configFileName of CONFIG_MODULE_FILENAMES2) {
|
|
251175
|
+
const configPath = path56.join(this.projectDir, configFileName);
|
|
251176
|
+
if (fs52.existsSync(configPath)) {
|
|
251177
|
+
entryFiles.push(configPath);
|
|
251178
|
+
}
|
|
251179
|
+
}
|
|
251180
|
+
return entryFiles;
|
|
251181
|
+
}
|
|
251171
251182
|
async postBinaryFileUpsertMultipart({
|
|
251172
251183
|
filePath,
|
|
251173
251184
|
initiator,
|
package/dist/lib/index.js
CHANGED
|
@@ -65733,7 +65733,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
|
|
|
65733
65733
|
}));
|
|
65734
65734
|
};
|
|
65735
65735
|
// package.json
|
|
65736
|
-
var version = "0.1.
|
|
65736
|
+
var version = "0.1.1439";
|
|
65737
65737
|
var package_default = {
|
|
65738
65738
|
name: "@tscircuit/cli",
|
|
65739
65739
|
version,
|
|
@@ -65747,7 +65747,7 @@ var package_default = {
|
|
|
65747
65747
|
"@biomejs/biome": "^1.9.4",
|
|
65748
65748
|
"@tscircuit/circuit-json-placement-analysis": "^0.0.6",
|
|
65749
65749
|
"@tscircuit/circuit-json-routing-analysis": "^0.0.1",
|
|
65750
|
-
"@tscircuit/circuit-json-schematic-placement-analysis": "github:tscircuit/circuit-json-schematic-placement-analysis#
|
|
65750
|
+
"@tscircuit/circuit-json-schematic-placement-analysis": "github:tscircuit/circuit-json-schematic-placement-analysis#b6d5fe675adc26a2fc988aa081e6fb51e6bf696a",
|
|
65751
65751
|
"@tscircuit/eval": "^0.0.835",
|
|
65752
65752
|
"@tscircuit/fake-snippets": "^0.0.182",
|
|
65753
65753
|
"@tscircuit/file-server": "^0.0.32",
|
|
@@ -78809,6 +78809,7 @@ Publish completed with ${uploadResults.succeeded.length} files uploaded and ${up
|
|
|
78809
78809
|
// lib/dev/DevServer.ts
|
|
78810
78810
|
var debug2 = Debug2("tscircuit:devserver");
|
|
78811
78811
|
var BINARY_FILE_EXTENSIONS2 = new Set([".glb", ".png", ".jpeg", ".jpg"]);
|
|
78812
|
+
var CONFIG_MODULE_FILENAMES2 = ["tscircuit.config.ts", "tscircuit.config.js"];
|
|
78812
78813
|
|
|
78813
78814
|
class DevServer {
|
|
78814
78815
|
port;
|
|
@@ -79003,7 +79004,7 @@ class DevServer {
|
|
|
79003
79004
|
async uploadInitialNodeModules() {
|
|
79004
79005
|
try {
|
|
79005
79006
|
console.log(kleur_default.blue("Analyzing node_modules dependencies..."));
|
|
79006
|
-
const nodeModuleFiles =
|
|
79007
|
+
const nodeModuleFiles = Array.from(new Set(this.getInitialNodeModuleDependencyEntryFiles().flatMap((entryFilePath) => getAllNodeModuleFilePaths(entryFilePath, this.projectDir))));
|
|
79007
79008
|
console.log(kleur_default.blue(`Found ${nodeModuleFiles.length} node_modules files to upload`));
|
|
79008
79009
|
if (nodeModuleFiles.length > 0) {
|
|
79009
79010
|
await this.uploadNodeModuleFiles(nodeModuleFiles);
|
|
@@ -79051,6 +79052,16 @@ class DevServer {
|
|
|
79051
79052
|
throw error;
|
|
79052
79053
|
}
|
|
79053
79054
|
}
|
|
79055
|
+
getInitialNodeModuleDependencyEntryFiles() {
|
|
79056
|
+
const entryFiles = [this.componentFilePath];
|
|
79057
|
+
for (const configFileName of CONFIG_MODULE_FILENAMES2) {
|
|
79058
|
+
const configPath = path26.join(this.projectDir, configFileName);
|
|
79059
|
+
if (fs25.existsSync(configPath)) {
|
|
79060
|
+
entryFiles.push(configPath);
|
|
79061
|
+
}
|
|
79062
|
+
}
|
|
79063
|
+
return entryFiles;
|
|
79064
|
+
}
|
|
79054
79065
|
async postBinaryFileUpsertMultipart({
|
|
79055
79066
|
filePath,
|
|
79056
79067
|
initiator,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1441",
|
|
4
4
|
"main": "dist/cli/main.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/cli/main.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@biomejs/biome": "^1.9.4",
|
|
12
12
|
"@tscircuit/circuit-json-placement-analysis": "^0.0.6",
|
|
13
13
|
"@tscircuit/circuit-json-routing-analysis": "^0.0.1",
|
|
14
|
-
"@tscircuit/circuit-json-schematic-placement-analysis": "github:tscircuit/circuit-json-schematic-placement-analysis#
|
|
14
|
+
"@tscircuit/circuit-json-schematic-placement-analysis": "github:tscircuit/circuit-json-schematic-placement-analysis#b6d5fe675adc26a2fc988aa081e6fb51e6bf696a",
|
|
15
15
|
"@tscircuit/eval": "^0.0.835",
|
|
16
16
|
"@tscircuit/fake-snippets": "^0.0.182",
|
|
17
17
|
"@tscircuit/file-server": "^0.0.32",
|