-
-
Notifications
You must be signed in to change notification settings - Fork 56
fix(cli): export types & switch to tsdown #719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a79fab3
feat: tsdown
sxzz f31945b
fix
sxzz 8859518
fix
sxzz 02cdea9
fix
sxzz f0093df
chore: add changesets
sxzz d888ae4
add `package-manager-detector` to `d.ts`
jycouet 7ed38da
fix infinite build loop in watch mode
jycouet b97f76c
export TemplateType and LanguageType
jycouet 296b31a
buildCliTemplates format
jycouet e4287ac
buildTemplates also for create
jycouet 52bc5d8
dedupe
AdrianGonz97 2dd7e99
fix tsc check
AdrianGonz97 8f4cd42
Merge branch 'main' into feat/tsdown
AdrianGonz97 78ce119
lockfile
AdrianGonz97 63d0d15
Merge branch 'main' into feat/tsdown
AdrianGonz97 f1ff88f
lockfile
AdrianGonz97 5742b16
tweak addon w/o args type
AdrianGonz97 8bebc97
convert and expose officialAddons map
AdrianGonz97 3c815a2
attempt to use tsc instead of oxc
AdrianGonz97 b8a2174
undo and use simple type
AdrianGonz97 b3755c6
fix all addons test
AdrianGonz97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'sv': patch | ||
--- | ||
|
||
fix(cli): export types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ | |
"pnpm": "^10.0.0" | ||
}, | ||
"scripts": { | ||
"build": "rolldown --config", | ||
"build": "tsdown", | ||
"changeset:publish": "changeset publish", | ||
"check": "pnpm --parallel check", | ||
"dev": "rolldown --watch --config", | ||
"dev": "tsdown -w", | ||
"format": "pnpm --parallel format", | ||
"lint": "pnpm --parallel lint && eslint --cache --cache-location node_modules/.eslintcache", | ||
"test": "vitest run --silent", | ||
|
@@ -32,12 +32,11 @@ | |
"prettier": "^3.5.3", | ||
"prettier-plugin-packagejson": "^2.5.15", | ||
"prettier-plugin-svelte": "^3.4.0", | ||
"rolldown": "1.0.0-beta.1", | ||
"sv": "workspace:*", | ||
"svelte": "^5.34.6", | ||
"tsdown": "^0.15.2", | ||
"typescript": "^5.8.3", | ||
"typescript-eslint": "^8.34.1", | ||
"unplugin-isolated-decl": "^0.8.3", | ||
"vitest": "4.0.0-beta.6" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"include": ["index.ts"] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export { create } from '@sveltejs/create'; | ||
export { create, type TemplateType, type LanguageType } from '@sveltejs/create'; | ||
export { installAddon } from './install.ts'; | ||
export type { AddonMap, InstallOptions, OptionMap } from './install.ts'; | ||
export { officialAddons } from '@sveltejs/addons'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we'll have to keep in mind that
@sveltejs/cli-core
will be a public package in the future, so this will have to be updated back to its original state when community add-ons are releasedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it be
@sveltejs/cli-core
or maybe undersv
likesv/core
?What about
@sveltejs/create
&@sveltejs/addons
?It might be a question for later anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its still TBD, but our plans were to have
core
be its own standalone package so that community add-ons don't havesv
as a direct dependencycreate
should probably stay insv
, but there's an argument to be made as to whereaddons
should go. it may be more useful to have it be part ofcore
but we can figure it out when we get there :p