diff --git a/.changeset/proud-parrots-reflect.md b/.changeset/proud-parrots-reflect.md new file mode 100644 index 000000000000..fc236f7c2bf1 --- /dev/null +++ b/.changeset/proud-parrots-reflect.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/adapter-auto': patch +--- + +Remove ANSI codes diff --git a/.changeset/twelve-carrots-smoke.md b/.changeset/twelve-carrots-smoke.md new file mode 100644 index 000000000000..fc567924ddc7 --- /dev/null +++ b/.changeset/twelve-carrots-smoke.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/adapter-auto': patch +--- + +Fix platform detection order diff --git a/packages/adapter-auto/adapters.js b/packages/adapter-auto/adapters.js index 44cbf9f4f68a..e018e74625ef 100644 --- a/packages/adapter-auto/adapters.js +++ b/packages/adapter-auto/adapters.js @@ -4,14 +4,14 @@ export const adapters = [ test: () => !!process.env.VERCEL, module: '@sveltejs/adapter-vercel' }, - { - name: 'Netlify', - test: () => !!process.env.NETLIFY, - module: '@sveltejs/adapter-netlify' - }, { name: 'Cloudflare Pages', test: () => !!process.env.CF_PAGES, module: '@sveltejs/adapter-cloudflare' + }, + { + name: 'Netlify', + test: () => !!process.env.NETLIFY, + module: '@sveltejs/adapter-netlify' } ]; diff --git a/packages/adapter-auto/index.js b/packages/adapter-auto/index.js index e60b1ab4aa9e..62b4072b6b8e 100644 --- a/packages/adapter-auto/index.js +++ b/packages/adapter-auto/index.js @@ -9,7 +9,7 @@ export default function () { for (const candidate of adapters) { if (candidate.test()) { options.utils.log.info( - `Detected environment: \u001B[1m\u001B[92m${candidate.name}\u001B[39m\u001B[22m. Using ${candidate.module}` + `Detected environment: ${candidate.name}. Using ${candidate.module}` ); let module;