diff --git a/packages/api/bin/buildVersionedFiles.ts b/packages/api/bin/buildVersionedFiles.ts index 0a6d4b61..f67d5245 100644 --- a/packages/api/bin/buildVersionedFiles.ts +++ b/packages/api/bin/buildVersionedFiles.ts @@ -7,7 +7,7 @@ import fs from 'node:fs'; // eslint-disable-next-line import/no-extraneous-dependencies, node/no-extraneous-import import prettier from 'prettier'; -import pkg from '../package.json' assert { type: 'json' }; +import pkg from '../package.json' with { type: 'json' }; import { lockfileSchema } from '../src/lockfileSchema.js'; async function run() { diff --git a/packages/api/package.json b/packages/api/package.json index fff24e9b..a2384a55 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -33,7 +33,7 @@ "author": "Jon Ursenbach ", "license": "MIT", "engines": { - "node": ">=18" + "node": "^18.20.0 || >=20.10.0" }, "files": [ "dist", diff --git a/packages/api/src/codegen/languages/typescript/index.ts b/packages/api/src/codegen/languages/typescript/index.ts index 50140f25..8d26cb6e 100644 --- a/packages/api/src/codegen/languages/typescript/index.ts +++ b/packages/api/src/codegen/languages/typescript/index.ts @@ -19,7 +19,7 @@ import type { JsonObject, PackageJson, TsConfigJson } from 'type-fest'; import path from 'node:path'; -import corePkg from '@readme/api-core/package.json' assert { type: 'json' }; +import corePkg from '@readme/api-core/package.json' with { type: 'json' }; import { execa } from 'execa'; import { getLicense } from 'license'; import { setWith } from 'lodash-es'; diff --git a/packages/api/test/storage.test.ts b/packages/api/test/storage.test.ts index 3e2d2c6c..3c7f8730 100644 --- a/packages/api/test/storage.test.ts +++ b/packages/api/test/storage.test.ts @@ -11,7 +11,7 @@ import fetchMock from 'fetch-mock'; import uniqueTempDir from 'unique-temp-dir'; import { describe, beforeAll, beforeEach, afterEach, it, expect } from 'vitest'; -import lockfileSchema from '../schema.json' assert { type: 'json' }; +import lockfileSchema from '../schema.json' with { type: 'json' }; import { SupportedLanguages } from '../src/codegen/factory.js'; import { PACKAGE_VERSION } from '../src/packageInfo.js'; import Storage from '../src/storage.js';