Skip to content

Commit db41edb

Browse files
authored
Update dependencies (#1088)
* remove build:tsc script and TypeScript pre-compilation step from devtools package, update bin entry to use tsx runtime for executing TypeScript directly, change module exports from compiled .js to source .ts files, add tsx 4.23.1 dependency, update cutting.ts script to use tsx instead of node with experimental flags, remove postbuild chmod script and tools directory references * add Read permissions for Claude settings and skills directories to local configuration
1 parent 6049781 commit db41edb

7 files changed

Lines changed: 330 additions & 715 deletions

File tree

.changeset/nice-places-wash.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@cutting/devtools": patch
3+
"@cutting/assert": patch
4+
"@cutting/util": patch
5+
"@cutting/svg": patch
6+
---
7+
8+
add files field to @cutting/assert, @cutting/util and @cutting/svg so published tarballs contain dist: pnpm 11.15.1 applies the root .gitignore when packing, which stripped dist from the previous release, and devtools now fails the build hard when the bundler process cannot be spawned instead of exiting 0

.claude/settings.local.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@
2929
"Bash(awk 'NR<=234 && /^ [a-zA-Z@.\\\\/-]+:$/ {imp=$0} END{}' pnpm-lock.yaml)",
3030
"Bash(awk 'NR<=234 && /^ [^ ]/ {line=$0} NR==234 {print \"importer:\", line}' pnpm-lock.yaml)",
3131
"Bash(PUPPETEER_SKIP_DOWNLOAD=1 pnpm install --force)",
32-
"Bash(pnpm --filter @cutting/frontend-support build)"
32+
"Bash(pnpm --filter @cutting/frontend-support build)",
33+
"Bash(npm pack *)",
34+
"Bash(node -e \"console.log\\(require\\('/Users/paulcowan/projects/cuttingedge/packages/assert/package.json'\\).version\\)\")",
35+
"Bash(pnpm --filter @cutting/assert build)",
36+
"Bash(node -e \"let d='';process.stdin.on\\('data',c=>d+=c\\).on\\('end',\\(\\)=>{const j=JSON.parse\\(d\\);console.log\\('fileCount',j.dist.fileCount\\)}\\)\")",
37+
"Bash(pnpm pack *)",
38+
"Bash(tar -tzf /private/tmp/claude-501/-Users-paulcowan-projects-cuttingedge/f421e1d3-d311-4db8-a567-3b7871b5e292/scratchpad/assert-test.tgz)",
39+
"Read(//Users/paulcowan/.claude/**)",
40+
"Read(//Users/paulcowan/claude/skills/**)"
3341
]
3442
}
3543
}

packages/assert/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
},
99
"types": "dist/esm/index.d.ts",
1010
"type": "module",
11+
"files": [
12+
"dist"
13+
],
1114
"license": "MIT",
1215
"scripts": {
1316
"build": "NODE_ENV=production devtools rolldown",

packages/devtools/src/bin/cutting.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { assert } from 'assert-ts';
77
import chalk from 'chalk';
88
import { spawnSync } from 'child_process';
99
import fs from 'fs';
10+
import { createRequire } from 'module';
1011
import path from 'path';
1112
import { fileURLToPath } from 'url';
1213

@@ -34,12 +35,15 @@ switch (script) {
3435

3536
assert(fs.existsSync(command), `Unknown script ${command}`);
3637

37-
const tsxBin = path.join(__dirname, '../../node_modules/.bin/tsx');
38+
const require = createRequire(import.meta.url);
39+
const tsxCli = require.resolve('tsx/cli');
3840

39-
const result = spawnSync(tsxBin, [path.resolve(command)].concat(args), {
41+
const result = spawnSync(process.execPath, [tsxCli, path.resolve(command)].concat(args), {
4042
stdio: 'inherit',
4143
});
4244

45+
assert(!result.error, `failed to run ${command}: ${result.error?.message}`);
46+
4347
if (result.signal) {
4448
if (result.signal === 'SIGKILL') {
4549
console.info(

packages/svg/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"type": "module",
1010
"sideEffects": false,
1111
"types": "dist/esm/index.d.ts",
12+
"files": [
13+
"dist"
14+
],
1215
"license": "MIT",
1316
"dependencies": {
1417
"@cutting/assert": "workspace:*",

packages/util/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
},
99
"types": "dist/esm/index.d.ts",
1010
"type": "module",
11+
"files": [
12+
"dist"
13+
],
1114
"license": "MIT",
1215
"scripts": {
1316
"build": "NODE_ENV=production devtools rolldown",

0 commit comments

Comments
 (0)