refactor: modernization project foundation#288
Open
yangxu52 wants to merge 6 commits into
Open
Conversation
bc07e6e to
67053c6
Compare
- switch development workflow from npm to pnpm - require Node.js >=18.12.0 and pnpm >=10 via engines - remove package-lock.json and keep pnpm-lock.yaml - update build and debug docs to use pnpm - fix webpack ts-loader exclude `node_modules` typo
67053c6 to
e643853
Compare
- ignore .local task artifacts and pnpm debug logs - add editorconfig and gitattributes for basic repo formatting rules - add prettier config and ignore rules - add prettier as a dev dependency
a24f259 to
ea124de
Compare
- add ESLint 9 flat config - add lint, tsc, and check scripts - align tsconfig with noEmit checks - add `@types` to fix `index.js` TS9006 issue
72de876 to
454e2b1
Compare
- run pnpm check on push and pull_request
- initialize husky through the prepare script - run lint-staged from the pre-commit hook - apply eslint --fix and prettier --write to staged files
- use tsconfig.json as the noEmit typecheck entry - add tsconfig.build.json for webpack bundling - bind ts-loader to the build config explicitly
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.
This PR establishes the first modernization baseline for the repository and development workflow.
It focuses on package management, formatting, static checks, CI, pre-commit automation, and clearer TypeScript
configuration boundaries.
There are no intentional public runtime API changes in this PR.
Included commits
chore: adopt pnpm for repository development
node_modulestypochore: add formatting baseline
chore: add lint and typecheck baseline
@typesto fixindex.jsTS9006 issueci: add GitHub Actions check workflow
chore: add husky pre-commit checks
chore: split tsconfig for check and build
Validated with:
pnpm check