Skip to content

Commit 36b6cf5

Browse files
authored
chore: remove noisy output and update text about svelte-add (#12337)
1 parent 7474f7b commit 36b6cf5

File tree

2 files changed

+8
-30
lines changed

2 files changed

+8
-30
lines changed

.changeset/old-jars-work.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-svelte": patch
3+
---
4+
5+
chore: update text about svelte-add

packages/create-svelte/bin.js

+3-30
Original file line numberDiff line numberDiff line change
@@ -122,42 +122,15 @@ await create(cwd, {
122122

123123
p.outro('Your project is ready!');
124124

125-
if (options.types === 'typescript') {
126-
console.log(bold('✔ Typescript'));
127-
console.log(' Inside Svelte components, use <script lang="ts">\n');
128-
} else if (options.types === 'checkjs') {
129-
console.log(bold('✔ Type-checked JavaScript'));
130-
console.log(cyan(' https://www.typescriptlang.org/tsconfig#checkJs\n'));
131-
} else if (options.template === 'skeletonlib') {
125+
if (!options.types && options.template === 'skeletonlib') {
132126
const warning = yellow('▲');
133127
console.log(
134128
`${warning} You chose to not add type checking, but TypeScript will still be installed in order to generate type definitions when building the library\n`
135129
);
136130
}
137131

138-
if (options.features.includes('eslint')) {
139-
console.log(bold('✔ ESLint'));
140-
console.log(cyan(' https://github.com/sveltejs/eslint-plugin-svelte\n'));
141-
}
142-
143-
if (options.features.includes('prettier')) {
144-
console.log(bold('✔ Prettier'));
145-
console.log(cyan(' https://prettier.io/docs/en/options.html'));
146-
console.log(cyan(' https://github.com/sveltejs/prettier-plugin-svelte#options\n'));
147-
}
148-
149-
if (options.features.includes('playwright')) {
150-
console.log(bold('✔ Playwright'));
151-
console.log(cyan(' https://playwright.dev\n'));
152-
}
153-
154-
if (options.features.includes('vitest')) {
155-
console.log(bold('✔ Vitest'));
156-
console.log(cyan(' https://vitest.dev\n'));
157-
}
158-
159-
console.log('Install community-maintained integrations:');
160-
console.log(cyan(' https://github.com/svelte-add/svelte-add'));
132+
console.log('Install more integrations with:');
133+
console.log(bold(cyan(' npx svelte-add')));
161134

162135
console.log('\nNext steps:');
163136
let i = 1;

0 commit comments

Comments
 (0)