diff --git a/benchmark/packages/timer/package.json b/benchmark/packages/timer/package.json index a4a3b8df1b81..ae4eecc73d5e 100644 --- a/benchmark/packages/timer/package.json +++ b/benchmark/packages/timer/package.json @@ -7,10 +7,7 @@ "types": "./dist/index.d.ts", "author": "withastro", "license": "MIT", - "keywords": [ - "withastro", - "astro-adapter" - ], + "keywords": ["withastro", "astro-adapter"], "exports": { ".": "./dist/index.js", "./server.js": "./dist/server.js", diff --git a/biome.json b/biome.json index c847ece399f0..f107ec29a09a 100644 --- a/biome.json +++ b/biome.json @@ -1,34 +1,34 @@ { - "$schema": "https://biomejs.dev/schemas/1.6.4/schema.json", - "files": { - "ignore": ["vendor", "dist/**"], - "include": ["test/**", "e2e/**", "packages/**"] - }, - "formatter": { - "indentStyle": "tab", - "indentWidth": 2, - "lineWidth": 100, - "ignore": [ - "benchmark/projects/", - "benchmark/results/", - "**/dist/**", - "**/smoke/**", - "**/fixtures/**", - "**/vendor/**", - "**/.vercel/**", - ".changeset", - "pnpm-lock.yaml" - ] - }, - "organizeImports": { "enabled": true }, - "linter": { "enabled": false }, - "javascript": { - "formatter": { - "trailingComma": "es5", - "quoteStyle": "single", + "$schema": "https://biomejs.dev/schemas/1.6.4/schema.json", + "files": { + "ignore": ["vendor", "dist/**"], + "include": ["test/**", "e2e/**", "packages/**"] + }, + "formatter": { + "indentStyle": "tab", + "indentWidth": 2, + "lineWidth": 100, + "ignore": [ + "benchmark/projects/", + "benchmark/results/", + "**/dist/**", + "**/smoke/**", + "**/fixtures/**", + "**/vendor/**", + "**/.vercel/**", + ".changeset", + "pnpm-lock.yaml" + ] + }, + "organizeImports": { "enabled": true }, + "linter": { "enabled": false }, + "javascript": { + "formatter": { + "trailingComma": "es5", + "quoteStyle": "single", "semicolons": "always" } - }, + }, "json": { "parser": { "allowComments": true, diff --git a/packages/astro-prism/package.json b/packages/astro-prism/package.json index 0a10a764e146..e5c0d56a7441 100644 --- a/packages/astro-prism/package.json +++ b/packages/astro-prism/package.json @@ -23,14 +23,8 @@ "./Prism.astro": "./Prism.astro", "./dist/highlighter": "./dist/highlighter.js" }, - "files": [ - "dist", - "Prism.astro" - ], - "keywords": [ - "astro", - "astro-component" - ], + "files": ["dist", "Prism.astro"], + "keywords": ["astro", "astro-component"], "dependencies": { "prismjs": "^1.29.0" }, diff --git a/packages/astro-rss/package.json b/packages/astro-rss/package.json index 9c953f64051e..5c56325fb05c 100644 --- a/packages/astro-rss/package.json +++ b/packages/astro-rss/package.json @@ -17,9 +17,7 @@ ".": "./dist/index.js", "./package.json": "./package.json" }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/astro/package.json b/packages/astro/package.json index e60cb18a87a0..35f96bdce8d3 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -15,15 +15,9 @@ "types": "./index.d.ts", "typesVersions": { "*": { - "app": [ - "./dist/core/app/index" - ], - "app/*": [ - "./dist/core/app/*" - ], - "middleware": [ - "./dist/virtual-modules/middleware.d.ts" - ] + "app": ["./dist/core/app/index"], + "app/*": ["./dist/core/app/*"], + "middleware": ["./dist/virtual-modules/middleware.d.ts"] } }, "exports": { diff --git a/packages/astro/src/assets/vite-plugin-assets.ts b/packages/astro/src/assets/vite-plugin-assets.ts index a696e5619e15..03a9bef29fad 100644 --- a/packages/astro/src/assets/vite-plugin-assets.ts +++ b/packages/astro/src/assets/vite-plugin-assets.ts @@ -147,7 +147,9 @@ export default function assets({ : settings.config.outDir ) )}); - export const assetsDir = /* #__PURE__ */ new URL(${JSON.stringify(settings.config.build.assets)}, outDir); + export const assetsDir = /* #__PURE__ */ new URL(${JSON.stringify( + settings.config.build.assets + )}, outDir); export const getImage = async (options) => await getImageInternal(options, imageConfig); `; } diff --git a/packages/astro/src/cli/install-package.ts b/packages/astro/src/cli/install-package.ts index 02e856846484..7e449d9a1933 100644 --- a/packages/astro/src/cli/install-package.ts +++ b/packages/astro/src/cli/install-package.ts @@ -39,7 +39,9 @@ export async function getPackage( return packageImport as T; } catch (e) { if (options.optional) return undefined; - let message = `To continue, Astro requires the following dependency to be installed: ${bold(packageName)}.`; + let message = `To continue, Astro requires the following dependency to be installed: ${bold( + packageName + )}.`; if (ci.isCI) { message += ` Packages cannot be installed automatically in CI environments.`; diff --git a/packages/astro/src/core/errors/dev/utils.ts b/packages/astro/src/core/errors/dev/utils.ts index f5de83de4758..c151b55cd712 100644 --- a/packages/astro/src/core/errors/dev/utils.ts +++ b/packages/astro/src/core/errors/dev/utils.ts @@ -171,7 +171,9 @@ function collectInfoFromStacktrace(error: SSRError & { stack: string }): StackIn error.pluginCode || error.id || // TODO: this could be better, `src` might be something else - stackText.split('\n').find((ln) => ln.includes('src') || ln.includes('node_modules')); + stackText + .split('\n') + .find((ln) => ln.includes('src') || ln.includes('node_modules')); // Disable eslint as we're not sure how to improve this regex yet // eslint-disable-next-line regexp/no-super-linear-backtracking const source = possibleFilePath?.replace?.(/^[^(]+\(([^)]+).*$/, '$1').replace(/^\s+at\s+/, ''); diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index 6cb22cc00e99..e2593e6f1288 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -168,9 +168,7 @@ export const NoMatchingRenderer = { ${ validRenderersCount > 0 - ? `There ${plural ? 'are' : 'is'} ${validRenderersCount} renderer${ - plural ? 's' : '' - } configured in your \`astro.config.mjs\` file, + ? `There ${plural ? 'are' : 'is'} ${validRenderersCount} renderer${plural ? 's' : ''} configured in your \`astro.config.mjs\` file, but ${plural ? 'none were' : 'it was not'} able to server-side render \`${componentName}\`.` : `No valid renderer was found ${ componentExtension diff --git a/packages/astro/src/runtime/client/dev-toolbar/apps/settings.ts b/packages/astro/src/runtime/client/dev-toolbar/apps/settings.ts index 4f7dc14ce696..eb97bd34e84b 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/apps/settings.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/apps/settings.ts @@ -195,8 +195,9 @@ export default { if (placement === settings.config[setting.settingKey]) { option.selected = true; } - option.textContent = - `${placement.slice(0, 1).toUpperCase()}${placement.slice(1)}`.replace('-', ' '); + option.textContent = `${placement.slice(0, 1).toUpperCase()}${placement.slice( + 1 + )}`.replace('-', ' '); astroSelect.append(option); }); astroSelect.element.addEventListener('change', setting.changeEvent); diff --git a/packages/astro/src/runtime/client/dev-toolbar/toolbar.ts b/packages/astro/src/runtime/client/dev-toolbar/toolbar.ts index 278bd0966723..2fe3a8f8f02e 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/toolbar.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/toolbar.ts @@ -256,7 +256,9 @@ export class AstroDevToolbar extends HTMLElement { width: 1px; } -
+
@@ -281,7 +283,9 @@ export class AstroDevToolbar extends HTMLElement { : '' }
- ${this.getAppTemplate(this.apps.find((app) => app.builtIn && app.id === 'astro:settings')!)} + ${this.getAppTemplate( + this.apps.find((app) => app.builtIn && app.id === 'astro:settings')! + )}
diff --git a/packages/astro/src/runtime/client/dev-toolbar/ui-library/tooltip.ts b/packages/astro/src/runtime/client/dev-toolbar/ui-library/tooltip.ts index b574abd91875..062d683715a2 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/ui-library/tooltip.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/ui-library/tooltip.ts @@ -138,7 +138,11 @@ export class DevToolbarTooltip extends HTMLElement { : '' } ${section.content ? `
${section.content}
` : ''} - ${section.clickDescription ? `${section.clickDescription}` : ''} + ${ + section.clickDescription + ? `${section.clickDescription}` + : '' + } `; fragment.append(sectionElement); diff --git a/packages/astro/src/transitions/router.ts b/packages/astro/src/transitions/router.ts index 0084a9d74ea2..b21003fe02fa 100644 --- a/packages/astro/src/transitions/router.ts +++ b/packages/astro/src/transitions/router.ts @@ -480,7 +480,7 @@ async function transition( preparationEvent.sourceElement instanceof HTMLFormElement ? preparationEvent.sourceElement : preparationEvent.sourceElement instanceof HTMLElement && - 'form' in preparationEvent.sourceElement + 'form' in preparationEvent.sourceElement ? (preparationEvent.sourceElement.form as HTMLFormElement) : preparationEvent.sourceElement?.closest('form'); // Form elements without enctype explicitly set default to application/x-www-form-urlencoded. diff --git a/packages/astro/test/test-adapter.js b/packages/astro/test/test-adapter.js index 72c5e0c0f0c9..bdfffc83c4ee 100644 --- a/packages/astro/test/test-adapter.js +++ b/packages/astro/test/test-adapter.js @@ -52,7 +52,11 @@ export default function ( return new Response(data); } - ${provideAddress ? `request[Symbol.for('astro.clientAddress')] = '0.0.0.0';` : ''} + ${ + provideAddress + ? `request[Symbol.for('astro.clientAddress')] = '0.0.0.0';` + : '' + } return super.render(request, routeData, locals); } } diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index c6822ccf5bef..df67274c5c74 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -24,10 +24,7 @@ "dev": "astro-scripts dev \"src/**/*.ts\"", "test": "astro-scripts test \"test/**/*.test.js\"" }, - "files": [ - "dist", - "create-astro.js" - ], + "files": ["dist", "create-astro.js"], "//a": "MOST PACKAGES SHOULD GO IN DEV_DEPENDENCIES! THEY WILL BE BUNDLED.", "//b": "DEPENDENCIES IS FOR UNBUNDLED PACKAGES", "dependencies": { diff --git a/packages/db/package.json b/packages/db/package.json index 68149f69bbd9..bd7dd3541d3b 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -38,29 +38,14 @@ }, "typesVersions": { "*": { - ".": [ - "./index.d.ts" - ], - "types": [ - "./dist/types.d.ts" - ], - "utils": [ - "./dist/utils.d.ts" - ], - "runtime": [ - "./dist/runtime/index.d.ts" - ] + ".": ["./index.d.ts"], + "types": ["./dist/types.d.ts"], + "utils": ["./dist/utils.d.ts"], + "runtime": ["./dist/runtime/index.d.ts"] } }, - "files": [ - "index.d.ts", - "virtual.d.ts", - "dist" - ], - "keywords": [ - "withastro", - "astro-integration" - ], + "files": ["index.d.ts", "virtual.d.ts", "dist"], + "keywords": ["withastro", "astro-integration"], "scripts": { "types:virtual": "tsc -p ./tsconfig.virtual.json", "build": "astro-scripts build \"src/**/*.ts\" && tsc && pnpm types:virtual", diff --git a/packages/db/src/core/errors.ts b/packages/db/src/core/errors.ts index 620b2b985fbf..655cbbf380a7 100644 --- a/packages/db/src/core/errors.ts +++ b/packages/db/src/core/errors.ts @@ -35,8 +35,7 @@ export const RENAME_COLUMN_ERROR = (oldSelector: string, newSelector: string) => ); }; -export const FILE_NOT_FOUND_ERROR = (path: string) => - `${red('▶ File not found:')} ${bold(path)}\n`; +export const FILE_NOT_FOUND_ERROR = (path: string) => `${red('▶ File not found:')} ${bold(path)}\n`; export const SHELL_QUERY_MISSING_ERROR = `${red( '▶ Please provide a query to execute using the --query flag.' diff --git a/packages/db/src/core/schemas.ts b/packages/db/src/core/schemas.ts index 4dff9039ae2f..a2a8368fbfb6 100644 --- a/packages/db/src/core/schemas.ts +++ b/packages/db/src/core/schemas.ts @@ -133,7 +133,9 @@ export const dateColumnSchema = z.object({ .union([ sqlSchema, // transform to ISO string for serialization - z.date().transform((d) => d.toISOString()), + z + .date() + .transform((d) => d.toISOString()), ]) .optional(), }), diff --git a/packages/integrations/alpinejs/package.json b/packages/integrations/alpinejs/package.json index c5115131607a..1544fe43f85b 100644 --- a/packages/integrations/alpinejs/package.json +++ b/packages/integrations/alpinejs/package.json @@ -11,22 +11,14 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/alpinejs" }, - "keywords": [ - "astro-integration", - "astro-component", - "renderer", - "alpinejs", - "performance" - ], + "keywords": ["astro-integration", "astro-component", "renderer", "alpinejs", "performance"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/alpinejs", "exports": { ".": "./dist/index.js", "./package.json": "./package.json" }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/lit/package.json b/packages/integrations/lit/package.json index 1706431de64b..866812e8a826 100644 --- a/packages/integrations/lit/package.json +++ b/packages/integrations/lit/package.json @@ -11,12 +11,7 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/lit" }, - "keywords": [ - "astro-integration", - "astro-component", - "renderer", - "lit" - ], + "keywords": ["astro-integration", "astro-component", "renderer", "lit"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/lit/", "exports": { diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index c928fbb200c4..09c225dfe340 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -11,11 +11,7 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/markdoc" }, - "keywords": [ - "astro-integration", - "astro-component", - "markdoc" - ], + "keywords": ["astro-integration", "astro-component", "markdoc"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/markdoc/", "exports": { @@ -39,22 +35,12 @@ }, "typesVersions": { "*": { - "config": [ - "./dist/config.d.ts" - ], - "prism": [ - "./dist/extensions/prism.d.ts" - ], - "shiki": [ - "./dist/extensions/shiki.d.ts" - ] + "config": ["./dist/config.d.ts"], + "prism": ["./dist/extensions/prism.d.ts"], + "shiki": ["./dist/extensions/shiki.d.ts"] } }, - "files": [ - "components", - "dist", - "template" - ], + "files": ["components", "dist", "template"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index ac9e775a66be..50db19456752 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -11,21 +11,14 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/mdx" }, - "keywords": [ - "astro-integration", - "astro-component", - "mdx" - ], + "keywords": ["astro-integration", "astro-component", "mdx"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/mdx/", "exports": { ".": "./dist/index.js", "./package.json": "./package.json" }, - "files": [ - "dist", - "template" - ], + "files": ["dist", "template"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index b9c2fa26a55d..8bde1230734d 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -11,10 +11,7 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/node" }, - "keywords": [ - "withastro", - "astro-adapter" - ], + "keywords": ["withastro", "astro-adapter"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/node/", "exports": { @@ -23,9 +20,7 @@ "./preview.js": "./dist/preview.js", "./package.json": "./package.json" }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/partytown/package.json b/packages/integrations/partytown/package.json index 83ba89c63cd4..abc417d5ba9b 100644 --- a/packages/integrations/partytown/package.json +++ b/packages/integrations/partytown/package.json @@ -11,21 +11,14 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/partytown" }, - "keywords": [ - "astro-integration", - "astro-component", - "analytics", - "performance" - ], + "keywords": ["astro-integration", "astro-component", "analytics", "performance"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/partytown/", "exports": { ".": "./dist/index.js", "./package.json": "./package.json" }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index 31256b838f00..f07cff441a57 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -11,12 +11,7 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/preact" }, - "keywords": [ - "astro-integration", - "astro-component", - "renderer", - "preact" - ], + "keywords": ["astro-integration", "astro-component", "renderer", "preact"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/preact/", "exports": { @@ -26,9 +21,7 @@ "./server.js": "./dist/server.js", "./package.json": "./package.json" }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index b69eb944953a..a1b174f8b835 100644 --- a/packages/integrations/react/package.json +++ b/packages/integrations/react/package.json @@ -11,12 +11,7 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/react" }, - "keywords": [ - "astro-integration", - "astro-component", - "renderer", - "react" - ], + "keywords": ["astro-integration", "astro-component", "renderer", "react"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/react/", "exports": { diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json index abf9f263b8b6..14bdf8e27f9b 100644 --- a/packages/integrations/sitemap/package.json +++ b/packages/integrations/sitemap/package.json @@ -11,21 +11,14 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/sitemap" }, - "keywords": [ - "astro-integration", - "astro-component", - "seo", - "sitemap" - ], + "keywords": ["astro-integration", "astro-component", "seo", "sitemap"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/sitemap/", "exports": { ".": "./dist/index.js", "./package.json": "./package.json" }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index 95e1bf194c47..ce8739ce7130 100644 --- a/packages/integrations/solid/package.json +++ b/packages/integrations/solid/package.json @@ -11,12 +11,7 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/solid" }, - "keywords": [ - "astro-integration", - "astro-component", - "renderer", - "solid" - ], + "keywords": ["astro-integration", "astro-component", "renderer", "solid"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/solid-js/", "exports": { @@ -26,9 +21,7 @@ "./server.js": "./dist/server.js", "./package.json": "./package.json" }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index 499a8bf84704..8f163834717f 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -11,12 +11,7 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/svelte" }, - "keywords": [ - "astro-integration", - "astro-component", - "renderer", - "svelte" - ], + "keywords": ["astro-integration", "astro-component", "renderer", "svelte"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/svelte/", "exports": { @@ -29,13 +24,7 @@ "./server-v5.js": "./server-v5.js", "./package.json": "./package.json" }, - "files": [ - "dist", - "client.js", - "client-v5.js", - "server.js", - "server-v5.js" - ], + "files": ["dist", "client.js", "client-v5.js", "server.js", "server-v5.js"], "scripts": { "build": "astro-scripts build \"src/index.ts\" && astro-scripts build \"src/editor.cts\" --force-cjs --no-clean-dist && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\" && astro-scripts build \"src/editor.cts\" --force-cjs --no-clean-dist", diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json index aed582c89d08..972fa34c5b65 100644 --- a/packages/integrations/tailwind/package.json +++ b/packages/integrations/tailwind/package.json @@ -11,10 +11,7 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/tailwind" }, - "keywords": [ - "astro-integration", - "astro-component" - ], + "keywords": ["astro-integration", "astro-component"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/tailwind/", "exports": { @@ -22,10 +19,7 @@ "./base.css": "./base.css", "./package.json": "./package.json" }, - "files": [ - "dist", - "base.css" - ], + "files": ["dist", "base.css"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index 207668a94c13..b1226f249200 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -10,10 +10,7 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/vercel" }, - "keywords": [ - "withastro", - "astro-adapter" - ], + "keywords": ["withastro", "astro-adapter"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/vercel/", "exports": { @@ -31,18 +28,11 @@ }, "typesVersions": { "*": { - "serverless": [ - "dist/serverless/adapter.d.ts" - ], - "static": [ - "dist/static/adapter.d.ts" - ] + "serverless": ["dist/serverless/adapter.d.ts"], + "static": ["dist/static/adapter.d.ts"] } }, - "files": [ - "dist", - "types.d.ts" - ], + "files": ["dist", "types.d.ts"], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index db48b34b3140..07f7a8f81700 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -11,12 +11,7 @@ "url": "https://github.com/withastro/astro.git", "directory": "packages/integrations/vue" }, - "keywords": [ - "astro-integration", - "astro-component", - "renderer", - "vue" - ], + "keywords": ["astro-integration", "astro-component", "renderer", "vue"], "bugs": "https://github.com/withastro/astro/issues", "homepage": "https://docs.astro.build/en/guides/integrations-guide/vue/", "exports": { @@ -27,12 +22,7 @@ "./server.js": "./server.js", "./package.json": "./package.json" }, - "files": [ - "dist", - "client.js", - "server.js", - "static-html.js" - ], + "files": ["dist", "client.js", "server.js", "static-html.js"], "scripts": { "build": "astro-scripts build \"src/index.ts\" && astro-scripts build \"src/editor.cts\" --force-cjs --no-clean-dist && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\" && astro-scripts build \"src/editor.cts\" --force-cjs --no-clean-dist", diff --git a/packages/internal-helpers/package.json b/packages/internal-helpers/package.json index ab31aab220ef..089d8bae062e 100644 --- a/packages/internal-helpers/package.json +++ b/packages/internal-helpers/package.json @@ -16,14 +16,10 @@ }, "typesVersions": { "*": { - "path": [ - "./dist/path.d.ts" - ] + "path": ["./dist/path.d.ts"] } }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "prepublish": "pnpm build", "build": "astro-scripts build \"src/**/*.ts\" && tsc -p tsconfig.json", @@ -34,10 +30,7 @@ "devDependencies": { "astro-scripts": "workspace:*" }, - "keywords": [ - "astro", - "astro-component" - ], + "keywords": ["astro", "astro-component"], "publishConfig": { "provenance": true } diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index 5e2c8975c78e..14eb182c8cdf 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -22,9 +22,7 @@ "default": "./dist/import-plugin-default.js" } }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "prepublish": "pnpm build", "build": "astro-scripts build \"src/**/*.ts\" && tsc -p tsconfig.json", diff --git a/packages/telemetry/package.json b/packages/telemetry/package.json index 9c4d269bfcf2..b5cc2e3cde5f 100644 --- a/packages/telemetry/package.json +++ b/packages/telemetry/package.json @@ -25,9 +25,7 @@ "dev": "astro-scripts dev \"src/**/*.ts\"", "test": "astro-scripts test \"test/**/*.test.js\"" }, - "files": [ - "dist" - ], + "files": ["dist"], "dependencies": { "ci-info": "^4.0.0", "debug": "^4.3.4", diff --git a/packages/underscore-redirects/package.json b/packages/underscore-redirects/package.json index 795d540ae37f..bea2ecf8e61c 100644 --- a/packages/underscore-redirects/package.json +++ b/packages/underscore-redirects/package.json @@ -16,9 +16,7 @@ "exports": { ".": "./dist/index.js" }, - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { "prepublish": "pnpm build", "build": "astro-scripts build \"src/**/*.ts\" && tsc -p tsconfig.json", @@ -31,10 +29,7 @@ "astro": "workspace:*", "astro-scripts": "workspace:*" }, - "keywords": [ - "astro", - "astro-component" - ], + "keywords": ["astro", "astro-component"], "publishConfig": { "provenance": true } diff --git a/packages/upgrade/package.json b/packages/upgrade/package.json index 9612dbbfbfdc..70b36be3a945 100644 --- a/packages/upgrade/package.json +++ b/packages/upgrade/package.json @@ -22,10 +22,7 @@ "dev": "astro-scripts dev \"src/**/*.ts\"", "test": "astro-scripts test \"test/**/*.test.js\"" }, - "files": [ - "dist", - "upgrade.js" - ], + "files": ["dist", "upgrade.js"], "//a": "MOST PACKAGES SHOULD GO IN DEV_DEPENDENCIES! THEY WILL BE BUNDLED.", "//b": "DEPENDENCIES IS FOR UNBUNDLED PACKAGES", "dependencies": { diff --git a/packages/upgrade/src/actions/context.ts b/packages/upgrade/src/actions/context.ts index f89095e7b2bb..775c552c0d22 100644 --- a/packages/upgrade/src/actions/context.ts +++ b/packages/upgrade/src/actions/context.ts @@ -39,7 +39,11 @@ export async function getContext(argv: string[]): Promise { ); const packageManager = detectPackageManager()?.name ?? 'npm'; - const { _: [version = 'latest'] = [], '--help': help = false, '--dry-run': dryRun } = flags; + const { + _: [version = 'latest'] = [], + '--help': help = false, + '--dry-run': dryRun, + } = flags; return { help,