@cloudflare/autoconfig 0.2.7 → 0.2.8
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/dist/index.js +4 -4
- package/dist/metafile-esm.json +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { existsSync, writeFileSync, mkdirSync, readFileSync, promises as promise
|
|
|
4
4
|
import { readFile, writeFile, readdir, stat } from 'node:fs/promises';
|
|
5
5
|
import path8, { join, resolve, relative as relative$1 } from 'node:path';
|
|
6
6
|
import { blue, brandColor, dim } from '@cloudflare/cli-shared-helpers/colors';
|
|
7
|
-
import { UserError, FatalError, getInstalledPackageVersion,
|
|
7
|
+
import { UserError, FatalError, getInstalledPackageVersion, parseJSONC, isPackageInstalled, DEFAULT_COMPAT_DATE, NubPackageManager, NpmPackageManager, BunPackageManager, YarnPackageManager, PnpmPackageManager, getWorkerName, parsePackageJSON, readFileSync as readFileSync$1, checkWorkerNameValidity, isNodejsCompatDefaultOn } from '@cloudflare/workers-utils';
|
|
8
8
|
export { getInstalledPackageVersion } from '@cloudflare/workers-utils';
|
|
9
9
|
import { updateStatus, endSection } from '@cloudflare/cli-shared-helpers';
|
|
10
10
|
import { spinner } from '@cloudflare/cli-shared-helpers/interactive';
|
|
@@ -43764,7 +43764,7 @@ async function updateViteConfig(projectPath) {
|
|
|
43764
43764
|
} else {
|
|
43765
43765
|
throw new Error("Could not find Vite config file to modify");
|
|
43766
43766
|
}
|
|
43767
|
-
const compatDate =
|
|
43767
|
+
const compatDate = DEFAULT_COMPAT_DATE;
|
|
43768
43768
|
updateStatus(`Updating configuration in ${blue(viteConfigPath)}`);
|
|
43769
43769
|
transformFile(viteConfigPath, {
|
|
43770
43770
|
visitCallExpression: /* @__PURE__ */ __name(function(n) {
|
|
@@ -44990,7 +44990,7 @@ function updateViteConfigFile(projectPath) {
|
|
|
44990
44990
|
__name(updateViteConfigFile, "updateViteConfigFile");
|
|
44991
44991
|
function updateAppConfigFile(projectPath) {
|
|
44992
44992
|
const filePath = `app.config.${usesTypescript(projectPath) ? "ts" : "js"}`;
|
|
44993
|
-
const compatDate =
|
|
44993
|
+
const compatDate = DEFAULT_COMPAT_DATE;
|
|
44994
44994
|
updateStatus(`Updating configuration in ${blue(filePath)}`);
|
|
44995
44995
|
transformFile(filePath, {
|
|
44996
44996
|
visitCallExpression: /* @__PURE__ */ __name(function(n) {
|
|
@@ -52442,7 +52442,7 @@ async function runAutoConfig(autoConfigDetails, autoConfigOptions) {
|
|
|
52442
52442
|
autoConfigDetails.outputDir,
|
|
52443
52443
|
"The Output Directory is unexpectedly missing"
|
|
52444
52444
|
);
|
|
52445
|
-
const compatibilityDate =
|
|
52445
|
+
const compatibilityDate = DEFAULT_COMPAT_DATE;
|
|
52446
52446
|
const wranglerConfig = {
|
|
52447
52447
|
$schema: "node_modules/wrangler/config-schema.json",
|
|
52448
52448
|
name: autoConfigDetails.workerName,
|