feat: add license plugin

This commit is contained in:
vben
2024-06-23 19:45:40 +08:00
parent 24aab5b4bb
commit 16ed5a05ba
16 changed files with 156 additions and 74 deletions

View File

@@ -31,6 +31,7 @@
"@changesets/git": "^3.0.0",
"@manypkg/get-packages": "^2.2.1",
"consola": "^3.2.3",
"dayjs": "^1.11.11",
"find-up": "^7.0.0",
"nanoid": "^5.0.7",
"pkg-types": "^1.1.1",

View File

@@ -0,0 +1,10 @@
import dayjs from 'dayjs';
import timezone from 'dayjs/plugin/timezone';
import utc from 'dayjs/plugin/utc';
dayjs.extend(utc);
dayjs.extend(timezone);
const dateUtil = dayjs().tz('Asia/Shanghai');
export { dateUtil };

View File

@@ -1,13 +1,9 @@
export { UNICODE } from './constants';
export * from './constants';
export * from './date';
export * from './git';
export { add as gitAdd, getStagedFiles } from './git';
export { generatorContentHash } from './hash';
export {
findMonorepoRoot,
getPackage,
getPackages,
getPackagesSync,
} from './monorepo';
export * from './monorepo';
export { toPosixPath } from './path';
export { prettierFormat } from './prettier';
export type { Package } from '@manypkg/get-packages';