Repository navigation
Conversation
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
commit: |
dreyfus92
left a comment
There was a problem hiding this comment.
thanks for picking this up @mixto! i went a bit ham and down the rabbit hole with this one and there are a couple of loose ends we need to figure out, this will remain blocked until we figure out how to address all the stuff we need before making the shift.
the big one is that the test job is green but the suite is failing. the run on this pr reports 1698 failed | 796 passed and still exits 0, because bsh test never passes vitest's exit code thru. we need to fix this in tools, otherwise nothing catches a broken test once it lands.
once the exit code is honest there are real failures. 17 of the 19 prompt suites fail because the serialaizer bsh uses writes <cyan> style tags where our snopshots have raw escapes. bsh test -u fixes all of them and it's notation only.
the root bsh tes also runs everything 3 to 5 times, since the tools config excludes node_modules/** for some reason instead of **/node_modules/** and vitest walks into examples/*/node_modules/@clack/*. even with that excluded path.test.ts fails from rooth because vi.mock('node:fs') looks for __mocks__ relative to the vitest root. maybe we could keep pnpm -r run test like main had? with regenerated snapshots that passes both packages, though it still needs the tools fix to actually fail on failures.
cc. @43081j
| }, | ||
| "scripts": { | ||
| "build": "unbuild", | ||
| "build": "bsh build", |
There was a problem hiding this comment.
building prompts writes 38 untracked .d.ts and .d.ts.map files into packages/core/src, and since pretest builds, every pnpm test leaves them behind. the dts step picks up packages/prompts/tsconfig.json as its root, and the root paths alias pulls core's sources in from outside it, so their declarations land next to them. dropping packages/prompts/tsconfig.json so it falls back to the root one builds with no stray files. could we try that here?
What does this PR do?
Migration to the organisation’s tooling using
@bomb.sh/tools. This pull request updates the repository in relation to this #506 other one, which is very out of date.I have used the tsconfig.json configuration from the tools repository. I have left the compiler options that were not defined in the tools configuration.
The
depsscript usesknipto check dependencies. Thebsh lintcommand in the tools already usesknipwhen run. As the script is also used in workflows, it should be left as it is. I usepnpm dlxto call theknipbinary directly.