Skip to content

feat: helloworld ts package with tsconfig, vitest and other config - #4

Merged
andyjakubowski merged 25 commits into
mainfrom
ts-helloworld
Oct 1, 2025
Merged

andyjakubowski merged 25 commits into
mainfrom
ts-helloworld

Conversation

@jamesbhobbs

@jamesbhobbs jamesbhobbs commented Sep 30, 2025 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Added a new helloWorld package that returns "Hello, World!".
  • Documentation

    • Added README for the new package.
    • Updated contributing guide to reference the new test runner.
  • Tests

    • Added unit tests for the new package.
    • Enabled coverage reporting with automatic upload to Codecov.
  • Chores

    • Expanded CI with typecheck, build, and test jobs, permission and timeout updates.
    • Added workspace, TypeScript and Vitest configs, tooling, scripts, and updated ignore/formatting rules.

@coderabbitai

coderabbitai Bot commented Sep 30, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds 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
Loading

Possibly related PRs

  • chore: setup spell-check and root pnpm config #2: touches CI/tooling and root pnpm/package/cspell config—overlaps workflow and tooling changes.
  • deepnote/deepnote#18477: replaces CLI-based Codecov upload with action—directly related to the new Codecov action usage.
  • deepnote/deepnote#18074: modifies CI workflows to add/update Codecov coverage upload steps—closely connected to test/coverage job changes.

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title aligns with the pull request’s main objective by clearly indicating the addition of a HelloWorld TypeScript package along with tsconfig, Vitest, and supporting configuration files, making it directly descriptive of the changes. It is concise and avoids vague or unrelated terms.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a5dcf3f and bc0fe78.

📒 Files selected for processing (3)
  • .github/workflows/ci.yml (6 hunks)
  • packages/hello-world/src/index.test.ts (1 hunks)
  • vitest.config.ts (1 hunks)
🧰 Additional context used
🧠 Learnings (6)
📓 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-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-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:

  • vitest.config.ts
📚 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: Run `npm run format-fix` before committing any changes

Applied to files:

  • vitest.config.ts
📚 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:

  • vitest.config.ts
📚 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: ALWAYS run `npm run format-fix` before committing changes

Applied to files:

  • vitest.config.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 (5)
vitest.config.ts (1)

1-3: Config structure is correct.

Standard Vitest configuration setup.

.github/workflows/ci.yml (4)

13-16: Minimal permissions applied.

Least-privilege configuration follows security best practices.


18-40: Spell-check job configured correctly.

Timeout and setup steps are appropriate. Consistent quote style applied.


87-132: Typecheck and build jobs follow consistent pattern.

Timeouts and setup steps are appropriate for these operations.


133-163: Test job with coverage upload correctly configured.

Fork gating prevents external contributor CI failures. Coverage upload is properly conditional.


Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c085c69 and 601a401.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is 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. testMatch will recursively find *.test.ts under packages/, 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 scripts

Package-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.

Comment thread .github/workflows/ci.yml Resolved
Comment thread .gitignore Resolved
Comment thread jest.config.js Resolved
Comment thread packages/hello-world/package.json Resolved
Comment thread tsconfig.json Resolved
@Artmann

Artmann commented Sep 30, 2025 •

Copy link
Copy Markdown
Contributor

We should add prettier and our prettier config as well.
https://github.com/deepnote/deepnote-internal/blob/develop/.prettierrc
https://github.com/deepnote/deepnote-internal/blob/develop/.prettierignore

Nvm it's already there.

@jamesbhobbs

Copy link
Copy Markdown
Member Author

We should add prettier and our prettier config as well. https://github.com/deepnote/deepnote-internal/blob/develop/.prettierrc https://github.com/deepnote/deepnote-internal/blob/develop/.prettierignore

@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.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Sep 30, 2025

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 601a401 and 0ebdbcf.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is 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, and version fields are appropriate.

Also applies to: 30-31

packages/hello-world/package.json (1)

1-19: LGTM.

Package structure is sound. The files field 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.

Comment thread .gitignore Resolved
Comment thread package.json Resolved
coderabbitai[bot]
coderabbitai Bot previously approved these changes Sep 30, 2025
@jamesbhobbs jamesbhobbs changed the title feat: cursor first shot at helloworld ts package feat: helloworld ts package with tsconfig, vitest and other config Sep 30, 2025
@codecov

codecov Bot commented Sep 30, 2025 •

Copy link
Copy Markdown

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[bot]
coderabbitai Bot previously approved these changes Sep 30, 2025
@jamesbhobbs
jamesbhobbs requested a review from Artmann September 30, 2025 17:03
@jamesbhobbs
jamesbhobbs marked this pull request as ready for review September 30, 2025 17:03
@jamesbhobbs

Copy link
Copy Markdown
Member Author

@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.

@coderabbitai

coderabbitai Bot commented Sep 30, 2025

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Create GitHub issue for linting configuration decision
gh issue create \
  --title "Decide on linting configuration: ESLint, Biome, or blend" \
  --body "## Context

Primary linting configuration (ESLint, Biome, or blend) has not yet been established for the repository. We need to decide which open-source list of lint rules to adopt.

## Details

- Vitest ESLint rules are already being considered/added
- Need broader decision on production code linting conventions
- Options include:
  - ESLint with specific rule sets
  - Biome
  - A blend of both

## Related

- PR: https://github.com/deepnote/deepnote/pull/4
- Comment: https://github.com/deepnote/deepnote/pull/4#discussion_r1234567890
- Requested by: @jamesbhobbs" \
  --assignee jamesbhobbs

Length of output: 45


@jamesbhobbs Created issue #8 to track the linting configuration decision (ESLint, Biome, or blend). Assigned to you.

@saltenasl saltenasl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking because of the test command is still using on jest which was removed

Comment thread .github/workflows/ci.yml
files: coverage/**/test-results.xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread .prettierrc Resolved
Comment thread packages/hello-world/package.json Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0ebdbcf and eea5dd0.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is 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.xml but ci.yml uploads coverage/**/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 .prettierrc plugin.


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.

Comment thread vitest.config.ts Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between eea5dd0 and 52b651f.

📒 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.

Comment thread package.json Resolved
Comment thread package.json Resolved
Comment thread package.json Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 52b651f and 3e583e4.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml (2 hunks)

Comment thread .github/workflows/ci.yml Resolved
saltenasl
saltenasl previously approved these changes Oct 1, 2025

@saltenasl saltenasl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, LGTM!

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>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a718e1c and e8d6324.

📒 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 verify pnpm run test:coverage emits coverage/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: true

Alt (public repo): drop the token input and rely on tokenless uploads.

Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
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>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (2)
tsconfig.json (1)

1-23: Strong strict config. Consider composite for monorepo.

All strict flags are properly enabled. For faster incremental builds across packages, add "composite": true to enable TypeScript project references.

   "compilerOptions": {
     "alwaysStrict": true,
+    "composite": true,
     "declaration": true,
vitest.config.ts (1)

3-19: Consider projects for monorepo isolation.

Current include glob works, but Vitest 3.2.4 recommends projects for 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

📥 Commits

Reviewing files that changed from the base of the PR and between e8d6324 and ff7d00f.

📒 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.json from Biome prevents conflicts with sort-package-json.

package.json (5)

4-12: Good metadata additions.

private: true prevents 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 packageManager and engines prevent version skew across environments.

Comment thread packages/hello-world/src/index.test.ts Resolved
Comment thread vitest.config.ts Resolved
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>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between ff7d00f and a5dcf3f.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is 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 includes packages/**/*.test.ts in its root config.

Comment thread package.json Resolved
Comment thread packages/hello-world/package.json Resolved
Comment thread packages/hello-world/package.json Resolved
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
@andyjakubowski
andyjakubowski removed their request for review October 1, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants