@turbo/types 2.1.3-canary.0 → 2.1.3-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turbo/types",
3
- "version": "2.1.3-canary.0",
3
+ "version": "2.1.3-canary.2",
4
4
  "description": "Turborepo types",
5
5
  "homepage": "https://turbo.build/repo",
6
6
  "license": "MIT",
@@ -18,8 +18,8 @@
18
18
  "@types/node": "^20",
19
19
  "ts-json-schema-generator": "2.3.0",
20
20
  "tsx": "^4.19.0",
21
- "@turbo/eslint-config": "0.0.0",
22
- "@turbo/tsconfig": "0.0.0"
21
+ "@turbo/tsconfig": "0.0.0",
22
+ "@turbo/eslint-config": "0.0.0"
23
23
  },
24
24
  "files": [
25
25
  "src",
package/src/index.ts CHANGED
@@ -1,3 +1,10 @@
1
+ import type { Framework as FW } from "./types/frameworks";
2
+ import frameworksJson from "./json/frameworks.json";
3
+
4
+ export const frameworks = frameworksJson as Array<Framework>;
5
+ export type Framework = FW;
6
+ export type { FrameworkStrategy } from "./types/frameworks";
7
+
1
8
  export {
2
9
  type BaseSchema,
3
10
  type BaseSchema as BaseSchemaV2,
@@ -0,0 +1,119 @@
1
+ [
2
+ {
3
+ "slug": "astro",
4
+ "name": "Astro",
5
+ "envWildcards": ["PUBLIC_*"],
6
+ "dependencyMatch": {
7
+ "strategy": "all",
8
+ "dependencies": ["astro"]
9
+ }
10
+ },
11
+ {
12
+ "slug": "blitzjs",
13
+ "name": "Blitz",
14
+ "envWildcards": ["NEXT_PUBLIC_*"],
15
+ "dependencyMatch": {
16
+ "strategy": "all",
17
+ "dependencies": ["blitz"]
18
+ }
19
+ },
20
+ {
21
+ "slug": "create-react-app",
22
+ "name": "Create React App",
23
+ "envWildcards": ["REACT_APP_*"],
24
+ "dependencyMatch": {
25
+ "strategy": "some",
26
+ "dependencies": ["react-scripts", "react-dev-utils"]
27
+ }
28
+ },
29
+ {
30
+ "slug": "gatsby",
31
+ "name": "Gatsby",
32
+ "envWildcards": ["GATSBY_*"],
33
+ "dependencyMatch": {
34
+ "strategy": "all",
35
+ "dependencies": ["gatsby"]
36
+ }
37
+ },
38
+ {
39
+ "slug": "nextjs",
40
+ "name": "Next.js",
41
+ "envWildcards": ["NEXT_PUBLIC_*"],
42
+ "dependencyMatch": {
43
+ "strategy": "all",
44
+ "dependencies": ["next"]
45
+ }
46
+ },
47
+ {
48
+ "slug": "nitro",
49
+ "name": "Nitro",
50
+ "envWildcards": ["NITRO_*"],
51
+ "dependencyMatch": {
52
+ "strategy": "some",
53
+ "dependencies": ["nitropack", "nitropack-nightly"]
54
+ }
55
+ },
56
+ {
57
+ "slug": "nuxtjs",
58
+ "name": "Nuxt.js",
59
+ "envWildcards": ["NUXT_*", "NITRO_*"],
60
+ "dependencyMatch": {
61
+ "strategy": "some",
62
+ "dependencies": ["nuxt", "nuxt-edge", "nuxt3", "nuxt3-edge"]
63
+ }
64
+ },
65
+ {
66
+ "slug": "redwoodjs",
67
+ "name": "RedwoodJS",
68
+ "envWildcards": ["REDWOOD_ENV_*"],
69
+ "dependencyMatch": {
70
+ "strategy": "all",
71
+ "dependencies": ["@redwoodjs/core"]
72
+ }
73
+ },
74
+ {
75
+ "slug": "sanity",
76
+ "name": "Sanity Studio",
77
+ "envWildcards": ["SANITY_STUDIO_*"],
78
+ "dependencyMatch": {
79
+ "strategy": "all",
80
+ "dependencies": ["@sanity/cli"]
81
+ }
82
+ },
83
+ {
84
+ "slug": "solidstart",
85
+ "name": "Solid",
86
+ "envWildcards": ["VITE_*"],
87
+ "dependencyMatch": {
88
+ "strategy": "all",
89
+ "dependencies": ["solid-js", "solid-start"]
90
+ }
91
+ },
92
+ {
93
+ "slug": "sveltekit",
94
+ "name": "SvelteKit",
95
+ "envWildcards": ["VITE_*", "PUBLIC_*"],
96
+ "dependencyMatch": {
97
+ "strategy": "all",
98
+ "dependencies": ["@sveltejs/kit"]
99
+ }
100
+ },
101
+ {
102
+ "slug": "vite",
103
+ "name": "Vite",
104
+ "envWildcards": ["VITE_*"],
105
+ "dependencyMatch": {
106
+ "strategy": "all",
107
+ "dependencies": ["vite"]
108
+ }
109
+ },
110
+ {
111
+ "slug": "vue",
112
+ "name": "Vue",
113
+ "envWildcards": ["VUE_APP_*"],
114
+ "dependencyMatch": {
115
+ "strategy": "all",
116
+ "dependencies": ["@vue/cli-service"]
117
+ }
118
+ }
119
+ ]
@@ -0,0 +1,11 @@
1
+ export type FrameworkStrategy = "all" | "some";
2
+
3
+ export interface Framework {
4
+ slug: string;
5
+ name: string;
6
+ envWildcards: Array<string>;
7
+ dependencyMatch: {
8
+ strategy: FrameworkStrategy;
9
+ dependencies: Array<string>;
10
+ };
11
+ }