Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"globals": "^15.9.0",
"nodemon": "^2.0.20",
"rete-cli": "~2.0.1",
"rete-kit": "^1.14.0",
"rete-kit": "^1.15.0",
"typescript": "^4.9.5"
},
"peerDependencies": {
"rete-kit": "^1.14.0"
"rete-kit": "^1.15.0"
},
"dependencies": {
"@playwright/test": "^1.37.1",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/init/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export const targets: { stack: App.AppStack, versions: number[] }[] = [
{ stack: 'react', versions: [16, 17, 18] },
{ stack: 'react-vite', versions: [16, 17, 18] },
{ stack: 'react-vite', versions: [16, 17, 18, 19] },
{ stack: 'vue', versions: [2, 3] },
{ stack: 'angular', versions: [12, 13, 14, 15, 16, 17, 18, 19, 20] },
{ stack: 'svelte', versions: [3, 4, 5] },
Expand All @@ -21,11 +21,11 @@

export function getFeatures({ stack, version }: Pick<(typeof fixtures)[0], 'stack' | 'version'>, next: boolean) {
return [
stack === 'angular' && new App.Features.Angular(version as 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20, next),

Check warning on line 24 in src/commands/init/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

The 'version as 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20' has unsafe 'as' type assertion
['react', 'react-vite'].includes(stack) && new App.Features.React(version, stack, next),
stack === 'vue' && new App.Features.Vue(version as 2 | 3, next),

Check warning on line 26 in src/commands/init/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

The 'version as 2 | 3' has unsafe 'as' type assertion
stack === 'svelte' && new App.Features.Svelte(version as 3 | 4 | 5, next),

Check warning on line 27 in src/commands/init/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

The 'version as 3 | 4 | 5' has unsafe 'as' type assertion
stack === 'lit-vite' && new App.Features.Lit(version as 3, next),

Check warning on line 28 in src/commands/init/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

The 'version as 3' has unsafe 'as' type assertion
new App.Features.ZoomAt(),
new App.Features.OrderNodes(),
new App.Features.Dataflow(next),
Expand All @@ -36,7 +36,7 @@
}

export function validate(stacks: string[], stackVersions: string[] | null): { error: string | null } {
const unknownStacks = stacks.filter(name => !stackNames.includes(name as App.AppStack))

Check warning on line 39 in src/commands/init/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

The 'name as App.AppStack' has unsafe 'as' type assertion

if (unknownStacks.length > 0) {
return { error: `Unknown stack names: ${unknownStacks.join(', ')}` }
Expand Down
Loading