tthr 0.0.23 → 0.0.25

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/index.js +5 -5
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -314,7 +314,7 @@ function parseSchema(source) {
314
314
  ${normalisedContent.split("\n").join("\n ")}
315
315
  }`;
316
316
  const columns = {};
317
- const columnRegex = /(\w+)\s*:\s*(\w+)\s*\(\s*\)([^,\n]*)/g;
317
+ const columnRegex = /(\w+)\s*:\s*(\w+)(?:<[^>]*>)?\s*\(\s*\)([^,\n]*)/g;
318
318
  let colMatch;
319
319
  while ((colMatch = columnRegex.exec(columnsContent)) !== null) {
320
320
  const colName = colMatch[1];
@@ -2181,16 +2181,16 @@ async function updateCommand(options) {
2181
2181
  const devDeps = packageJson.devDependencies || {};
2182
2182
  const installedDeps = [];
2183
2183
  for (const pkg of TETHER_PACKAGES) {
2184
- if (deps[pkg]) {
2184
+ if (deps[pkg] && !deps[pkg].startsWith("workspace:")) {
2185
2185
  installedDeps.push({ name: pkg, current: deps[pkg], isDev: false });
2186
2186
  }
2187
- if (devDeps[pkg]) {
2187
+ if (devDeps[pkg] && !devDeps[pkg].startsWith("workspace:")) {
2188
2188
  installedDeps.push({ name: pkg, current: devDeps[pkg], isDev: true });
2189
2189
  }
2190
2190
  }
2191
2191
  if (installedDeps.length === 0) {
2192
- console.log(chalk8.yellow(" No Tether packages found in package.json"));
2193
- console.log(chalk8.dim(" Tether packages start with @tthr/\n"));
2192
+ console.log(chalk8.yellow(" No updatable Tether packages found in package.json"));
2193
+ console.log(chalk8.dim(" Tether packages start with @tthr/ (workspace: dependencies are skipped)\n"));
2194
2194
  return;
2195
2195
  }
2196
2196
  console.log(chalk8.dim(` Found ${installedDeps.length} Tether package(s):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tthr",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "Tether CLI - project scaffolding, migrations, and deployment",
5
5
  "type": "module",
6
6
  "bin": {
@@ -17,12 +17,6 @@
17
17
  "files": [
18
18
  "dist"
19
19
  ],
20
- "scripts": {
21
- "build": "tsup src/index.ts --format esm --dts",
22
- "dev": "tsup src/index.ts --format esm --watch",
23
- "typecheck": "tsc --noEmit",
24
- "start": "TETHER_DEV=true node dist/index.js"
25
- },
26
20
  "dependencies": {
27
21
  "commander": "^13.0.0",
28
22
  "chalk": "^5.4.1",
@@ -35,5 +29,11 @@
35
29
  "@types/prompts": "^2.4.9",
36
30
  "tsup": "^8.3.6",
37
31
  "typescript": "^5.7.2"
32
+ },
33
+ "scripts": {
34
+ "build": "tsup src/index.ts --format esm --dts",
35
+ "dev": "tsup src/index.ts --format esm --watch",
36
+ "typecheck": "tsc --noEmit",
37
+ "start": "TETHER_DEV=true node dist/index.js"
38
38
  }
39
- }
39
+ }