Skip to content

Commit 81888cc

Browse files
authored
chore: migrate to Rstack CLI (#59)
1 parent 5ccab72 commit 81888cc

12 files changed

Lines changed: 526 additions & 256 deletions

.prettierignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.rstack/hooks/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rs staged

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["rstack.rslint", "esbenp.prettier-vscode"]
2+
"recommendations": ["rstack.rstack"]
33
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"search.useIgnoreFiles": true,
3-
"editor.defaultFormatter": "esbenp.prettier-vscode"
3+
"editor.defaultFormatter": "rstack.rstack"
44
}

package.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,22 @@
1717
"./package.json": "./package.json"
1818
},
1919
"scripts": {
20-
"build": "rslib",
21-
"dev": "rslib -w",
22-
"lint": "rslint && prettier -c .",
23-
"lint:write": "rslint --fix && prettier -w .",
24-
"prepare": "simple-git-hooks",
25-
"test": "rstest",
26-
"bump": "pnpx bumpp"
20+
"build": "rs lib",
21+
"bump": "pnpx bumpp",
22+
"check": "rs check",
23+
"dev": "rs lib -w",
24+
"format": "rs fmt",
25+
"lint": "rs lint",
26+
"prepare": "rs hooks",
27+
"test": "rs test"
2728
},
2829
"files": [
2930
"dist"
3031
],
31-
"simple-git-hooks": {
32-
"pre-commit": "pnpm run lint:write"
33-
},
3432
"devDependencies": {
35-
"@rslib/core": "^0.23.2",
36-
"@rslint/core": "^0.9.0",
3733
"@rspack/core": "^2.2.1",
38-
"@rstest/core": "0.11.11",
3934
"@types/node": "^24.13.3",
40-
"prettier": "^3.9.6",
41-
"simple-git-hooks": "^2.14.0",
35+
"rstack": "^0.7.2",
4236
"typescript": "^7.0.2"
4337
},
4438
"packageManager": "pnpm@11.24.0",

0 commit comments

Comments
 (0)