diff --git a/client/vscode/test/integration/api.test.cts b/client/vscode/test/integration/api.test.cts index 5f72ec0f..d4027a6c 100644 --- a/client/vscode/test/integration/api.test.cts +++ b/client/vscode/test/integration/api.test.cts @@ -2,7 +2,7 @@ import * as assert from 'assert' import path from 'path' import type { ClientConfiguration } from '@openctx/client' import type { ExtensionApiForTesting } from '@openctx/vscode-lib' -import { copyFile } from 'fs/promises' +import { copyFile } from 'node:fs/promises' import { before } from 'mocha' import * as vscode from 'vscode' diff --git a/client/vscode/test/integration/main.cts b/client/vscode/test/integration/main.cts index 61e6562a..e10a9ef2 100644 --- a/client/vscode/test/integration/main.cts +++ b/client/vscode/test/integration/main.cts @@ -1,7 +1,7 @@ import { tmpdir } from 'os' import * as path from 'path' import { runTests } from '@vscode/test-electron' -import { mkdir, mkdtemp, rm } from 'fs/promises' +import { mkdir, mkdtemp, rm } from 'node:fs/promises' async function main(): Promise { // When run, this script's filename is `client/vscode/dist/tsc/test/integration/main.js`, so diff --git a/lib/schema/dev/generateJsonSchemaTypes.ts b/lib/schema/dev/generateJsonSchemaTypes.ts index af175b0e..b23741e0 100644 --- a/lib/schema/dev/generateJsonSchemaTypes.ts +++ b/lib/schema/dev/generateJsonSchemaTypes.ts @@ -4,7 +4,7 @@ import path from 'path' import { pathToFileURL } from 'url' -import { readFile } from 'fs/promises' +import { readFile } from 'node:fs/promises' import { compile as compileJSONSchema } from 'json-schema-to-typescript' async function generateSchema(schemaPath: string, preamble?: string): Promise { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b732e8ce..df4e6e02 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -617,12 +617,6 @@ importers: fast-xml-parser: specifier: ^4.4.0 version: 4.4.0 - open: - specifier: ^10.0.4 - version: 10.1.0 - server-destroy: - specifier: ^1.0.1 - version: 1.0.1 devDependencies: '@types/server-destroy': specifier: ^1.0.3 @@ -630,6 +624,12 @@ importers: '@types/vscode': specifier: ^1.85.0 version: 1.85.0 + open: + specifier: ^10.0.4 + version: 10.1.0 + server-destroy: + specifier: ^1.0.1 + version: 1.0.1 provider/links: dependencies: @@ -7445,7 +7445,6 @@ packages: engines: {node: '>=18'} dependencies: run-applescript: 7.0.0 - dev: false /bytes@3.0.0: resolution: {integrity: sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==} @@ -8186,7 +8185,6 @@ packages: /default-browser-id@5.0.0: resolution: {integrity: sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==} engines: {node: '>=18'} - dev: false /default-browser@5.2.1: resolution: {integrity: sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==} @@ -8194,7 +8192,6 @@ packages: dependencies: bundle-name: 4.1.0 default-browser-id: 5.0.0 - dev: false /defaults@1.0.4: resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==} @@ -8226,7 +8223,6 @@ packages: /define-lazy-prop@3.0.0: resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} engines: {node: '>=12'} - dev: false /define-properties@1.2.0: resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==} @@ -10137,7 +10133,6 @@ packages: resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} hasBin: true - dev: false /is-electron@2.2.2: resolution: {integrity: sha512-FO/Rhvz5tuw4MCWkpMzHFKWD2LsfHzIb7i6MdPYZ/KW7AlxawyLkqdy+jPZP1WubqEADE3O4FUENlJHDfQASRg==} @@ -10184,7 +10179,6 @@ packages: hasBin: true dependencies: is-docker: 3.0.0 - dev: false /is-interactive@1.0.0: resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==} @@ -10367,7 +10361,6 @@ packages: engines: {node: '>=16'} dependencies: is-inside-container: 1.0.0 - dev: false /isarray@1.0.0: resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} @@ -12018,7 +12011,6 @@ packages: define-lazy-prop: 3.0.0 is-inside-container: 1.0.0 is-wsl: 3.1.0 - dev: false /open@8.4.2: resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} @@ -13299,7 +13291,6 @@ packages: /run-applescript@7.0.0: resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==} engines: {node: '>=18'} - dev: false /run-parallel@1.1.9: resolution: {integrity: sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==} @@ -13422,7 +13413,6 @@ packages: /server-destroy@1.0.1: resolution: {integrity: sha512-rb+9B5YBIEzYcD6x2VKidaa+cqYBJQKnU4oe4E3ANwRRN56yk/ua1YCJT1n21NTS8w6CcOclAKNP3PhdCXKYtQ==} - dev: false /set-function-length@1.1.1: resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==} diff --git a/provider/devdocs/devdocs.ts b/provider/devdocs/devdocs.ts index 5a60e8f4..00ba1332 100644 --- a/provider/devdocs/devdocs.ts +++ b/provider/devdocs/devdocs.ts @@ -1,5 +1,5 @@ import url from 'url' -import fs from 'fs/promises' +import fs from 'node:fs/promises' /** Format of the file found at a location like https://devdocs.io/docs/go/index.json */ interface Index { diff --git a/provider/devdocs/update-fixtures.ts b/provider/devdocs/update-fixtures.ts index 9ec5d40e..f615ffeb 100644 --- a/provider/devdocs/update-fixtures.ts +++ b/provider/devdocs/update-fixtures.ts @@ -1,6 +1,6 @@ import path from 'path' import url from 'url' -import fs from 'fs/promises' +import fs from 'node:fs/promises' import { fetchDoc, fetchIndex } from './devdocs.js' /** diff --git a/provider/linear-issues/index.ts b/provider/linear-issues/index.ts index 31f686ee..2e792b9d 100644 --- a/provider/linear-issues/index.ts +++ b/provider/linear-issues/index.ts @@ -8,7 +8,7 @@ import type { } from '@openctx/provider' import dedent from 'dedent' import { XMLBuilder } from 'fast-xml-parser' -import { readFile } from 'fs/promises' +import { readFile } from 'node:fs/promises' import type { UserCredentials } from './auth.js' diff --git a/provider/linear-issues/package.json b/provider/linear-issues/package.json index 36d39c0e..d7449fe8 100644 --- a/provider/linear-issues/package.json +++ b/provider/linear-issues/package.json @@ -1,6 +1,6 @@ { "name": "@openctx/provider-linear-issues", - "version": "0.0.4", + "version": "0.0.6", "description": "Linear Issues context for code AI and editors (OpenCtx provider)", "license": "Apache-2.0", "repository": { @@ -20,19 +20,19 @@ "build": "tsc --build", "bundle:watch": "pnpm run bundle --watch", "bundle": "esbuild --main-fields=module,main --external:vscode --log-level=error --platform=node --bundle --format=esm --outfile=dist/bundle.js index.ts", - "prepublishOnly": "tsc --build --clean && pnpm run --silent bundle", + "prepublishOnly": "tsc --build && pnpm run --silent bundle", "test": "vitest", "auth": "node --no-warnings=ExperimentalWarning --es-module-specifier-resolution=node --loader ts-node/esm/transpile-only auth.ts" }, "dependencies": { "@openctx/provider": "workspace:*", "dedent": "^1.5.3", - "fast-xml-parser": "^4.4.0", - "open": "^10.0.4", - "server-destroy": "^1.0.1" + "fast-xml-parser": "^4.4.0" }, "devDependencies": { "@types/server-destroy": "^1.0.3", - "@types/vscode": "^1.85.0" + "@types/vscode": "^1.85.0", + "open": "^10.0.4", + "server-destroy": "^1.0.1" } } diff --git a/provider/sentry/auth.ts b/provider/sentry/auth.ts index d8576bbb..0cbe1b77 100644 --- a/provider/sentry/auth.ts +++ b/provider/sentry/auth.ts @@ -1,4 +1,4 @@ -import { readFile } from 'fs/promises' +import { readFile } from 'node:fs/promises' import type { Settings } from './settings.js' /**