diff --git a/create.ts b/create.ts index 28658de..bb6842e 100644 --- a/create.ts +++ b/create.ts @@ -10,7 +10,7 @@ import { fileExists, compareAndWriteFile } from '@nolyfill/internal'; import { transform } from '@swc/core'; import type { Options as SwcOptions } from '@swc/core'; -import type { PackageJson } from 'type-fest'; +import type { PackageJson } from '@package-json/types'; /** * The package.json inside the project has a non-nullable "version" field, diff --git a/package.json b/package.json index bd01cf9..cf3c73f 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@eslint-sukka/ts": "^5.1.2", "@jsdevtools/ez-spawn": "^3.0.4", "@nolyfill/internal": "workspace:*", + "@package-json/types": "^0.0.6", "@swc-node/register": "^1.10.9", "@swc/core": "^1.7.0", "@types/node": "^20.14.11", @@ -31,7 +32,6 @@ "rollup-plugin-dts": "^6.1.1", "rollup-plugin-swc3": "^0.11.2", "turbo": "^2.0.9", - "type-fest": "^4.22.1", "typescript": "^5.5.3" }, "packageManager": "pnpm@9.5.0", diff --git a/packages/manual/assert/rollup.config.ts b/packages/manual/assert/rollup.config.ts index 9adb597..c18d352 100644 --- a/packages/manual/assert/rollup.config.ts +++ b/packages/manual/assert/rollup.config.ts @@ -1,4 +1,4 @@ -import type { PackageJson } from 'type-fest'; +import type { PackageJson } from '@package-json/types'; import resolve from 'resolve-pkg'; import fs from 'fs'; diff --git a/packages/manual/es-iterator-helpers/rollup.config.ts b/packages/manual/es-iterator-helpers/rollup.config.ts index 2191998..ac03be5 100644 --- a/packages/manual/es-iterator-helpers/rollup.config.ts +++ b/packages/manual/es-iterator-helpers/rollup.config.ts @@ -1,4 +1,4 @@ -import type { PackageJson } from 'type-fest'; +import type { PackageJson } from '@package-json/types'; import resolve from 'resolve-pkg'; import fs from 'fs'; diff --git a/packages/tools/cli/rollup.config.ts b/packages/tools/cli/rollup.config.ts index 3cb1020..8d20b5c 100644 --- a/packages/tools/cli/rollup.config.ts +++ b/packages/tools/cli/rollup.config.ts @@ -10,7 +10,7 @@ import fs from 'fs'; import { builtinModules } from 'module'; import { MagicString } from '@napi-rs/magic-string'; -import type { PackageJson } from 'type-fest'; +import type { PackageJson } from '@package-json/types'; const builtinModulesSet = new Set(builtinModules); diff --git a/packages/tools/cli/src/types.ts b/packages/tools/cli/src/types.ts index 9f79c23..c08f23e 100644 --- a/packages/tools/cli/src/types.ts +++ b/packages/tools/cli/src/types.ts @@ -1,4 +1,4 @@ -import type { PackageJson } from 'type-fest'; +import type { PackageJson } from '@package-json/types'; export interface PackageNode { name: string, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4ff2ef6..bf84601 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -148,6 +148,9 @@ importers: '@nolyfill/internal': specifier: workspace:* version: link:packages/tools/internal + '@package-json/types': + specifier: ^0.0.6 + version: 0.0.6 '@swc-node/register': specifier: ^1.10.9 version: 1.10.9(@swc/core@1.7.0(@swc/helpers@0.5.12))(@swc/types@0.1.12)(typescript@5.5.3) @@ -193,9 +196,6 @@ importers: turbo: specifier: ^2.0.9 version: 2.0.9 - type-fest: - specifier: ^4.22.1 - version: 4.22.1 typescript: specifier: ^5.5.3 version: 5.5.3 @@ -1248,6 +1248,9 @@ packages: cpu: [x64] os: [win32] + '@package-json/types@0.0.6': + resolution: {integrity: sha512-UBVVLQfUXvzGrgKt7TqLupdzsslRSqgel/01UTc/2yUOdqFM5ZNLCNzz/ev51SRpNrlYKtqAY8nL6FdMWBWw1A==} + '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -4643,6 +4646,8 @@ snapshots: '@oxc-resolver/binding-win32-x64-msvc@1.10.2': optional: true + '@package-json/types@0.0.6': {} + '@pkgjs/parseargs@0.11.0': optional: true