Repository navigation
Move from Deno to Node.js and Vite+ - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves the repo from Deno to Node.js + Vite+ (
vp), like the other cunarist repos. The published package keeps its name (thin-scrollbars-everywhere), itsimport/requireentry points, and its behavior. The dnt build (scripts/build-npm.ts,npm/) is replaced byvp pack(tsdown).What changed
deno.json/deno.lockare gone. Config now lives only inpackage.json,tsconfig.json, andvite.config.ts, plus a committedpackage-lock.json.engines.nodeis>=22.18.vp packbuildssrc/index.ts(wassrc/mod.ts) intodist/index.js(ESM) anddist/index.cjs(CommonJS), each with its own declaration file. The target ises2022, the same as the dnt lib.exports["."]keeps theimport/requirepair, andmain/module/typespoint atdist/. The tarball ships onlydist/,README.md, andLICENSE.eslint-plugin-explicit-typesandeslint-plugin-import-structurethrough theirallconfigs. Repo-wide offs, each with a reason, and theprojectOverridesarray live inscripts/project-lint*.ts, along with the hugoalh ports (includingno-nan). Every rule from the Deno config is still covered: the full table is in.agents/memory/lint-parity-with-deno.md.printWidth: 80,quoteProps: "preserve",embeddedLanguageFormatting: "off"), soexample/index.htmlgets reindented.src/index.ts. The nativeattachShadowis now read through a function-typed property (typescript/unbound-method), and the patched function is namedattachShadow(func-names). As a side effect,Element.prototype.attachShadow.nameis now"attachShadow"instead of"". Nothing else changes.src/index.test.tsrun in happy-dom. They cover the document and existing, open, and closed shadow roots, restoring the sheet after it is overwritten, repeat calls, and the patched method's name.ci.ymlrunsvp check,vp pack, andnpm pack --dry-run, thenvp teston Node 22.18.0 and latest.publish.ymlnow publishes when a GitHub release is published (it used to run on tag push). It first runs the full CI, checks that the tag matches thepackage.jsonversion, then runsvp packandnpm publish --provenancewith OIDC and no token.AGENTS.mdand.agents/notes (includinglint-config.md), plus thereleaseandreview-cycleskills.npm run examplereplacesdeno task example. README unchanged.Risks
v*tag push to a published GitHub release. The workflow file is stillpublish.yml, so npm's trusted publisher should still match, but the first release from it will confirm that. The version now comes frompackage.json(0.1.6, the latest on npm), not the tag.esm//script/folders and nosrc/copy in the tarball. Deep imports into those paths stop working, but they were never part ofexports. The package root now has"type": "module", which is safe because the CommonJS file uses.cjs.mainmerged in after this lands. Expect conflicts insrc/mod.ts(nowsrc/index.ts), the reformattedexample/index.html, andscripts/build-npm.ts(deleted). Its frame code will also have to pass the new lint rules.🤖 Generated with Claude Code