sku 15.12.2 → 15.14.0-vite-prerender-errors-20260414235054
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/_virtual/{rolldown_runtime.mjs → _rolldown/runtime.mjs} +8 -14
- package/dist/bin/sku.mjs +1 -3
- package/dist/config/babel.mjs +1 -3
- package/dist/config/eslint/ignores.mjs +1 -2
- package/dist/config/eslint/importOrder.mjs +1 -3
- package/dist/config/eslint/jsonFiles.mjs +1 -3
- package/dist/config/eslint/plugins/package-json.mjs +1 -3
- package/dist/config/eslint.mjs +1 -3
- package/dist/config/fileResolutionExtensions.mjs +1 -2
- package/dist/config/prettier.mjs +1 -3
- package/dist/config/storybook.cjs +140 -181
- package/dist/config/storybook.d.cts +0 -1
- package/dist/config/targets.mjs +1 -2
- package/dist/context/cjsInteropDeps.mjs +1 -3
- package/dist/context/configPath.mjs +1 -3
- package/dist/context/configSchema.mjs +1 -3
- package/dist/context/createSkuContext.d.mts +10 -10
- package/dist/context/createSkuContext.mjs +1 -3
- package/dist/context/defaultClientEntry.mjs +1 -2
- package/dist/context/defaultCompilePackages.mjs +1 -3
- package/dist/context/defaultSkuConfig.mjs +1 -3
- package/dist/context/getSiteForHost.mjs +1 -2
- package/dist/context/hosts.mjs +1 -3
- package/dist/context/resolveEnvironment.mjs +1 -3
- package/dist/context/validateConfig.mjs +2 -4
- package/dist/entries/vite-client.d.mts +1 -1
- package/dist/entries/vite-client.mjs +1 -3
- package/dist/entries/vite-render.mjs +1 -3
- package/dist/index.mjs +1 -1
- package/dist/jest/file-mock.cjs +1 -3
- package/dist/jest/js-transform.mjs +1 -4
- package/dist/jest/ts-transform.mjs +1 -4
- package/dist/jest-preset.mjs +1 -3
- package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs +1 -2
- package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs +3 -5
- package/dist/node_modules/.pnpm/emoji-regex@10.6.0/node_modules/emoji-regex/index.mjs +2 -5
- package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs +1 -3
- package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs +1 -2
- package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs +5 -7
- package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs +1 -2
- package/dist/node_modules/.pnpm/indent-string@5.0.0/node_modules/indent-string/index.mjs +1 -2
- package/dist/node_modules/.pnpm/package-manager-detector@0.2.11/node_modules/package-manager-detector/dist/commands.mjs +1 -2
- package/dist/node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.mjs +2 -4
- package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs +1 -3
- package/dist/node_modules/.pnpm/wrap-ansi@9.0.2/node_modules/wrap-ansi/index.mjs +6 -8
- package/dist/openBrowser.mjs +1 -3
- package/dist/packages/sku/package.mjs +2 -4
- package/dist/postinstall.mjs +1 -3
- package/dist/private/utils/src/console/banner.mjs +1 -3
- package/dist/private/utils/src/console/index.mjs +3 -4
- package/dist/private/utils/src/console/managedConfigBanner.mjs +1 -2
- package/dist/private/utils/src/filesystem/cwd.mjs +1 -3
- package/dist/private/utils/src/filesystem/index.mjs +2 -3
- package/dist/private/utils/src/index.mjs +7 -8
- package/dist/private/utils/src/packageManager/index.mjs +2 -3
- package/dist/private/utils/src/packageManager/packageManager.mjs +12 -14
- package/dist/private/utils/src/path/toPosixPath.mjs +1 -3
- package/dist/private/utils/src/serverUrls.mjs +1 -3
- package/dist/program/commands/build/build.action.mjs +1 -3
- package/dist/program/commands/build/build.command.mjs +1 -3
- package/dist/program/commands/build/vite-build-handler.mjs +11 -6
- package/dist/program/commands/build/webpack-build-handler.mjs +5 -7
- package/dist/program/commands/build-ssr/build-ssr.action.mjs +3 -5
- package/dist/program/commands/build-ssr/build-ssr.command.mjs +1 -3
- package/dist/program/commands/configure/configure.action.mjs +1 -3
- package/dist/program/commands/configure/configure.command.mjs +1 -3
- package/dist/program/commands/format/format.action.mjs +1 -3
- package/dist/program/commands/format/format.command.mjs +1 -3
- package/dist/program/commands/index.mjs +1 -3
- package/dist/program/commands/init/init.command.mjs +1 -3
- package/dist/program/commands/lint/lint.action.mjs +3 -5
- package/dist/program/commands/lint/lint.command.mjs +1 -3
- package/dist/program/commands/pre-commit/pre-commit.action.mjs +3 -5
- package/dist/program/commands/pre-commit/pre-commit.command.mjs +1 -3
- package/dist/program/commands/serve/serve.action.mjs +7 -9
- package/dist/program/commands/serve/serve.command.mjs +1 -3
- package/dist/program/commands/setup-hosts/setup-hosts.action.mjs +1 -3
- package/dist/program/commands/setup-hosts/setup-hosts.command.mjs +1 -3
- package/dist/program/commands/start/start.action.mjs +1 -3
- package/dist/program/commands/start/start.command.mjs +1 -3
- package/dist/program/commands/start/vite-start-handler.mjs +1 -3
- package/dist/program/commands/start/webpack-start-handler.mjs +11 -13
- package/dist/program/commands/start-ssr/start-ssr.action.mjs +1 -3
- package/dist/program/commands/start-ssr/start-ssr.command.mjs +1 -3
- package/dist/program/commands/start-ssr/webpack-start-ssr-handler.mjs +12 -14
- package/dist/program/commands/test/jest-test-handler.mjs +1 -3
- package/dist/program/commands/test/test.action.mjs +1 -3
- package/dist/program/commands/test/test.command.mjs +1 -3
- package/dist/program/commands/test/vitest-test-handler.mjs +1 -3
- package/dist/program/commands/translations/commands/compile/compile.action.mjs +1 -3
- package/dist/program/commands/translations/commands/compile/compile.command.mjs +1 -3
- package/dist/program/commands/translations/commands/index.mjs +1 -3
- package/dist/program/commands/translations/commands/pull/pull.action.mjs +1 -3
- package/dist/program/commands/translations/commands/pull/pull.command.mjs +1 -3
- package/dist/program/commands/translations/commands/push/auto-translate.option.mjs +1 -3
- package/dist/program/commands/translations/commands/push/delete-unused-keys.option.mjs +1 -3
- package/dist/program/commands/translations/commands/push/push.action.mjs +1 -3
- package/dist/program/commands/translations/commands/push/push.command.mjs +1 -3
- package/dist/program/commands/translations/commands/validate/validate.action.mjs +1 -3
- package/dist/program/commands/translations/commands/validate/validate.command.mjs +1 -3
- package/dist/program/commands/translations/helpers/translation-helpers.mjs +1 -3
- package/dist/program/commands/translations/translations.command.mjs +1 -3
- package/dist/program/hooks/preAction/preAction.hook.mjs +1 -3
- package/dist/program/index.mjs +1 -3
- package/dist/program/options/config.option.mjs +1 -3
- package/dist/program/options/convertLoadable.option.mjs +1 -3
- package/dist/program/options/debug.option.mjs +1 -3
- package/dist/program/options/environment.option.mjs +1 -3
- package/dist/program/options/list-urls.mjs +1 -3
- package/dist/program/options/port.option.mjs +1 -3
- package/dist/program/options/site.option.mjs +1 -3
- package/dist/program/options/stats.option.mjs +3 -7
- package/dist/program/options/watch.option.mjs +1 -3
- package/dist/services/bundlerConstants.mjs +4 -0
- package/dist/services/eslint/eslintMigration.mjs +3 -5
- package/dist/services/eslint/lint.mjs +1 -3
- package/dist/services/eslint/runESLint.mjs +5 -7
- package/dist/services/packageManager/getPnpmConfigDependencies.mjs +1 -3
- package/dist/services/packageManager/pnpmConfig.mjs +1 -3
- package/dist/services/prettier.mjs +6 -8
- package/dist/services/serverManager.mjs +1 -4
- package/dist/services/telemetry/index.mjs +1 -3
- package/dist/services/telemetry/metricsMeasurers.mjs +14 -17
- package/dist/services/telemetry/provider.mjs +1 -3
- package/dist/services/typescript/runTsc.mjs +1 -4
- package/dist/services/typescript/tsconfig.mjs +1 -3
- package/dist/services/vite/helpers/browserslist-to-esbuild.mjs +1 -3
- package/dist/services/vite/helpers/bundleConfig.mjs +1 -3
- package/dist/services/vite/helpers/config/createConfig.mjs +1 -3
- package/dist/services/vite/helpers/config/dependencyGraph.mjs +1 -3
- package/dist/services/vite/helpers/html/createPreRenderedHtml.mjs +1 -3
- package/dist/services/vite/helpers/makePluginName.mjs +1 -2
- package/dist/services/vite/helpers/prerender/prerenderConcurrently.mjs +16 -7
- package/dist/services/vite/helpers/serializeConfig.mjs +1 -3
- package/dist/services/vite/plugins/build.mjs +5 -4
- package/dist/services/vite/plugins/bundleAnalyzer.mjs +1 -3
- package/dist/services/vite/plugins/config.mjs +1 -3
- package/dist/services/vite/plugins/dangerouslySetViteConfig.mjs +1 -3
- package/dist/services/vite/plugins/devServer.mjs +1 -3
- package/dist/services/vite/plugins/esbuild/fixViteVanillaExtractDepScanPlugin.mjs +1 -3
- package/dist/services/vite/plugins/httpsDevServer.mjs +1 -3
- package/dist/services/vite/plugins/middleware.mjs +1 -3
- package/dist/services/vite/plugins/polyfills.mjs +1 -3
- package/dist/services/vite/plugins/preloadPlugin/helpers/constants.mjs +1 -2
- package/dist/services/vite/plugins/preloadPlugin/helpers/convertWebpackToViteImport.mjs +1 -3
- package/dist/services/vite/plugins/preloadPlugin/helpers/getViteLoadableSpecifierName.mjs +3 -5
- package/dist/services/vite/plugins/preloadPlugin/helpers/getWebpackLoadableSpecifierName.mjs +1 -2
- package/dist/services/vite/plugins/preloadPlugin/helpers/injectModuleID.mjs +1 -3
- package/dist/services/vite/plugins/preloadPlugin/preloadPlugin.mjs +6 -8
- package/dist/services/vite/plugins/setNoExternal.mjs +1 -3
- package/dist/services/vite/plugins/ssrCss/collect.mjs +1 -2
- package/dist/services/vite/plugins/ssrCss/plugin.mjs +1 -3
- package/dist/services/vite/plugins/telemetry.mjs +1 -3
- package/dist/services/vite/skuPlugin.mjs +1 -3
- package/dist/services/vocab/config.mjs +2 -3
- package/dist/services/vocab/runVocab.mjs +1 -3
- package/dist/services/webpack/config/cache.mjs +1 -4
- package/dist/services/webpack/config/plugins/bundleAnalyzer.mjs +1 -3
- package/dist/services/webpack/config/plugins/createHtmlRenderPlugin.mjs +1 -4
- package/dist/services/webpack/config/plugins/metricsPlugin.mjs +1 -3
- package/dist/services/webpack/config/plugins/validateOptions.mjs +1 -3
- package/dist/services/webpack/config/resolveModules.mjs +1 -4
- package/dist/services/webpack/config/sourceMaps.mjs +1 -3
- package/dist/services/webpack/config/statsConfig.mjs +1 -4
- package/dist/services/webpack/config/utils/index.mjs +5 -7
- package/dist/services/webpack/config/utils/loaders.mjs +1 -3
- package/dist/services/webpack/config/utils/resolvePackage.mjs +8 -10
- package/dist/services/webpack/config/webpack.config.mjs +12 -15
- package/dist/services/webpack/config/webpack.config.ssr.mjs +12 -15
- package/dist/services/webpack/entry/csp.mjs +1 -3
- package/dist/services/webpack/entry/makeExtractor.mjs +1 -3
- package/dist/services/webpack/entry/render/render-to-string.mjs +1 -3
- package/dist/services/webpack/entry/server/server.mjs +1 -3
- package/dist/services/webpack/runWebpack.mjs +3 -5
- package/dist/types/types.d.mts +1 -1
- package/dist/utils/SkuConfigUpdater.mjs +3 -5
- package/dist/utils/allocatePort.mjs +1 -4
- package/dist/utils/buildFileUtils.mjs +4 -6
- package/dist/utils/certificate.mjs +4 -7
- package/dist/utils/configure.mjs +4 -6
- package/dist/utils/configureApp.mjs +5 -7
- package/dist/utils/constants/clientContextKey.mjs +1 -2
- package/dist/utils/copyDirContents.mjs +3 -6
- package/dist/utils/createServer.mjs +3 -6
- package/dist/utils/debug.mjs +1 -3
- package/dist/utils/detectUnnecessaryPolyfillsFromConfig.mjs +1 -3
- package/dist/utils/detectUnnecessaryPolyfillsFromDependencies.mjs +1 -3
- package/dist/utils/error-guards.mjs +1 -2
- package/dist/utils/execAsync.mjs +1 -3
- package/dist/utils/exists.mjs +1 -4
- package/dist/utils/isCI.mjs +1 -2
- package/dist/utils/isCompilePackage.mjs +1 -3
- package/dist/utils/language-utils.mjs +3 -5
- package/dist/utils/lintStagedConfig.mjs +1 -4
- package/dist/utils/polyfillDetector.mjs +1 -3
- package/dist/utils/polyfillRegistry.mjs +1 -2
- package/dist/utils/polyfillWarnings.mjs +1 -3
- package/dist/utils/preCommit.mjs +3 -6
- package/dist/utils/resolvePolyfills.mjs +3 -7
- package/dist/utils/routeMatcher.mjs +1 -4
- package/dist/utils/runBin.mjs +3 -5
- package/dist/utils/suggestScript.mjs +1 -3
- package/dist/utils/validatePeerDeps.mjs +1 -3
- package/dist/vite/client.mjs +3 -5
- package/dist/vite/prerender-worker.mjs +19 -16
- package/dist/webpack/client.mjs +1 -3
- package/dist/webpack/library-render.mjs +1 -3
- package/dist/webpack/render.mjs +1 -3
- package/dist/webpack/server.mjs +1 -3
- package/dist/webpack-plugin.mjs +24 -6
- package/package.json +4 -5
- /package/dist/@loadable/component/{index.ts → index.ts/index.ts} +0 -0
- /package/dist/vite/{client.d.ts → client.d.ts/client.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# sku
|
|
2
2
|
|
|
3
|
+
## 15.14.0-vite-prerender-errors-20260414235054
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- `vite`: Improve error messaging during `sku build` ([#1548](https://github.com/seek-oss/sku/pull/1548))
|
|
8
|
+
|
|
9
|
+
The path of the first route that fails to render will now be logged, along with a stack trace to aid debugging
|
|
10
|
+
|
|
11
|
+
## 15.13.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- `webpack`: Add support for Vite-style query parameters when importing SVG files ([#1538](https://github.com/seek-oss/sku/pull/1538))
|
|
16
|
+
|
|
17
|
+
To support migration from webpack to Vite, SVG imports in webpack now support the same `raw`, `inline` and `url` query parameters as Vite. This allows you to specify how the SVG should be imported: as a raw string, a base64 data URL, or an asset URL. See [the image asset docs] for more information.
|
|
18
|
+
|
|
19
|
+
If your application is still using webpack, it is recommended to run the following codemod to automatically migrate all SVG imports to use the `raw` query parameter:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pnpm dlx @sku-lib/codemod svg-import-query-param .
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
This will ensure consistent SVG import behaviour when the time comes to migrate your application to Vite. The `url` and `inline` query parameters can also be used, however they aren't a drop-in replacement for the existing import behaviour (i.e. without any query paramters).
|
|
26
|
+
|
|
27
|
+
[the image asset docs]: https://seek-oss.github.io/sku/#/./docs/extra-features?id=importing-image-assets
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- `vite`: Align asset inline limit with webpack ([#1538](https://github.com/seek-oss/sku/pull/1538))
|
|
32
|
+
|
|
33
|
+
To align with sku's webpack config, image assets imported in a Vite app that are smaller than 10,000 bytes will now be inlined as base64-encoded [`data` URLs](https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Schemes/data). Previously the limit was 4,096 bytes.
|
|
34
|
+
|
|
35
|
+
- `vocab`: Set `projectRoot` in vocab config to fix crash with `tinyglobby@0.2.16` ([#1542](https://github.com/seek-oss/sku/pull/1542))
|
|
36
|
+
|
|
3
37
|
## 15.12.2
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
6
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -9,16 +8,12 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
9
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
9
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
10
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
22
17
|
}
|
|
23
18
|
return to;
|
|
24
19
|
};
|
|
@@ -27,6 +22,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
22
|
enumerable: true
|
|
28
23
|
}) : target, mod));
|
|
29
24
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
|
-
|
|
31
25
|
//#endregion
|
|
32
|
-
export { __commonJSMin, __require, __toESM };
|
|
26
|
+
export { __commonJSMin, __require, __toESM };
|
package/dist/bin/sku.mjs
CHANGED
package/dist/config/babel.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { cwd } from "../private/utils/src/filesystem/cwd.mjs";
|
|
|
2
2
|
import "../private/utils/src/index.mjs";
|
|
3
3
|
import { rootResolutionFileExtensions } from "./fileResolutionExtensions.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
|
-
|
|
6
5
|
//#region src/config/babel.ts
|
|
7
6
|
const require = createRequire(import.meta.url);
|
|
8
7
|
var babel_default = ({ target, lang = "js", browserslist, displayNamesProd = false, removeAssertionsInProduction = true, hot = false, rootResolution = false }) => {
|
|
@@ -61,6 +60,5 @@ var babel_default = ({ target, lang = "js", browserslist, displayNamesProd = fal
|
|
|
61
60
|
plugins
|
|
62
61
|
};
|
|
63
62
|
};
|
|
64
|
-
|
|
65
63
|
//#endregion
|
|
66
|
-
export { babel_default as default };
|
|
64
|
+
export { babel_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { basename } from "node:path";
|
|
2
|
-
|
|
3
2
|
//#region src/config/eslint/importOrder.ts
|
|
4
3
|
const internalRegex = (paths) => `^(${paths.src.map((srcPath) => basename(srcPath)).join("|")})/`;
|
|
5
4
|
const rootResolutionConfig = (paths) => ({ settings: { "import-x/internal-regex": internalRegex(paths) } });
|
|
@@ -24,6 +23,5 @@ const createImportOrderConfig = ({ paths, rootResolution }) => ({
|
|
|
24
23
|
}]
|
|
25
24
|
}] }
|
|
26
25
|
});
|
|
27
|
-
|
|
28
26
|
//#endregion
|
|
29
|
-
export { createImportOrderConfig };
|
|
27
|
+
export { createImportOrderConfig };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsonProcessor, packageJsonPlugin } from "./plugins/package-json.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/config/eslint/jsonFiles.ts
|
|
4
3
|
const createJsonFilesConfig = () => [{
|
|
5
4
|
plugins: { "package-json": packageJsonPlugin },
|
|
@@ -7,6 +6,5 @@ const createJsonFilesConfig = () => [{
|
|
|
7
6
|
rules: { "package-json/sort": "warn" },
|
|
8
7
|
processor: jsonProcessor
|
|
9
8
|
}];
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
|
-
export { createJsonFilesConfig };
|
|
10
|
+
export { createJsonFilesConfig };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { sortPackageJson } from "sort-package-json";
|
|
3
|
-
|
|
4
3
|
//#region src/config/eslint/plugins/package-json.ts
|
|
5
4
|
const sortRule = {
|
|
6
5
|
meta: {
|
|
@@ -54,6 +53,5 @@ const jsonProcessor = {
|
|
|
54
53
|
supportsAutofix: true
|
|
55
54
|
};
|
|
56
55
|
const packageJsonPlugin = { rules: { sort: sortRule } };
|
|
57
|
-
|
|
58
56
|
//#endregion
|
|
59
|
-
export { jsonProcessor, packageJsonPlugin };
|
|
57
|
+
export { jsonProcessor, packageJsonPlugin };
|
package/dist/config/eslint.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { getSkuContext } from "../context/createSkuContext.mjs";
|
|
|
2
2
|
import { createImportOrderConfig } from "./eslint/importOrder.mjs";
|
|
3
3
|
import { createEslintIgnoresConfig } from "./eslint/ignores.mjs";
|
|
4
4
|
import { createJsonFilesConfig } from "./eslint/jsonFiles.mjs";
|
|
5
|
-
|
|
6
5
|
//#region src/config/eslint/config.ts
|
|
7
6
|
const createEslintConfig = async ({ configPath } = {}) => {
|
|
8
7
|
const skuContext = getSkuContext({ configPath });
|
|
@@ -25,6 +24,5 @@ async function importEslintConfig({ testRunner = "jest" }) {
|
|
|
25
24
|
if (testRunner === "vitest") return import("eslint-config-seek/vitest");
|
|
26
25
|
return import("eslint-config-seek");
|
|
27
26
|
}
|
|
28
|
-
|
|
29
27
|
//#endregion
|
|
30
|
-
export { createEslintConfig };
|
|
28
|
+
export { createEslintConfig };
|