Repository: sveltejs/kit
Pull request #9202 (2023-02-24 19:04:47)

Version Packages
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.


# Releases
## create-svelte@3.0.4

### Patch Changes

-   docs: inform about adapter-auto not supporting all environments ([#9196](https://github.com/sveltejs/kit/pull/9196))



Patch:
diff --git a/.changeset/small-teachers-smash.md b/.changeset/small-teachers-smash.md
deleted file mode 100644
index 167ed7f68..000000000
--- a/.changeset/small-teachers-smash.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'create-svelte': patch
----
-
-docs: inform about adapter-auto not supporting all environments
diff --git a/.eslintrc.json b/.eslintrc.json
index 702124958..c8e343bc8 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -8,6 +8,7 @@
 	},
 	"plugins": ["unicorn"],
 	"root": true,
+	"ignorePatterns": ["packages/create-svelte/shared/"],
 	"rules": {
 		"unicorn/prefer-node-protocol": "error"
 	}
diff --git a/package.json b/package.json
index ea2a8af06..833c78f33 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
 		"test:cross-platform:build": "pnpm run --dir packages/kit test:cross-platform:build",
 		"test:vite-ecosystem-ci": "pnpm test --dir packages/kit",
 		"check": "pnpm -r check",
-		"lint": "pnpm -r lint",
+		"lint": "pnpm -r lint && eslint 'packages/**/*.js'",
 		"format": "pnpm -r format",
 		"precommit": "pnpm format && pnpm lint",
 		"release": "changeset publish",
@@ -31,6 +31,7 @@
 		"@rollup/plugin-json": "^6.0.0",
 		"@rollup/plugin-node-resolve": "^15.0.1",
 		"@svitejs/changesets-changelog-github-compact": "^1.1.0",
+		"@typescript-eslint/eslint-plugin": "^5.53.0",
 		"eslint": "^8.33.0",
 		"eslint-plugin-unicorn": "^45.0.2",
 		"playwright": "^1.29.2",
diff --git a/packages/adapter-auto/index.js b/packages/adapter-auto/index.js
index 9e73f5092..14115c45b 100644
--- a/packages/adapter-auto/index.js
+++ b/packages/adapter-auto/index.js
@@ -1,9 +1,9 @@
-import { execSync } from 'child_process';
-import { pathToFileURL } from 'url';
+import { execSync } from 'node:child_process';
+import { pathToFileURL } from 'node:url';
 import { resolve } from 'import-meta-resolve';
 import { adapters } from './adapters.js';
-import { dirname, join } from 'path';
-import { existsSync } from 'fs';
+import { dirname, join } from 'node:path';
+import { existsSync } from 'node:fs';
 
 /** @type {Record<string, (name: string, version: string) => string>} */
 const commands = {
diff --git a/packages/adapter-cloudflare-workers/index.js b/packages/adapter-cloudflare-workers/index.js
index 2a38c5a67..882881baf 100644
--- a/packages/adapter-cloudflare-workers/index.js
+++ b/packages/adapter-cloudflare-workers/index.js
@@ -1,9 +1,9 @@
-import { existsSync, readFileSync, writeFileSync } from 'fs';
-import { posix, dirname } from 'path';
-import { execSync } from 'child_process';
+import { existsSync, readFileSync, writeFileSync } from 'node:fs';
+import { posix, dirname } from 'node:path';
+import { execSync } from 'node:child_process';
 import esbuild from 'esbuild';
 import toml from '@iarna/toml';
-import { fileURLToPath } from 'url';
+import { fileURLToPath } from 'node:url';
 
 /**
  * @typedef {{
diff --git a/packages/adapter-static/index.js b/packages/adapter-static/index.js
index e4dd739fc..c151afc2c 100644
--- a/packages/adapter-static/index.js
+++ b/packages/adapter-static/index.js
@@ -1,4 +1,4 @@
-import path from 'path';
+import path from 'node:path';
 import { platforms } from './platforms.js';
 
 /** @type {import('.').default} */
diff --git a/packages/adapter-static/platforms.js b/packages/adapter-static/platforms.js
index 3ecf37cb3..189865b10 100644
--- a/packages/adapter-static/platforms.js
+++ b/packages/adapter-static/platforms.js
@@ -1,4 +1,4 @@
-import fs from 'fs';
+import fs from 'node:fs';
 
 /**
  * @typedef {{
diff --git a/packages/create-svelte/CHANGELOG.md b/packages/create-svelte/CHANGELOG.md
index 4c700b336..fc1a1461c 100644
--- a/packages/create-svelte/CHANGELOG.md
+++ b/packages/create-svelte/CHANGELOG.md
@@ -1,5 +1,11 @@
 # create-svelte
 
+## 3.0.4
+
+### Patch Changes
+
+- docs: inform about adapter-auto not supporting all environments ([#9196](https://github.com/sveltejs/kit/pull/9196))
+
 ## 3.0.3
 
 ### Patch Changes
diff --git a/packages/create-svelte/bin.js b/packages/create-svelte/bin.js
index 994cb2d3b..ac9206082 100755
--- a/packages/create-svelte/bin.js
+++ b/packages/create-svelte/bin.js
@@ -1,6 +1,6 @@
 #!/usr/bin/env node
-import fs from 'fs';
-import path from 'path';
+import fs from 'node:fs';
+import path from 'node:path';
 import { bold, cyan, gray, green, yellow } from 'kleur/colors';
 import prompts from 'prompts';
 import { create } from './index.js';
diff --git a/packages/create-svelte/index.js b/packages/create-svelte/index.js
index 58a215dd5..d6888950c 100755
--- a/packages/create-svelte/index.js
+++ b/packages/create-svelte/index.js
@@ -1,5 +1,5 @@
-import fs from 'fs';
-import path from 'path';
+import fs from 'node:fs';
+import path from 'node:path';
 import { mkdirp, copy, dist } from './utils.js';
 
 /** @type {import('./types/index').create} */
diff --git a/packages/create-svelte/package.json b/packages/create-svelte/package.json
index 7f95f993a..7142bb74a 100644
--- a/packages/create-svelte/package.json
+++ b/packages/create-svelte/package.json
@@ -1,6 +1,6 @@
 {
 	"name": "create-svelte",
-	"version": "3.0.3",
+	"version": "3.0.4",
 	"repository": {
 		"type": "git",
 		"url": "https://github.com/sveltejs/kit",
diff --git a/packages/create-svelte/scripts/build-templates.js b/packages/create-svelte/scripts/build-templates.js
index bc52f4f61..7d7c207c1 100644
--- a/packages/create-svelte/scripts/build-templates.js
+++ b/packages/create-svelte/scripts/build-templates.js
@@ -1,5 +1,5 @@
-import fs from 'fs';
-import path from 'path';
+import fs from 'node:fs';
+import path from 'node:path';
 import parser from 'gitignore-parser';
 import prettier from 'prettier';
 import { transform } from 'sucrase';
diff --git a/packages/create-svelte/scripts/update-template-repo-contents.js b/packages/create-svelte/scripts/update-template-repo-contents.js
index 1eb7a07dc..78ec904d6 100644
--- a/packages/create-svelte/scripts/update-template-repo-contents.js
+++ b/packages/create-svelte/scripts/update-template-repo-contents.js
@@ -1,5 +1,5 @@
-import fs from 'fs';
-import path from 'path';
+import fs from 'node:fs';
+import path from 'node:path';
 import { create } from '../index.js';
 
 const repo = process.argv[2];
diff --git a/packages/create-svelte/templates/default/vite.config.js b/packages/create-svelte/templates/default/vite.config.js
index b594e97fa..3dc75a73b 100644
--- a/packages/create-svelte/templates/default/vite.config.js
+++ b/packages/create-svelte/templates/default/vite.config.js
@@ -1,4 +1,4 @@
-import path from 'path';
+import path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 import { defineConfig } from 'vite';
 
diff --git a/packages/create-svelte/utils.js b/packages/create-svelte/utils.js
index 7965eaed2..2f97cddb5 100644
--- a/packages/create-svelte/utils.js
+++ b/packages/create-svelte/utils.js
@@ -1,6 +1,6 @@
-import fs from 'fs';
-import path from 'path';
-import { fileURLToPath } from 'url';
+import fs from 'node:fs';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
 
 /** @param {string} dir */
 export function mkdirp(dir) {
diff --git a/packages/kit/package.json b/packages/kit/package.json
index a5ae53a59..9444a0966 100644
--- a/packages/kit/package.json
+++ b/packages/kit/package.json
@@ -57,7 +57,7 @@
 		"postinstall.js"
 	],
 	"scripts": {
-		"lint": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore && eslint src/**/*.js",
+		"lint": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore",
 		"check": "tsc",
 		"check:all": "tsc && pnpm -r --filter=\"./**\" check",
 		"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore",
diff --git a/packages/kit/postinstall.js b/packages/kit/postinstall.js
index 03d5307b4..298ef8a94 100644
--- a/packages/kit/postinstall.js
+++ b/packages/kit/postinstall.js
@@ -1,5 +1,5 @@
-import fs from 'fs';
-import path from 'path';
+import fs from 'node:fs';
+import path from 'node:path';
 import glob from 'tiny-glob/sync.js';
 import { load_config } from './src/core/config/index.js';
 import * as sync from './src/core/sync/sync.js';
diff --git a/packages/migrate/bin.js b/packages/migrate/bin.js
index d8128ae79..80704a57c 100755
--- a/packages/migrate/bin.js
+++ b/packages/migrate/bin.js
@@ -1,6 +1,6 @@
 #!/usr/bin/env node
-import fs from 'fs';
-import { fileURLToPath } from 'url';
+import fs from 'node:fs';
+import { fileURLToPath } from 'node:url';
 import colors from 'kleur';
 
 const migration = process.argv[2];
diff --git a/packages/migrate/migrations/package/index.js b/packages/migrate/migrations/package/index.js
index ff193a25c..f4d436644 100644
--- a/packages/migrate/migrations/package/index.js
+++ b/packages/migrate/migrations/package/index.js
@@ -1,8 +1,8 @@
-import fs from 'fs';
+import fs from 'node:fs';
 import colors from 'kleur';
-import path from 'path';
+import path from 'node:path';
 import prompts from 'prompts';
-import { pathToFileURL } from 'url';
+import { pathToFileURL } from 'node:url';
 import { bail, check_git } from '../../utils.js';
 import { migrate_config } from './migrate_config.js';
 import { migrate_pkg } from './migrate_pkg.js';
diff --git a/packages/migrate/migrations/package/migrate_config.js b/packages/migrate/migrations/package/migrate_config.js
index 63e5df62d..b401626d4 100644
--- a/packages/migrate/migrations/package/migrate_config.js
+++ b/packages/migrate/migrations/package/migrate_config.js
@@ -1,4 +1,4 @@
-import fs from 'fs';
+import fs from 'node:fs';
 import colors from 'kleur';
 import MagicString from 'magic-string';
 import ts from 'typescript';
diff --git a/packages/migrate/migrations/routes/index.js b/packages/migrate/migrations/routes/index.js
index a6568e531..94358ff4a 100644
--- a/packages/migrate/migrations/routes/index.js
+++ b/packages/migrate/migrations/routes/index.js
@@ -1,9 +1,9 @@
-import fs from 'fs';
+import fs from 'node:fs';
 import colors from 'kleur';
-import path from 'path';
+import path from 'node:path';
 import prompts from 'prompts';
 import glob from 'tiny-glob/sync.js';
-import { pathToFileURL } from 'url';
+import { pathToFileURL } from 'node:url';
 import { migrate_scripts } from './migrate_scripts/index.js';
 import { migrate_page } from './migrate_page_js/index.js';
 import { migrate_page_server } from './migrate_page_server/index.js';
diff --git a/packages/migrate/migrations/routes/utils.js b/packages/migrate/migrations/routes/utils.js
index 6bfc40f01..28ca024be 100644
--- a/packages/migrate/migrations/routes/utils.js
+++ b/packages/migrate/migrations/routes/utils.js
@@ -1,4 +1,4 @@
-import fs from 'fs';
+import fs from 'node:fs';
 import ts from 'typescript';
 import MagicString from 'magic-string';
 import { comment, indent_at_line } from '../../utils.js';
diff --git a/packages/package/src/filesystem.js b/packages/package/src/filesystem.js
index a1edf04d2..04efd95a4 100644
--- a/packages/package/src/filesystem.js
+++ b/packages/package/src/filesystem.js
@@ -1,5 +1,5 @@
-import fs from 'fs';
-import path from 'path';
+import fs from 'node:fs';
+import path from 'node:path';
 
 /** @param {string} dir */
 export function mkdirp(dir) {
diff --git a/packages/package/src/typescript.js b/packages/package/src/typescript.js
index 46f8e0bfc..4b8a282bf 100644
--- a/packages/package/src/typescript.js
+++ b/packages/package/src/typescript.js
@@ -1,6 +1,6 @@
-import * as fs from 'fs';
-import * as path from 'path';
-import { createRequire } from 'module';
+import * as fs from 'node:fs';
+import * as path from 'node:path';
+import { createRequire } from 'node:module';
 import { posixify, mkdirp, rimraf, walk } from './filesystem.js';
 import { resolve_aliases, write } from './utils.js';
 import { emitDts } from 'svelte2tsx';
diff --git a/packages/package/src/utils.js b/packages/package/src/utils.js
index 7526c10af..26605fbbd 100644
--- a/packages/package/src/utils.js
+++ b/packages/package/src/utils.js
@@ -1,5 +1,5 @@
-import * as fs from 'fs';
-import * as path from 'path';
+import * as fs from 'node:fs';
+import * as path from 'node:path';
 import { posixify, mkdirp, walk } from './filesystem.js';
 
 /**
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 00f27e9a6..15433b5fd 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -9,6 +9,7 @@ importers:
       '@rollup/plugin-json': ^6.0.0
       '@rollup/plugin-node-resolve': ^15.0.1
       '@svitejs/changesets-changelog-github-compact': ^1.1.0
+      '@typescript-eslint/eslint-plugin': ^5.53.0
       eslint: ^8.33.0
       eslint-plugin-unicorn: ^45.0.2
       playwright: ^1.29.2
@@ -23,6 +24,7 @@ importers:
       '@rollup/plugin-json': 6.0.0_rollup@3.7.0
       '@rollup/plugin-node-resolve': 15.0.1_rollup@3.7.0
       '@svitejs/changesets-changelog-github-compact': 1.1.0
+      '@typescript-eslint/eslint-plugin': 5.53.0_zkdaqh7it7uc4cvz2haft7rc6u
       eslint: 8.33.0
       eslint-plugin-unicorn: 45.0.2_eslint@8.33.0
       playwright: 1.29.2
@@ -1656,6 +1658,10 @@ packages:
     resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==}
     dev: true
 
+  /@types/json-schema/7.0.11:
+    resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==}
+    dev: true
+
   /@types/marked/4.0.7:
     resolution: {integrity: sha512-eEAhnz21CwvKVW+YvRvcTuFKNU9CV1qH+opcgVK3pIMI6YZzDm6gc8o2vHjldFk6MGKt5pueSB7IOpvpx5Qekw==}
     dev: true
@@ -1720,6 +1726,10 @@ packages:
     resolution: {integrity: sha512-KQf+QAMWKMrtBMsB8/24w53tEsxllMj6TuA80TT/5igJalLI/zm0L3oXRbIAl4Ohfc85gyHX/jhMwsVkmhLU4A==}
     dev: true
 
+  /@types/semver/7.3.13:
+    resolution: {integrity: sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==}
+    dev: true
+
   /@types/set-cookie-parser/2.4.2:
     resolution: {integrity: sha512-fBZgytwhYAUkj/jC/FAV4RQ5EerRup1YQsXQCh8rZfiHkc4UahC192oH0smGwsXol3cL3A5oETuAHeQHmhXM4w==}
     dependencies:
@@ -1732,6 +1742,115 @@ packages:
       '@types/node': 16.18.6
     dev: true
 
+  /@typescript-eslint/eslint-plugin/5.53.0_zkdaqh7it7uc4cvz2haft7rc6u:
+    resolution: {integrity: sha512-alFpFWNucPLdUOySmXCJpzr6HKC3bu7XooShWM+3w/EL6J2HIoB2PFxpLnq4JauWVk6DiVeNKzQlFEaE+X9sGw==}
+    engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+    peerDependencies:
+      '@typescript-eslint/parser': ^5.0.0
+      eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
+      typescript: '*'
+    peerDependenciesMeta:
+      typescript:
+        optional: true
+    dependencies:
+      '@typescript-eslint/scope-manager': 5.53.0
+      '@typescript-eslint/type-utils': 5.53.0_zkdaqh7it7uc4cvz2haft7rc6u
+      '@typescript-eslint/utils': 5.53.0_zkdaqh7it7uc4cvz2haft7rc6u
+      debug: 4.3.4
+      eslint: 8.33.0
+      grapheme-splitter: 1.0.4
+      ignore: 5.2.0
+      natural-compare-lite: 1.4.0
+      regexpp: 3.2.0
+      semver: 7.3.8
+      tsutils: 3.21.0_typescript@4.9.4
+      typescript: 4.9.4
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /@typescript-eslint/scope-manager/5.53.0:
+    resolution: {integrity: sha512-Opy3dqNsp/9kBBeCPhkCNR7fmdSQqA+47r21hr9a14Bx0xnkElEQmhoHga+VoaoQ6uDHjDKmQPIYcUcKJifS7w==}
+    engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+    dependencies:
+      '@typescript-eslint/types': 5.53.0
+      '@typescript-eslint/visitor-keys': 5.53.0
+    dev: true
+
+  /@typescript-eslint/type-utils/5.53.0_zkdaqh7it7uc4cvz2haft7rc6u:
+    resolution: {integrity: sha512-HO2hh0fmtqNLzTAme/KnND5uFNwbsdYhCZghK2SoxGp3Ifn2emv+hi0PBUjzzSh0dstUIFqOj3bp0AwQlK4OWw==}
+    engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+    peerDependencies:
+      eslint: '*'
+      typescript: '*'
+    peerDependenciesMeta:
+      typescript:
+        optional: true
+    dependencies:
+      '@typescript-eslint/typescript-estree': 5.53.0_typescript@4.9.4
+      '@typescript-eslint/utils': 5.53.0_zkdaqh7it7uc4cvz2haft7rc6u
+      debug: 4.3.4
+      eslint: 8.33.0
+      tsutils: 3.21.0_typescript@4.9.4
+      typescript: 4.9.4
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /@typescript-eslint/types/5.53.0:
+    resolution: {integrity: sha512-5kcDL9ZUIP756K6+QOAfPkigJmCPHcLN7Zjdz76lQWWDdzfOhZDTj1irs6gPBKiXx5/6O3L0+AvupAut3z7D2A==}
+    engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+    dev: true
+
+  /@typescript-eslint/typescript-estree/5.53.0_typescript@4.9.4:
+    resolution: {integrity: sha512-eKmipH7QyScpHSkhbptBBYh9v8FxtngLquq292YTEQ1pxVs39yFBlLC1xeIZcPPz1RWGqb7YgERJRGkjw8ZV7w==}
+    engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+    peerDependencies:
+      typescript: '*'
+    peerDependenciesMeta:
+      typescript:
+        optional: true
+    dependencies:
+      '@typescript-eslint/types': 5.53.0
+      '@typescript-eslint/visitor-keys': 5.53.0
+      debug: 4.3.4
+      globby: 11.1.0
+      is-glob: 4.0.3
+      semver: 7.3.8
+      tsutils: 3.21.0_typescript@4.9.4
+      typescript: 4.9.4
+    transitivePeerDependencies:
+      - supports-color
+    dev: true
+
+  /@typescript-eslint/utils/5.53.0_zkdaqh7it7uc4cvz2haft7rc6u:
+    resolution: {integrity: sha512-VUOOtPv27UNWLxFwQK/8+7kvxVC+hPHNsJjzlJyotlaHjLSIgOCKj9I0DBUjwOOA64qjBwx5afAPjksqOxMO0g==}
+    engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+    peerDependencies:
+      eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
+    dependencies:
+      '@types/json-schema': 7.0.11
+      '@types/semver': 7.3.13
+      '@typescript-eslint/scope-manager': 5.53.0
+      '@typescript-eslint/types': 5.53.0
+      '@typescript-eslint/typescript-estree': 5.53.0_typescript@4.9.4
+      eslint: 8.33.0
+      eslint-scope: 5.1.1
+      eslint-utils: 3.0.0_eslint@8.33.0
+      semver: 7.3.8
+    transitivePeerDependencies:
+      - supports-color
+      - typescript
+    dev: true
+
+  /@typescript-eslint/visitor-keys/5.53.0:
+    resolution: {integrity: sha512-JqNLnX3leaHFZEN0gCh81sIvgrp/2GOACZNgO4+Tkf64u51kTpAyWFOY8XHx8XuXr3N2C9zgPPHtcpMg6z1g0w==}
+    engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+    dependencies:
+      '@typescript-eslint/types': 5.53.0
+      eslint-visitor-keys: 3.3.0
+    dev: true
+
   /@typescript/twoslash/3.1.0:
     resolution: {integrity: sha512-kTwMUQ8xtAZaC4wb2XuLkPqFVBj2dNBueMQ89NWEuw87k2nLBbuafeG5cob/QEr6YduxIdTVUjix0MtC7mPlmg==}
     dependencies:
@@ -2592,6 +2711,14 @@ packages:
       strip-indent: 3.0.0
     dev: true
 
+  /eslint-scope/5.1.1:
+    resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
+    engines: {node: '>=8.0.0'}
+    dependencies:
+      esrecurse: 4.3.0
+      estraverse: 4.3.0
+    dev: true
+
   /eslint-scope/7.1.1:
     resolution: {integrity: sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==}
     engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -2701,6 +2828,11 @@ packages:
       estraverse: 5.3.0
     dev: true
 
+  /estraverse/4.3.0:
+    resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==}
+    engines: {node: '>=4.0'}
+    dev: true
+
   /estraverse/5.3.0:
     resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
     engines: {node: '>=4.0'}
@@ -3736,6 +3868,10 @@ packages:
     resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==}
     dev: true
 
+  /natural-compare-lite/1.4.0:
+    resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==}
+    dev: true
+
   /natural-compare/1.4.0:
     resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
     dev: true
@@ -5012,10 +5148,24 @@ packages:
     resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
     dev: true
 
+  /tslib/1.14.1:
+    resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
+    dev: true
+
   /tslib/2.4.1:
     resolution: {integrity: sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==}
     dev: false
 
+  /tsutils/3.21.0_typescript@4.9.4:
+    resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
+    engines: {node: '>= 6'}
+    peerDependencies:
+      typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
+    dependencies:
+      tslib: 1.14.1
+      typescript: 4.9.4
+    dev: true
+
   /tty-table/4.1.6:
     resolution: {integrity: sha512-kRj5CBzOrakV4VRRY5kUWbNYvo/FpOsz65DzI5op9P+cHov3+IqPbo1JE1ZnQGkHdZgNFDsrEjrfqqy/Ply9fw==}
     engines: {node: '>=8.0.0'}


Test patch:
diff --git a/packages/adapter-static/test/test.js b/packages/adapter-static/test/test.js
index 0fe826ace..c4144c1bd 100644
--- a/packages/adapter-static/test/test.js
+++ b/packages/adapter-static/test/test.js
@@ -1,4 +1,4 @@
-import fs from 'fs';
+import fs from 'node:fs';
 import * as assert from 'uvu/assert';
 import { run } from './utils.js';
 
diff --git a/packages/adapter-static/test/utils.js b/packages/adapter-static/test/utils.js
index 1ace81f46..32cd5e3e7 100644
--- a/packages/adapter-static/test/utils.js
+++ b/packages/adapter-static/test/utils.js
@@ -1,7 +1,7 @@
-import { execSync } from 'child_process';
-import fs from 'fs';
-import http from 'http';
-import { fileURLToPath } from 'url';
+import { execSync } from 'node:child_process';
+import fs from 'node:fs';
+import http from 'node:http';
+import { fileURLToPath } from 'node:url';
 import sirv from 'sirv';
 import { chromium, webkit, firefox } from 'playwright';
 import * as uvu from 'uvu';
diff --git a/packages/create-svelte/test/check.js b/packages/create-svelte/test/check.js
index a9852aa8e..56531994c 100644
--- a/packages/create-svelte/test/check.js
+++ b/packages/create-svelte/test/check.js
@@ -1,10 +1,10 @@
-import fs from 'fs';
-import { execSync } from 'child_process';
-import path from 'path';
+import fs from 'node:fs';
+import { execSync } from 'node:child_process';
+import path from 'node:path';
 import { test } from 'uvu';
 import * as assert from 'uvu/assert';
 import { create } from '../index.js';
-import { fileURLToPath } from 'url';
+import { fileURLToPath } from 'node:url';
 import glob from 'tiny-glob';
 // use a directory outside of packages to ensure it isn't added to the pnpm workspace
 const test_workspace_dir = fileURLToPath(
diff --git a/packages/kit/test/apps/amp/vite.config.js b/packages/kit/test/apps/amp/vite.config.js
index 3c59318ad..69200cdb7 100644
--- a/packages/kit/test/apps/amp/vite.config.js
+++ b/packages/kit/test/apps/amp/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/apps/basics/src/hooks.server.js b/packages/kit/test/apps/basics/src/hooks.server.js
index a909520da..f4e4b8623 100644
--- a/packages/kit/test/apps/basics/src/hooks.server.js
+++ b/packages/kit/test/apps/basics/src/hooks.server.js
@@ -1,4 +1,4 @@
-import fs from 'fs';
+import fs from 'node:fs';
 import { sequence } from '@sveltejs/kit/hooks';
 import { HttpError } from '../../../../src/runtime/control';
 import { error, redirect } from '@sveltejs/kit';
diff --git a/packages/kit/test/apps/basics/test/setup.js b/packages/kit/test/apps/basics/test/setup.js
index 9be580053..dc392bb19 100644
--- a/packages/kit/test/apps/basics/test/setup.js
+++ b/packages/kit/test/apps/basics/test/setup.js
@@ -1,4 +1,4 @@
-import fs from 'fs';
+import fs from 'node:fs';
 
 if (process.platform !== 'win32') {
 	process.chdir('src/routes/routing');
diff --git a/packages/kit/test/apps/basics/vite.config.js b/packages/kit/test/apps/basics/vite.config.js
index 1938615ca..0afea7f14 100644
--- a/packages/kit/test/apps/basics/vite.config.js
+++ b/packages/kit/test/apps/basics/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/apps/dev-only/vite.config.js b/packages/kit/test/apps/dev-only/vite.config.js
index 1938615ca..0afea7f14 100644
--- a/packages/kit/test/apps/dev-only/vite.config.js
+++ b/packages/kit/test/apps/dev-only/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/apps/options-2/vite.config.js b/packages/kit/test/apps/options-2/vite.config.js
index 3c59318ad..69200cdb7 100644
--- a/packages/kit/test/apps/options-2/vite.config.js
+++ b/packages/kit/test/apps/options-2/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/apps/options/vite.custom.config.js b/packages/kit/test/apps/options/vite.custom.config.js
index 3c59318ad..69200cdb7 100644
--- a/packages/kit/test/apps/options/vite.custom.config.js
+++ b/packages/kit/test/apps/options/vite.custom.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/apps/writes/test/test.js b/packages/kit/test/apps/writes/test/test.js
index 64cbf22c7..397cf0f10 100644
--- a/packages/kit/test/apps/writes/test/test.js
+++ b/packages/kit/test/apps/writes/test/test.js
@@ -1,7 +1,7 @@
-import fs from 'fs';
-import path from 'path';
+import fs from 'node:fs';
+import path from 'node:path';
 import { expect } from '@playwright/test';
-import { fileURLToPath } from 'url';
+import { fileURLToPath } from 'node:url';
 import { test } from '../../../utils.js';
 
 /** @typedef {import('@playwright/test').Response} Response */
diff --git a/packages/kit/test/apps/writes/vite.config.js b/packages/kit/test/apps/writes/vite.config.js
index 3c59318ad..69200cdb7 100644
--- a/packages/kit/test/apps/writes/vite.config.js
+++ b/packages/kit/test/apps/writes/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/build-errors/apps/prerenderable-incorrect-fragment/vite.config.js b/packages/kit/test/build-errors/apps/prerenderable-incorrect-fragment/vite.config.js
index eb84383bb..3f12d3677 100644
--- a/packages/kit/test/build-errors/apps/prerenderable-incorrect-fragment/vite.config.js
+++ b/packages/kit/test/build-errors/apps/prerenderable-incorrect-fragment/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/build-errors/apps/prerenderable-not-prerendered/vite.config.js b/packages/kit/test/build-errors/apps/prerenderable-not-prerendered/vite.config.js
index eb84383bb..3f12d3677 100644
--- a/packages/kit/test/build-errors/apps/prerenderable-not-prerendered/vite.config.js
+++ b/packages/kit/test/build-errors/apps/prerenderable-not-prerendered/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/build-errors/apps/private-dynamic-env-dynamic-import/vite.config.js b/packages/kit/test/build-errors/apps/private-dynamic-env-dynamic-import/vite.config.js
index 95a8fe579..713f67a63 100644
--- a/packages/kit/test/build-errors/apps/private-dynamic-env-dynamic-import/vite.config.js
+++ b/packages/kit/test/build-errors/apps/private-dynamic-env-dynamic-import/vite.config.js
@@ -1,5 +1,5 @@
 import { sveltekit } from '@sveltejs/kit/vite';
-import path from 'path';
+import path from 'node:path';
 
 /** @type {import('vite').UserConfig} */
 const config = {
diff --git a/packages/kit/test/build-errors/apps/private-dynamic-env/vite.config.js b/packages/kit/test/build-errors/apps/private-dynamic-env/vite.config.js
index 95a8fe579..713f67a63 100644
--- a/packages/kit/test/build-errors/apps/private-dynamic-env/vite.config.js
+++ b/packages/kit/test/build-errors/apps/private-dynamic-env/vite.config.js
@@ -1,5 +1,5 @@
 import { sveltekit } from '@sveltejs/kit/vite';
-import path from 'path';
+import path from 'node:path';
 
 /** @type {import('vite').UserConfig} */
 const config = {
diff --git a/packages/kit/test/build-errors/apps/private-static-env/vite.config.js b/packages/kit/test/build-errors/apps/private-static-env/vite.config.js
index 95a8fe579..713f67a63 100644
--- a/packages/kit/test/build-errors/apps/private-static-env/vite.config.js
+++ b/packages/kit/test/build-errors/apps/private-static-env/vite.config.js
@@ -1,5 +1,5 @@
 import { sveltekit } from '@sveltejs/kit/vite';
-import path from 'path';
+import path from 'node:path';
 
 /** @type {import('vite').UserConfig} */
 const config = {
diff --git a/packages/kit/test/build-errors/apps/server-only-folder-dynamic-import/vite.config.js b/packages/kit/test/build-errors/apps/server-only-folder-dynamic-import/vite.config.js
index 95a8fe579..713f67a63 100644
--- a/packages/kit/test/build-errors/apps/server-only-folder-dynamic-import/vite.config.js
+++ b/packages/kit/test/build-errors/apps/server-only-folder-dynamic-import/vite.config.js
@@ -1,5 +1,5 @@
 import { sveltekit } from '@sveltejs/kit/vite';
-import path from 'path';
+import path from 'node:path';
 
 /** @type {import('vite').UserConfig} */
 const config = {
diff --git a/packages/kit/test/build-errors/apps/server-only-folder/vite.config.js b/packages/kit/test/build-errors/apps/server-only-folder/vite.config.js
index 95a8fe579..713f67a63 100644
--- a/packages/kit/test/build-errors/apps/server-only-folder/vite.config.js
+++ b/packages/kit/test/build-errors/apps/server-only-folder/vite.config.js
@@ -1,5 +1,5 @@
 import { sveltekit } from '@sveltejs/kit/vite';
-import path from 'path';
+import path from 'node:path';
 
 /** @type {import('vite').UserConfig} */
 const config = {
diff --git a/packages/kit/test/build-errors/apps/server-only-module-dynamic-import/vite.config.js b/packages/kit/test/build-errors/apps/server-only-module-dynamic-import/vite.config.js
index 95a8fe579..713f67a63 100644
--- a/packages/kit/test/build-errors/apps/server-only-module-dynamic-import/vite.config.js
+++ b/packages/kit/test/build-errors/apps/server-only-module-dynamic-import/vite.config.js
@@ -1,5 +1,5 @@
 import { sveltekit } from '@sveltejs/kit/vite';
-import path from 'path';
+import path from 'node:path';
 
 /** @type {import('vite').UserConfig} */
 const config = {
diff --git a/packages/kit/test/build-errors/apps/server-only-module/vite.config.js b/packages/kit/test/build-errors/apps/server-only-module/vite.config.js
index 95a8fe579..713f67a63 100644
--- a/packages/kit/test/build-errors/apps/server-only-module/vite.config.js
+++ b/packages/kit/test/build-errors/apps/server-only-module/vite.config.js
@@ -1,5 +1,5 @@
 import { sveltekit } from '@sveltejs/kit/vite';
-import path from 'path';
+import path from 'node:path';
 
 /** @type {import('vite').UserConfig} */
 const config = {
diff --git a/packages/kit/test/build-errors/apps/syntax-error/vite.config.js b/packages/kit/test/build-errors/apps/syntax-error/vite.config.js
index 95a8fe579..713f67a63 100644
--- a/packages/kit/test/build-errors/apps/syntax-error/vite.config.js
+++ b/packages/kit/test/build-errors/apps/syntax-error/vite.config.js
@@ -1,5 +1,5 @@
 import { sveltekit } from '@sveltejs/kit/vite';
-import path from 'path';
+import path from 'node:path';
 
 /** @type {import('vite').UserConfig} */
 const config = {
diff --git a/packages/kit/test/prerendering/basics/src/routes/fetch-image/[...slug]/+server.js b/packages/kit/test/prerendering/basics/src/routes/fetch-image/[...slug]/+server.js
index e1494d291..cfa059e22 100644
--- a/packages/kit/test/prerendering/basics/src/routes/fetch-image/[...slug]/+server.js
+++ b/packages/kit/test/prerendering/basics/src/routes/fetch-image/[...slug]/+server.js
@@ -1,4 +1,4 @@
-import * as fs from 'fs';
+import * as fs from 'node:fs';
 
 export const prerender = true;
 
diff --git a/packages/kit/test/prerendering/basics/test/test.js b/packages/kit/test/prerendering/basics/test/test.js
index 8235e18df..07237ae90 100644
--- a/packages/kit/test/prerendering/basics/test/test.js
+++ b/packages/kit/test/prerendering/basics/test/test.js
@@ -1,5 +1,5 @@
-import * as fs from 'fs';
-import { fileURLToPath } from 'url';
+import * as fs from 'node:fs';
+import { fileURLToPath } from 'node:url';
 import { test } from 'uvu';
 import * as assert from 'uvu/assert';
 
diff --git a/packages/kit/test/prerendering/basics/vite.config.js b/packages/kit/test/prerendering/basics/vite.config.js
index fabe48d16..574b809dd 100644
--- a/packages/kit/test/prerendering/basics/vite.config.js
+++ b/packages/kit/test/prerendering/basics/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/prerendering/options/test/test.js b/packages/kit/test/prerendering/options/test/test.js
index 910fb2a5e..7e8635cc8 100644
--- a/packages/kit/test/prerendering/options/test/test.js
+++ b/packages/kit/test/prerendering/options/test/test.js
@@ -1,5 +1,5 @@
-import * as fs from 'fs';
-import { fileURLToPath } from 'url';
+import * as fs from 'node:fs';
+import { fileURLToPath } from 'node:url';
 import { test } from 'uvu';
 import * as assert from 'uvu/assert';
 
diff --git a/packages/kit/test/prerendering/options/vite.config.js b/packages/kit/test/prerendering/options/vite.config.js
index a2fe148d6..4b90a7655 100644
--- a/packages/kit/test/prerendering/options/vite.config.js
+++ b/packages/kit/test/prerendering/options/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/prerendering/paths-base/test/test.js b/packages/kit/test/prerendering/paths-base/test/test.js
index eea8e571d..92c8dba2d 100644
--- a/packages/kit/test/prerendering/paths-base/test/test.js
+++ b/packages/kit/test/prerendering/paths-base/test/test.js
@@ -1,5 +1,5 @@
-import * as fs from 'fs';
-import { fileURLToPath } from 'url';
+import * as fs from 'node:fs';
+import { fileURLToPath } from 'node:url';
 import { test } from 'uvu';
 import * as assert from 'uvu/assert';
 
diff --git a/packages/kit/test/prerendering/paths-base/vite.config.js b/packages/kit/test/prerendering/paths-base/vite.config.js
index a2fe148d6..4b90a7655 100644
--- a/packages/kit/test/prerendering/paths-base/vite.config.js
+++ b/packages/kit/test/prerendering/paths-base/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/prerendering/ssr-false/test/test.js b/packages/kit/test/prerendering/ssr-false/test/test.js
index 86912a868..26004b364 100644
--- a/packages/kit/test/prerendering/ssr-false/test/test.js
+++ b/packages/kit/test/prerendering/ssr-false/test/test.js
@@ -1,5 +1,5 @@
-import * as fs from 'fs';
-import { fileURLToPath } from 'url';
+import * as fs from 'node:fs';
+import { fileURLToPath } from 'node:url';
 import { test } from 'uvu';
 import * as assert from 'uvu/assert';
 
diff --git a/packages/kit/test/prerendering/ssr-false/vite.config.js b/packages/kit/test/prerendering/ssr-false/vite.config.js
index fabe48d16..574b809dd 100644
--- a/packages/kit/test/prerendering/ssr-false/vite.config.js
+++ b/packages/kit/test/prerendering/ssr-false/vite.config.js
@@ -1,4 +1,4 @@
-import * as path from 'path';
+import * as path from 'node:path';
 import { sveltekit } from '@sveltejs/kit/vite';
 
 /** @type {import('vite').UserConfig} */
diff --git a/packages/kit/test/utils.js b/packages/kit/test/utils.js
index 64e8d68b3..d8b069027 100644
--- a/packages/kit/test/utils.js
+++ b/packages/kit/test/utils.js
@@ -1,8 +1,8 @@
-import fs from 'fs';
-import path from 'path';
-import http from 'http';
+import fs from 'node:fs';
+import path from 'node:path';
+import http from 'node:http';
 import { test as base, devices } from '@playwright/test';
-import { fileURLToPath } from 'url';
+import { fileURLToPath } from 'node:url';
 
 export const test = base.extend({
 	app: async ({ page }, use) => {
diff --git a/packages/package/test/fixtures/resolve-alias/svelte.config.js b/packages/package/test/fixtures/resolve-alias/svelte.config.js
index 7fa9bd72a..2cb56fa23 100644
--- a/packages/package/test/fixtures/resolve-alias/svelte.config.js
+++ b/packages/package/test/fixtures/resolve-alias/svelte.config.js
@@ -1,6 +1,6 @@
 import { vitePreprocess } from '../../../../kit/src/exports/vite/index.js';
-import { fileURLToPath } from 'url';
-import path from 'path';
+import { fileURLToPath } from 'node:url';
+import path from 'node:path';
 
 const __filename = fileURLToPath(import.meta.url);
 const __dirname = path.join(__filename, '..');
diff --git a/packages/package/test/index.js b/packages/package/test/index.js
index caa98282b..4e05b1442 100644
--- a/packages/package/test/index.js
+++ b/packages/package/test/index.js
@@ -1,6 +1,6 @@
-import fs from 'fs';
-import { join, resolve } from 'path';
-import { fileURLToPath } from 'url';
+import fs from 'node:fs';
+import { join, resolve } from 'node:path';
+import { fileURLToPath } from 'node:url';
 
 import prettier from 'prettier';
 import { test } from 'uvu';