diff --git a/package.json b/package.json index a8cf02214..c11092199 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^15.2.3", "@svelte-cli/create": "workspace:*", - "@sveltejs/eslint-config": "^8.0.1", + "@sveltejs/eslint-config": "^8.1.0", "@svitejs/changesets-changelog-github-compact": "^1.1.0", "@types/node": "^22.3.0", "@vitest/ui": "^2.0.5", diff --git a/packages/clack-core/src/prompts/prompt.ts b/packages/clack-core/src/prompts/prompt.ts index 341b04426..58611aae5 100644 --- a/packages/clack-core/src/prompts/prompt.ts +++ b/packages/clack-core/src/prompts/prompt.ts @@ -1,5 +1,5 @@ import readline, { type Key, type ReadLine } from 'node:readline'; -import { stdin, stdout } from 'node:process'; +import process, { stdin, stdout } from 'node:process'; import { WriteStream } from 'node:tty'; import type { Readable, Writable } from 'node:stream'; import { cursor, erase } from 'sisteransi'; diff --git a/packages/clack-core/src/utils.ts b/packages/clack-core/src/utils.ts index 9d3013d6b..b4a101e05 100644 --- a/packages/clack-core/src/utils.ts +++ b/packages/clack-core/src/utils.ts @@ -1,10 +1,10 @@ import type { Key } from 'node:readline'; -import { stdin, stdout } from 'node:process'; +import process, { stdin, stdout } from 'node:process'; import * as readline from 'node:readline'; import { cursor } from 'sisteransi'; -const isWindows = globalThis.process.platform.startsWith('win'); +const isWindows = process.platform.startsWith('win'); export type BlockOptions = { input?: NodeJS.ReadStream | undefined; diff --git a/packages/clack-prompts/index.ts b/packages/clack-prompts/index.ts index 5285db059..82b643283 100644 --- a/packages/clack-prompts/index.ts +++ b/packages/clack-prompts/index.ts @@ -1,3 +1,4 @@ +import process from 'node:process'; import { block, ConfirmPrompt, diff --git a/packages/cli/commands/add.ts b/packages/cli/commands/add.ts index eab089add..47fd47df2 100644 --- a/packages/cli/commands/add.ts +++ b/packages/cli/commands/add.ts @@ -1,5 +1,6 @@ import fs from 'node:fs'; import path from 'node:path'; +import process from 'node:process'; import * as v from 'valibot'; import { exec } from 'tinyexec'; import { Command, Option } from 'commander'; diff --git a/packages/cli/commands/check.ts b/packages/cli/commands/check.ts index 2a0a4a2cb..eb9251030 100644 --- a/packages/cli/commands/check.ts +++ b/packages/cli/commands/check.ts @@ -1,4 +1,5 @@ import { execSync } from 'node:child_process'; +import process from 'node:process'; import pc from 'picocolors'; import * as resolve from 'empathic/resolve'; import { Command } from 'commander'; diff --git a/packages/cli/commands/create.ts b/packages/cli/commands/create.ts index 89ee1f266..bb69b5830 100644 --- a/packages/cli/commands/create.ts +++ b/packages/cli/commands/create.ts @@ -1,5 +1,6 @@ import fs from 'node:fs'; import path from 'node:path'; +import process from 'node:process'; import * as v from 'valibot'; import { Command, Option } from 'commander'; import * as p from '@svelte-cli/clack-prompts'; diff --git a/packages/cli/commands/migrate.ts b/packages/cli/commands/migrate.ts index 73232190c..88a5dd7cc 100644 --- a/packages/cli/commands/migrate.ts +++ b/packages/cli/commands/migrate.ts @@ -1,4 +1,5 @@ import { execSync } from 'node:child_process'; +import process from 'node:process'; import { Command } from 'commander'; import { resolveCommand } from 'package-manager-detector'; import { getUserAgent } from '../common.ts'; diff --git a/packages/cli/common.ts b/packages/cli/common.ts index 17b107fb3..40a054cb3 100644 --- a/packages/cli/common.ts +++ b/packages/cli/common.ts @@ -1,3 +1,4 @@ +import process from 'node:process'; import pc from 'picocolors'; import pkg from './package.json'; import { exec } from 'tinyexec'; diff --git a/packages/core/env.ts b/packages/core/env.ts index 61d54dfd0..d482918b3 100644 --- a/packages/core/env.ts +++ b/packages/core/env.ts @@ -1 +1,3 @@ +import process from 'node:process'; + export const TESTING: boolean = process.env.CI?.toLowerCase() === 'true'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 69e655384..ceb2b610c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: specifier: workspace:* version: link:packages/create '@sveltejs/eslint-config': - specifier: ^8.0.1 - version: 8.0.1(@stylistic/eslint-plugin-js@2.8.0(eslint@9.10.0))(eslint-config-prettier@9.1.0(eslint@9.10.0))(eslint-plugin-n@17.10.2(eslint@9.10.0))(eslint-plugin-svelte@2.43.0(eslint@9.10.0)(svelte@5.0.0-next.262))(eslint@9.10.0)(typescript-eslint@8.5.0(eslint@9.10.0)(typescript@5.6.2))(typescript@5.6.2) + specifier: ^8.1.0 + version: 8.1.0(@stylistic/eslint-plugin-js@2.8.0(eslint@9.10.0))(eslint-config-prettier@9.1.0(eslint@9.10.0))(eslint-plugin-n@17.10.2(eslint@9.10.0))(eslint-plugin-svelte@2.43.0(eslint@9.10.0)(svelte@5.0.0-next.262))(eslint@9.10.0)(typescript-eslint@8.5.0(eslint@9.10.0)(typescript@5.6.2))(typescript@5.6.2) '@svitejs/changesets-changelog-github-compact': specifier: ^1.1.0 version: 1.1.0 @@ -710,8 +710,8 @@ packages: peerDependencies: eslint: '>=8.40.0' - '@sveltejs/eslint-config@8.0.1': - resolution: {integrity: sha512-0EYGo15CKgf7nK/toq8oa2wM62cmjxvnOKqualIL5L9r42F1dXHGgMoXRSHQj+TctUlJqXj8DZr64SkIfaQtOQ==} + '@sveltejs/eslint-config@8.1.0': + resolution: {integrity: sha512-cfgp4lPREYBjNd4ZzaP/jA85ufm7vfXiaV7h9vILXNogne80IbZRNhRCQ8XoOqTAOY/pChIzWTBuR8aDNMbAEA==} peerDependencies: '@stylistic/eslint-plugin-js': '>= 1' eslint: '>= 9' @@ -2642,7 +2642,7 @@ snapshots: eslint-visitor-keys: 4.0.0 espree: 10.1.0 - '@sveltejs/eslint-config@8.0.1(@stylistic/eslint-plugin-js@2.8.0(eslint@9.10.0))(eslint-config-prettier@9.1.0(eslint@9.10.0))(eslint-plugin-n@17.10.2(eslint@9.10.0))(eslint-plugin-svelte@2.43.0(eslint@9.10.0)(svelte@5.0.0-next.262))(eslint@9.10.0)(typescript-eslint@8.5.0(eslint@9.10.0)(typescript@5.6.2))(typescript@5.6.2)': + '@sveltejs/eslint-config@8.1.0(@stylistic/eslint-plugin-js@2.8.0(eslint@9.10.0))(eslint-config-prettier@9.1.0(eslint@9.10.0))(eslint-plugin-n@17.10.2(eslint@9.10.0))(eslint-plugin-svelte@2.43.0(eslint@9.10.0)(svelte@5.0.0-next.262))(eslint@9.10.0)(typescript-eslint@8.5.0(eslint@9.10.0)(typescript@5.6.2))(typescript@5.6.2)': dependencies: '@stylistic/eslint-plugin-js': 2.8.0(eslint@9.10.0) eslint: 9.10.0 diff --git a/scripts/get-deps-to-publish.js b/scripts/get-deps-to-publish.js index 17c9dd8e3..0793f376e 100644 --- a/scripts/get-deps-to-publish.js +++ b/scripts/get-deps-to-publish.js @@ -9,6 +9,7 @@ import { execSync } from 'node:child_process'; import { relative, join } from 'node:path'; import { existsSync } from 'node:fs'; +import process from 'node:process'; if (!process.env.CHANGED_DIRS) throw new Error('CHANGED_DIRS is missing');