@tscircuit/cli 0.1.85 → 0.1.87

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.
Files changed (2) hide show
  1. package/dist/main.js +5 -6
  2. package/package.json +1 -3
package/dist/main.js CHANGED
@@ -433425,7 +433425,7 @@ import readline from "node:readline";
433425
433425
  import { execSync as execSync2 } from "node:child_process";
433426
433426
  var import_semver = __toESM2(require_semver2(), 1);
433427
433427
  // package.json
433428
- var version = "0.1.84";
433428
+ var version = "0.1.86";
433429
433429
  var package_default = {
433430
433430
  name: "@tscircuit/cli",
433431
433431
  version,
@@ -433468,7 +433468,6 @@ var package_default = {
433468
433468
  redaxios: "^0.5.1",
433469
433469
  semver: "^7.6.3",
433470
433470
  tempy: "^3.1.0",
433471
- tsup: "^8.3.5",
433472
433471
  "typed-ky": "^0.0.4"
433473
433472
  },
433474
433473
  peerDependencies: {
@@ -433486,7 +433485,6 @@ var package_default = {
433486
433485
  setup: "bun run build && npm install -g .",
433487
433486
  build: "bun run build:bun",
433488
433487
  "build:bun": "bun build ./cli/main.ts --target node --outfile ./dist/main.js",
433489
- "build:tsup": "tsup --config ./tsup.config.js",
433490
433488
  format: "biome format --write .",
433491
433489
  "format:check": "biome format .",
433492
433490
  cli: "bun ./cli/main.ts",
@@ -438721,6 +438719,7 @@ var pushSnippet = async ({
438721
438719
  path16.resolve(path16.join(path16.dirname(snippetFilePath), "package.json")),
438722
438720
  path16.resolve(path16.join(process.cwd(), "package.json"))
438723
438721
  ].find((path17) => fs16.existsSync(path17));
438722
+ const projectDir = packageJsonPath ? path16.dirname(packageJsonPath) : path16.dirname(snippetFilePath);
438724
438723
  if (!packageJsonPath) {
438725
438724
  onError("No package.json found, try running 'tsci init' to bootstrap the project");
438726
438725
  return onExit(1);
@@ -438730,7 +438729,7 @@ var pushSnippet = async ({
438730
438729
  try {
438731
438730
  packageJson = JSON.parse(fs16.readFileSync(packageJsonPath).toString());
438732
438731
  } catch {
438733
- onError("Invalid package.json provided");
438732
+ onError("Invalid package.json");
438734
438733
  return onExit(1);
438735
438734
  }
438736
438735
  }
@@ -438876,9 +438875,9 @@ var pushSnippet = async ({
438876
438875
  });
438877
438876
  onSuccess(`
438878
438877
  `);
438879
- const filePaths = getPackageFilePaths(path16.dirname(packageJsonPath));
438878
+ const filePaths = getPackageFilePaths(projectDir);
438880
438879
  for (const fullFilePath of filePaths) {
438881
- const relativeFilePath = path16.relative(path16.dirname(snippetFilePath), fullFilePath);
438880
+ const relativeFilePath = path16.relative(projectDir, fullFilePath);
438882
438881
  const fileContent = fs16.readFileSync(fullFilePath, "utf-8");
438883
438882
  await ky2.post("package_files/create", {
438884
438883
  json: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.85",
3
+ "version": "0.1.87",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",
@@ -40,7 +40,6 @@
40
40
  "redaxios": "^0.5.1",
41
41
  "semver": "^7.6.3",
42
42
  "tempy": "^3.1.0",
43
- "tsup": "^8.3.5",
44
43
  "typed-ky": "^0.0.4"
45
44
  },
46
45
  "peerDependencies": {
@@ -58,7 +57,6 @@
58
57
  "setup": "bun run build && npm install -g .",
59
58
  "build": "bun run build:bun",
60
59
  "build:bun": "bun build ./cli/main.ts --target node --outfile ./dist/main.js",
61
- "build:tsup": "tsup --config ./tsup.config.js",
62
60
  "format": "biome format --write .",
63
61
  "format:check": "biome format .",
64
62
  "cli": "bun ./cli/main.ts",