Skip to content

Commit

Permalink
refactor: replace type-fest w/ @package-json/types (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored Sep 18, 2024
1 parent 61c8a3f commit cf41257
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion packages/manual/assert/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/manual/es-iterator-helpers/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/cli/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion packages/tools/cli/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PackageJson } from 'type-fest';
import type { PackageJson } from '@package-json/types';

export interface PackageNode {
name: string,
Expand Down
11 changes: 8 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf41257

Please sign in to comment.