Skip to content

Commit f5aed19

Browse files
committed
chore: use fs-extra and pathe
1 parent e175673 commit f5aed19

4 files changed

Lines changed: 59 additions & 86 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,15 @@
4848
"consola": "^3.4.2",
4949
"destr": "^2.0.5",
5050
"execa": "^5.1.1",
51+
"fs-extra": "^11.3.2",
5152
"gradient-string": "^3.0.0",
53+
"pathe": "^2.0.3",
5254
"sade": "^1.8.1"
5355
},
5456
"devDependencies": {
57+
"@types/fs-extra": "^11.0.4",
5558
"@types/gradient-string": "^1.1.6",
5659
"@types/node": "^24.9.1",
57-
"@types/sade": "^1.8.0",
5860
"@vitest/coverage-v8": "3.2.4",
5961
"prettier": "^3.6.2",
6062
"tsdown": "^0.15.9",

pnpm-lock.yaml

Lines changed: 52 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/git.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { success, error, info } from './console';
22
import { Commit, GitNewTag, GitPrerelease } from './types';
33
import { getRoot, setFile, getFile, getPackageRoot, getLernaRoot } from './utils';
4-
import fs from 'fs';
5-
import path from 'path';
4+
import fs from 'fs-extra';
5+
import path from 'pathe';
66
import execa from 'execa';
77
import { getGeneriConfig } from './generi';
88
import { isChangesForCommit } from './utils';

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import fs from 'fs';
1+
import fs from 'fs-extra';
22
import execa from 'execa';
3-
import path from 'path';
3+
import path from 'pathe';
44
import { error } from './console';
55
import { isCleanChanges } from './git';
66
import { GitNewTag } from './types';

0 commit comments

Comments
 (0)