Repository navigation
feat: helloworld ts package with tsconfig, vitest and other config - #4
Conversation
📝 WalkthroughWalkthroughAdds a pnpm monorepo and a new package @deepnote/hello-world (src, test, README, package.json, tsconfig). Introduces TypeScript, Vitest, Prettier, cspell and related configs (tsconfig.json, vitest.config.ts, .prettierrc, cspell.json). Expands root package.json with tooling scripts (build, test, test:coverage, typecheck), devDependencies, and lint-staged rules. Adds pnpm-workspace.yaml and updates .gitignore. Extends CI (.github/workflows/ci.yml) with permissions, timeouts, and new jobs (typecheck, build, test) where test runs coverage and uploads to Codecov. Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Dev (push / PR)
participant GH as GitHub Actions
participant Runner as Ubuntu Runner
participant Checkout as actions/checkout
participant SetupPNPM as pnpm/setup
participant SetupNode as actions/setup-node
participant PNPM as pnpm
participant Vitest as Vitest
participant Codecov as codecov/action@v5
Dev->>GH: push / open PR
GH->>Runner: schedule jobs (spell-check, format, lint, typecheck, build, test)
Runner->>Checkout: checkout code
Runner->>SetupPNPM: setup pnpm
Runner->>SetupNode: setup-node (node-version-file: '.nvmrc', cache: 'pnpm')
Runner->>PNPM: pnpm install
par Typecheck
Runner->>Runner: pnpm run typecheck
and Build
Runner->>Runner: pnpm run build
and Test
Runner->>Runner: pnpm run test:coverage
Runner->>Vitest: run tests -> produce coverage (lcov, json, html)
Runner->>Codecov: upload coverage (uses CODECOV_TOKEN, fail_ci_if_error: true)
Codecov-->>Runner: upload response
end
Runner-->>GH: report job statuses
Possibly related PRs
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (6)📓 Common learnings📚 Learning: 2025-09-03T12:54:35.368ZApplied to files:
📚 Learning: 2025-09-03T13:01:49.096ZApplied to files:
📚 Learning: 2025-09-03T12:53:28.421ZApplied to files:
📚 Learning: 2025-09-03T13:01:49.096ZApplied to files:
📚 Learning: 2025-09-03T13:01:49.096ZApplied to files:
🧬 Code graph analysis (1)packages/hello-world/src/index.test.ts (1)
🔇 Additional comments (5)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (11)
.github/workflows/ci.yml(1 hunks).gitignore(1 hunks)jest.config.js(1 hunks)package.json(1 hunks)packages/hello-world/README.md(1 hunks)packages/hello-world/package.json(1 hunks)packages/hello-world/src/index.test.ts(1 hunks)packages/hello-world/src/index.ts(1 hunks)packages/hello-world/tsconfig.json(1 hunks)pnpm-workspace.yaml(1 hunks)tsconfig.json(1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: jamesbhobbs
PR: deepnote/deepnote#18106
File: nx.json:90-97
Timestamp: 2025-08-12T16:59:17.439Z
Learning: In Nx monorepos, lint target inputs should include both workspace-level and project-level tsconfig files (e.g., "{workspaceRoot}/tsconfig.base.json" and "{projectRoot}/tsconfig*.json") because ESLint with TypeScript parser uses the nearest tsconfig for type-aware rules, and changes to any tsconfig can affect lint results without changing source files.
📚 Learning: 2025-08-25T14:42:02.289Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CLAUDE.md:0-0
Timestamp: 2025-08-25T14:42:02.289Z
Learning: Applies to {pnpm-lock.yaml,pnpm-workspace.yaml,package.json} : Use pnpm as the package manager for this project
Applied to files:
pnpm-workspace.yaml
📚 Learning: 2025-08-18T23:41:22.727Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CONVENTIONS.md:0-0
Timestamp: 2025-08-18T23:41:22.727Z
Learning: Use provided build/lint/test commands (pnpm build, lint, typecheck, test) and Nx invocations
Applied to files:
package.json
📚 Learning: 2025-09-03T12:54:35.368Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/instructions/interactiveWindow.instructions.md:0-0
Timestamp: 2025-09-03T12:54:35.368Z
Learning: Applies to src/interactive-window/**/*.ts : Add unit and integration tests for new features and modifications; include performance and cross-platform test coverage
Applied to files:
packages/hello-world/src/index.test.ts
🧬 Code graph analysis (1)
packages/hello-world/src/index.test.ts (1)
packages/hello-world/src/index.ts (1)
helloWorld(1-3)
🔇 Additional comments (12)
pnpm-workspace.yaml (1)
1-2: LGTM.Standard pnpm workspace config for monorepo packages.
jest.config.js (1)
1-7: Config is reasonable.Standard ts-jest setup for monorepo.
testMatchwill recursively find*.test.tsunderpackages/, which works for the current structure..gitignore (1)
1-4: LGTM.Standard ignores for TypeScript monorepo artifacts.
.github/workflows/ci.yml (2)
58-79: LGTM.New typecheck job follows existing pattern correctly.
80-123: No changes to build and test jobs
The~markers are GitHub’s way of showing unchanged context. The diff only adds a new typecheck step before the build job—both the existing build and test jobs themselves remain untouched.package.json (2)
22-30: Dependencies appropriate.TypeScript, Jest, and ts-jest versions are current and compatible.
12-14: Approve: build/test/typecheck scriptsPackage-level tsconfig.json found at packages/hello-world/tsconfig.json, so recursive typecheck is valid.
packages/hello-world/tsconfig.json (1)
1-9: LGTM!Clean package config. Extends root, proper output directories, excludes test files from build.
packages/hello-world/src/index.test.ts (1)
1-7: LGTM!Simple, correct test for the function. Good baseline coverage.
packages/hello-world/README.md (1)
1-11: LGTM!Clear, concise docs. Usage example is accurate.
packages/hello-world/src/index.ts (1)
1-3: LGTM!Simple, correct implementation. Good baseline for the monorepo.
tsconfig.json (1)
1-15: LGTM!Solid root config. Strict mode enabled, sensible Node.js defaults.
|
Nvm it's already there. |
@Artmann Prettier is in main, but yes we should extend it. You linked to internal links in a repo that will be OSS, we should set a practice of explicitly pasting in what we refer to. |
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
cspell.json (1)
16-27: Refactor duplicate words between override and root.The words array at lines 33-42 duplicates entries from the markdown override at lines 16-26. Since root-level words apply globally (including markdown files), keep only markdown-specific terms in the override and move shared terms to root, or remove the override words entirely.
Apply this diff to eliminate duplication:
"overrides": [ { "filename": "**/*.md", - "words": [ - "deepnote", - "jupyter", - "jupyterlab", - "ipynb", - "pnpm", - "monorepo", - "dockerised", - "vscode", - "windsurf", - "oss" - ] + "words": [] } ],Also applies to: 32-49
.prettierignore (1)
1-19: Remove duplicate entries.Each pattern appears twice. Same issue as .gitignore.
Apply this diff:
-.git/ .git/ -*.min.css *.min.css -*.min.js *.min.js -build/ build/ -coverage/ coverage/ -dist/ dist/ -node_modules/ node_modules/ -package-lock.json package-lock.json -pnpm-lock.yaml pnpm-lock.yaml
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (9)
.gitignore(1 hunks).prettierignore(1 hunks).prettierrc(2 hunks)cspell.json(2 hunks)jest.config.js(1 hunks)package.json(1 hunks)packages/hello-world/package.json(1 hunks)packages/hello-world/tsconfig.json(1 hunks)tsconfig.json(1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: jamesbhobbs
PR: deepnote/deepnote#18106
File: nx.json:90-97
Timestamp: 2025-08-12T16:59:17.439Z
Learning: In Nx monorepos, lint target inputs should include both workspace-level and project-level tsconfig files (e.g., "{workspaceRoot}/tsconfig.base.json" and "{projectRoot}/tsconfig*.json") because ESLint with TypeScript parser uses the nearest tsconfig for type-aware rules, and changes to any tsconfig can affect lint results without changing source files.
📚 Learning: 2025-09-03T12:53:28.421Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-09-03T12:53:28.421Z
Learning: Applies to **/!(*.node|*.web).ts : Place shared cross-platform logic in common `.ts` files (not suffixed with `.node` or `.web`)
Applied to files:
.gitignore
📚 Learning: 2025-08-18T23:41:22.727Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CONVENTIONS.md:0-0
Timestamp: 2025-08-18T23:41:22.727Z
Learning: Use provided build/lint/test commands (pnpm build, lint, typecheck, test) and Nx invocations
Applied to files:
package.json
📚 Learning: 2025-08-27T12:59:52.099Z
Learnt from: vire
PR: deepnote/deepnote#18235
File: tsconfig.base.json:27-31
Timestamp: 2025-08-27T12:59:52.099Z
Learning: In tsconfig.base.json path mappings, Deepnote intentionally uses only single index.ts file mappings (e.g., "deepnote/analytics": ["libs/analytics/src/index.ts"]) without wildcard patterns to enforce barrel exports and prevent deep imports into package internals.
Applied to files:
packages/hello-world/tsconfig.json
🔇 Additional comments (9)
cspell.json (1)
12-12: Config additions look good.The top-level
language,useGitignore, andversionfields are appropriate.Also applies to: 30-31
packages/hello-world/package.json (1)
1-19: LGTM.Package structure is sound. The
filesfield correctly limits published artifacts, and scripts align with root tooling.jest.config.js (1)
1-9: LGTM.Jest configuration is appropriate for the TypeScript monorepo. Patterns for roots, testMatch, and coverage are consistent.
package.json (2)
12-14: Scripts look correct.Build, test, and typecheck scripts properly orchestrate monorepo operations.
22-31: Outdated dependency versions detected.typescript(5.7.2 → 5.9.2),jest(29.7.0 → 30.2.0),ts-jest(29.2.5 → 29.4.4),@types/node(22.10.2 → 24.6.0),@types/jest(29.5.14 → 30.0.0) aren’t at their latest releases. Confirm whether to upgrade or keep these versions pinned..prettierrc (2)
9-9: LGTM! Plugin addition is clean.The prettier-plugin-sort-json plugin is properly added to support JSON sorting in the overrides.
25-32: JSON sorting config looks good.Recursive sorting with package.json exclusions is appropriate. The config will auto-sort JSON files on format.
packages/hello-world/tsconfig.json (1)
1-9: Clean package-level tsconfig.Configuration properly extends root, excludes tests from compilation, and defines clear input/output boundaries.
tsconfig.json (1)
1-22: Solid strict TypeScript baseline.Comprehensive strict mode with all recommended flags enabled. ES2022 target and declaration generation support modern development and type distribution.
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
|
@coderabbitai pls open a github issue mentioning that primary linting of eslint or biome or a blend is not yet done and we need to decide which open source list of lint rules we should use e.g. we definitely want vitest eslint rules as that's added above but more substantially we need to decide re the prod code linting conventions. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 45 @jamesbhobbs Created issue #8 to track the linting configuration decision (ESLint, Biome, or blend). Assigned to you. |
saltenasl
left a comment
There was a problem hiding this comment.
Blocking because of the test command is still using on jest which was removed
| files: coverage/**/test-results.xml | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@v5 |
There was a problem hiding this comment.
| uses: codecov/codecov-action@v5 | |
| uses: codecov/codecov-action@v5 | |
| if: '!cancelled()' |
I don't think we need to upload partial coverage results to codecov in case of failure
There was a problem hiding this comment.
I went ahead and removed the test-results-action step and gated the codecov-action step with if: success(). The idea is to avoid pushing partial or failed coverage data to Codecov, which can clutter reports and make them misleading. This way we only upload coverage when the full test suite passes.
What do you think about this approach?
See 3e583e4
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (10)
.github/workflows/ci.yml(2 hunks).gitignore(1 hunks).prettierignore(1 hunks).prettierrc(2 hunks)CONTRIBUTING.md(1 hunks)package.json(1 hunks)packages/hello-world/package.json(1 hunks)pnpm-workspace.yaml(1 hunks)tsconfig.json(1 hunks)vitest.config.ts(1 hunks)
🧰 Additional context used
🧠 Learnings (8)
📓 Common learnings
Learnt from: jamesbhobbs
PR: deepnote/deepnote#1
File: CONTRIBUTING.md:69-74
Timestamp: 2025-09-30T14:10:33.515Z
Learning: In the deepnote/deepnote repository, ESLint will be added to package.json scripts when TypeScript code is introduced to the project. The CONTRIBUTING.md documentation mentions ESLint as a forward-looking reference.
📚 Learning: 2025-09-03T13:01:49.096Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/instructions/typescript.instructions.md:0-0
Timestamp: 2025-09-03T13:01:49.096Z
Learning: Use `npm run format` to check code style
Applied to files:
CONTRIBUTING.md
📚 Learning: 2025-09-03T13:01:49.096Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/instructions/typescript.instructions.md:0-0
Timestamp: 2025-09-03T13:01:49.096Z
Learning: Use `npm run format-fix` to auto-fix formatting issues
Applied to files:
CONTRIBUTING.md
📚 Learning: 2025-08-18T23:41:22.727Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CONVENTIONS.md:0-0
Timestamp: 2025-08-18T23:41:22.727Z
Learning: Use provided build/lint/test commands (pnpm build, lint, typecheck, test) and Nx invocations
Applied to files:
package.json
📚 Learning: 2025-08-18T23:41:22.727Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CONVENTIONS.md:0-0
Timestamp: 2025-08-18T23:41:22.727Z
Learning: Use pnpm over npm; check package.json for scripts
Applied to files:
package.json
📚 Learning: 2025-08-25T14:42:02.289Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CLAUDE.md:0-0
Timestamp: 2025-08-25T14:42:02.289Z
Learning: Applies to {pnpm-lock.yaml,pnpm-workspace.yaml,package.json} : Use pnpm as the package manager for this project
Applied to files:
pnpm-workspace.yaml
📚 Learning: 2025-09-03T12:53:28.421Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-09-03T12:53:28.421Z
Learning: Applies to **/!(*.node|*.web).ts : Place shared cross-platform logic in common `.ts` files (not suffixed with `.node` or `.web`)
Applied to files:
.gitignore
📚 Learning: 2025-09-03T12:53:28.421Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-09-03T12:53:28.421Z
Learning: Applies to **/*.node.ts : Use `*.node.ts` for Desktop-specific implementations that require full file system access and Python environments
Applied to files:
.gitignore
🔇 Additional comments (13)
.prettierignore (1)
3-7: LGTM!Consolidated ignore patterns are correct and sorted.
vitest.config.ts (1)
8-9: Verify junit path matches CI upload glob.junit output is
./coverage/test-results.xmlbut ci.yml uploadscoverage/**/test-results.xml. Glob will match but ensure no nested structure creates multiple files.package.json (4)
12-15: LGTM!Scripts align with CI jobs and monorepo structure.
18-19: LGTM!Format targets now include JSON, consistent with
.prettierrcplugin.
23-31: LGTM!vitest and @vitest/coverage-v8 versions aligned at 3.2.4 per best practices. TypeScript and Node types match engine requirements.
34-42: LGTM!lint-staged config fixed (per previous review) and JSON formatting added.
.prettierrc (3)
9-9: LGTM!Plugin added, matches devDependency.
19-24: LGTM!YAML single quotes enabled.
25-32: LGTM!JSON sorting enabled with package.json excluded per previous discussion.
.github/workflows/ci.yml (4)
28-29: LGTM!Quoted node-version-file and cache for consistency.
58-79: LGTM!Typecheck job added, matches package.json script.
80-101: LGTM!Build job added, matches package.json script.
102-137: LGTM!Test job with coverage uploads. Test results upload on
!cancelled()allows reporting failures; coverage upload without condition only runs on success, aligning with past discussion about not uploading partial coverage.
There was a problem hiding this comment.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
package.json(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-08-18T23:41:22.727Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CONVENTIONS.md:0-0
Timestamp: 2025-08-18T23:41:22.727Z
Learning: Use provided build/lint/test commands (pnpm build, lint, typecheck, test) and Nx invocations
Applied to files:
package.json
📚 Learning: 2025-08-18T23:41:22.727Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CONVENTIONS.md:0-0
Timestamp: 2025-08-18T23:41:22.727Z
Learning: Use pnpm over npm; check package.json for scripts
Applied to files:
package.json
🪛 GitHub Actions: CI
package.json
[error] 1-1: Dependency specifiers in lockfile do not match manifest: 9 dependencies have mismatched versions.
3e583e4 to
8220deb
Compare
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
Forked PRs cannot access repository secrets, causing the Codecov upload step to fail and block CI when fail_ci_if_error: true is set. This change adds a conditional check to skip the Codecov upload when the workflow runs on a forked PR, ensuring external contributors’ CI runs are not blocked. Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
There was a problem hiding this comment.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/ci.yml(3 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: jamesbhobbs
PR: deepnote/deepnote#1
File: CONTRIBUTING.md:69-74
Timestamp: 2025-09-30T14:10:33.515Z
Learning: In the deepnote/deepnote repository, ESLint will be added to package.json scripts when TypeScript code is introduced to the project. The CONTRIBUTING.md documentation mentions ESLint as a forward-looking reference.
🔇 Additional comments (2)
.github/workflows/ci.yml (2)
141-146: Confirm coverage artifact path
Run the following to verifypnpm run test:coverageemitscoverage/lcov.info:rg -nP 'coverage\/lcov\.info' -C0 . --glob '!**/{node_modules,dist,build}/**'
147-153: Guard Codecov on token presence and coverage file existence.Avoid failing CI when CODECOV_TOKEN is missing or the coverage file is absent.
- - name: Upload coverage to Codecov - if: ${{ success() && (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork) }} + - name: Upload coverage to Codecov + if: ${{ success() && (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork) && secrets.CODECOV_TOKEN != '' && hashFiles('coverage/lcov.info') != '' }} uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage/lcov.info fail_ci_if_error: trueAlt (public repo): drop the token input and rely on tokenless uploads.
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
There was a problem hiding this comment.
Actionable comments posted: 2
♻️ Duplicate comments (2)
tsconfig.json (1)
1-23: Strong strict config. Considercompositefor monorepo.All strict flags are properly enabled. For faster incremental builds across packages, add
"composite": trueto enable TypeScript project references."compilerOptions": { "alwaysStrict": true, + "composite": true, "declaration": true,vitest.config.ts (1)
3-19: Considerprojectsfor monorepo isolation.Current
includeglob works, but Vitest 3.2.4 recommendsprojectsfor per-package isolation and better config inheritance. Based on learnings.Example:
export default defineConfig({ + projects: [{ root: "./packages/hello-world" }], test: { globals: false, - include: ["packages/**/*.test.ts"],
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (5)
biome.json(1 hunks)package.json(1 hunks)packages/hello-world/src/index.test.ts(1 hunks)tsconfig.json(1 hunks)vitest.config.ts(1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2025-10-01T14:09:45.537Z
Learnt from: andyjakubowski
PR: deepnote/deepnote#4
File: package.json:0-0
Timestamp: 2025-10-01T14:09:45.537Z
Learning: In the deepnote/deepnote repository, the team does not rely on rule order in .prettierignore, so sorting it alphabetically is acceptable.
Applied to files:
package.json
📚 Learning: 2025-08-18T23:41:22.727Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CONVENTIONS.md:0-0
Timestamp: 2025-08-18T23:41:22.727Z
Learning: Use provided build/lint/test commands (pnpm build, lint, typecheck, test) and Nx invocations
Applied to files:
package.json
📚 Learning: 2025-09-03T12:54:35.368Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/instructions/interactiveWindow.instructions.md:0-0
Timestamp: 2025-09-03T12:54:35.368Z
Learning: Applies to src/interactive-window/**/*.ts : Add unit and integration tests for new features and modifications; include performance and cross-platform test coverage
Applied to files:
packages/hello-world/src/index.test.ts
📚 Learning: 2025-09-25T14:43:13.976Z
Learnt from: FilipPyrek
PR: deepnote/deepnote#18531
File: biome.json:58-58
Timestamp: 2025-09-25T14:43:13.976Z
Learning: Biome is a JavaScript/TypeScript linter and formatter that doesn't process .proto files, so Protocol Buffer source files don't need to be explicitly ignored in biome.json configuration.
Applied to files:
biome.json
🧬 Code graph analysis (1)
packages/hello-world/src/index.test.ts (1)
packages/hello-world/src/index.ts (1)
helloWorld(1-3)
🪛 GitHub Actions: CI
vitest.config.ts
[error] 1-20: Prettier formatting check failed. The formatter would modify the file. Run 'pnpm run format' or the appropriate formatter to fix code style issues in this file.
packages/hello-world/src/index.test.ts
[error] 1-9: Prettier formatting check failed. The formatter would modify the file. Run 'pnpm run format' or the appropriate formatter to fix code style issues in this file.
🔇 Additional comments (6)
biome.json (1)
17-17: Good separation of concerns.Excluding
package.jsonfrom Biome prevents conflicts withsort-package-json.package.json (5)
4-12: Good metadata additions.
private: trueprevents accidental publish; keywords aid discoverability.
15-25: Scripts align with CI workflow.Recursive build/typecheck commands cover the monorepo properly. Test scripts match vitest.config.ts settings.
28-37: Lint-staged config properly scoped.File-type routing (Biome for HTML, Prettier for MD/YML, sort-package-json for package.json) avoids formatter conflicts.
41-49: DevDependencies align with tooling.Added TypeScript, Vitest, coverage, and formatters. Versions are current and match config files.
51-55: Engine constraints ensure consistency.Pinned
packageManagerandenginesprevent version skew across environments.
Explicitly declare least-privilege permissions for the GITHUB_TOKEN. By default, workflows receive broad write access, which can be exploited if an action or dependency is compromised. Limiting to contents: read and pull-requests: read hardens the workflow while still providing the access needed. Reference: https://docs.github.com/en/actions/tutorials/authenticate-with-github_token#permissions-for-the-github_token Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
There was a problem hiding this comment.
Actionable comments posted: 3
♻️ Duplicate comments (1)
packages/hello-world/package.json (1)
15-18: Add test:coverage and typecheck scripts for parity with root.Keeps CI/local flows consistent.
"scripts": { "build": "tsdown", - "test": "vitest" + "test": "vitest", + "test:coverage": "vitest --coverage", + "typecheck": "tsc --noEmit" }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
package.json(1 hunks)packages/hello-world/package.json(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-10-01T14:09:45.537Z
Learnt from: andyjakubowski
PR: deepnote/deepnote#4
File: package.json:0-0
Timestamp: 2025-10-01T14:09:45.537Z
Learning: In the deepnote/deepnote repository, the team does not rely on rule order in .prettierignore, so sorting it alphabetically is acceptable.
Applied to files:
package.json
📚 Learning: 2025-08-18T23:41:22.727Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CONVENTIONS.md:0-0
Timestamp: 2025-08-18T23:41:22.727Z
Learning: Use provided build/lint/test commands (pnpm build, lint, typecheck, test) and Nx invocations
Applied to files:
package.json
🔇 Additional comments (1)
package.json (1)
23-25: No changes needed – Vitest already includespackages/**/*.test.tsin its root config.
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
Summary by CodeRabbit
New Features
Documentation
Tests
Chores