@tscircuit/cli 0.1.1628 → 0.1.1629
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/build/build.worker.js +676 -265
- package/dist/cli/main.js +1749 -1292
- package/dist/cli/snapshot/snapshot.worker.js +484 -77
- package/dist/lib/index.js +12 -2
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -65811,7 +65811,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
|
|
|
65811
65811
|
}));
|
|
65812
65812
|
};
|
|
65813
65813
|
// package.json
|
|
65814
|
-
var version = "0.1.
|
|
65814
|
+
var version = "0.1.1628";
|
|
65815
65815
|
var package_default = {
|
|
65816
65816
|
name: "@tscircuit/cli",
|
|
65817
65817
|
version,
|
|
@@ -80125,6 +80125,7 @@ class DevServer {
|
|
|
80125
80125
|
projectDir;
|
|
80126
80126
|
ignoredFiles;
|
|
80127
80127
|
kicadPcm;
|
|
80128
|
+
autorouterDebug;
|
|
80128
80129
|
httpServer;
|
|
80129
80130
|
eventsWatcher;
|
|
80130
80131
|
fsKy;
|
|
@@ -80134,12 +80135,14 @@ class DevServer {
|
|
|
80134
80135
|
port,
|
|
80135
80136
|
componentFilePath,
|
|
80136
80137
|
projectDir,
|
|
80137
|
-
kicadPcm
|
|
80138
|
+
kicadPcm,
|
|
80139
|
+
autorouterDebug
|
|
80138
80140
|
}) {
|
|
80139
80141
|
this.port = port;
|
|
80140
80142
|
this.componentFilePath = componentFilePath;
|
|
80141
80143
|
this.projectDir = projectDir ?? path27.dirname(componentFilePath);
|
|
80142
80144
|
this.kicadPcm = kicadPcm ?? false;
|
|
80145
|
+
this.autorouterDebug = autorouterDebug ?? false;
|
|
80143
80146
|
const projectConfig = loadProjectConfig(this.projectDir);
|
|
80144
80147
|
this.ignoredFiles = projectConfig?.ignoredFiles ?? [];
|
|
80145
80148
|
this.fsKy = distribution_default.create({
|
|
@@ -80162,6 +80165,13 @@ class DevServer {
|
|
|
80162
80165
|
this.eventsWatcher.on("REQUEST_TO_SAVE_SNIPPET", this.saveSnippet.bind(this));
|
|
80163
80166
|
this.eventsWatcher.on("INSTALL_PACKAGE", (event) => this.handleInstallPackage(event.full_package_name));
|
|
80164
80167
|
this.eventsWatcher.on("TOKEN_UPDATED", (event) => this.handleTokenUpdated(event.registry_token));
|
|
80168
|
+
if (this.autorouterDebug) {
|
|
80169
|
+
this.eventsWatcher.on("*", (event) => {
|
|
80170
|
+
if (!String(event.event_type).startsWith("autorouting:"))
|
|
80171
|
+
return;
|
|
80172
|
+
console.log(kleur_default.cyan(`[autorouter] ${event.event_type} ${JSON.stringify(event)}`));
|
|
80173
|
+
});
|
|
80174
|
+
}
|
|
80165
80175
|
this.filesystemWatcher = watch(this.projectDir, {
|
|
80166
80176
|
persistent: true,
|
|
80167
80177
|
ignoreInitial: true,
|