create-houdini 2.0.0-next.12 → 2.0.0-next.14
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/bin.js
CHANGED
|
@@ -16,17 +16,24 @@ let projectName = projectDir
|
|
|
16
16
|
const { version } = JSON.parse(fs.readFileSync(new URL('package.json', import.meta.url), 'utf-8'))
|
|
17
17
|
console.log(`${grey(`create-houdini version ${version}`)}\n`)
|
|
18
18
|
|
|
19
|
-
// derive the dist-tag from our own version, then resolve
|
|
19
|
+
// derive the dist-tag from our own version, then resolve each package to its actual published version
|
|
20
|
+
// independently — packages can be at different versions across a release cycle
|
|
20
21
|
const distTag = version.includes('-') ? version.split('-')[1].split('.')[0] : 'latest'
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
const { execSync } = await import('node:child_process')
|
|
23
|
+
|
|
24
|
+
function resolveVersion(pkg) {
|
|
25
|
+
try {
|
|
26
|
+
const resolved = execSync(`npm view ${pkg}@${distTag} version`, { encoding: 'utf-8' }).trim()
|
|
27
|
+
return resolved || version
|
|
28
|
+
} catch {
|
|
29
|
+
return version
|
|
30
|
+
}
|
|
28
31
|
}
|
|
29
32
|
|
|
33
|
+
const houdiniVersion = resolveVersion('houdini')
|
|
34
|
+
const houdiniReactVersion = resolveVersion('houdini-react')
|
|
35
|
+
const houdiniAdapterVersion = resolveVersion('houdini-adapter-auto')
|
|
36
|
+
|
|
30
37
|
// prepare options
|
|
31
38
|
const templatesDir = sourcePath(`./templates`)
|
|
32
39
|
const options = fs.readdirSync(templatesDir).map((templateDir) => {
|
|
@@ -217,6 +224,8 @@ copy(
|
|
|
217
224
|
API_URL: apiUrl,
|
|
218
225
|
PROJECT_NAME: projectName,
|
|
219
226
|
HOUDINI_VERSION: houdiniVersion,
|
|
227
|
+
HOUDINI_REACT_VERSION: houdiniReactVersion,
|
|
228
|
+
HOUDINI_ADAPTER_VERSION: houdiniAdapterVersion,
|
|
220
229
|
["'CLIENT_CONFIG'"]: clientConfig,
|
|
221
230
|
["'CONFIG_FILE'"]: configFile,
|
|
222
231
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-houdini",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.14",
|
|
4
4
|
"description": "A CLI for creating new Houdini projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,16 +8,15 @@
|
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"homepage": "https://houdinigraphql.com/",
|
|
11
|
-
"bin": "./bin.js",
|
|
12
11
|
"dependencies": {
|
|
13
|
-
"@clack/prompts": "^
|
|
14
|
-
"commander": "^
|
|
15
|
-
"graphql": "16.
|
|
12
|
+
"@clack/prompts": "^1.5.1",
|
|
13
|
+
"commander": "^15.0.0",
|
|
14
|
+
"graphql": "16.14.1",
|
|
16
15
|
"kleur": "^4.1.5"
|
|
17
16
|
},
|
|
18
17
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^
|
|
20
|
-
"prettier": "^
|
|
18
|
+
"@types/node": "^25.9.1",
|
|
19
|
+
"prettier": "^3.8.3"
|
|
21
20
|
},
|
|
22
21
|
"files": [
|
|
23
22
|
"fragments",
|
|
@@ -33,5 +32,8 @@
|
|
|
33
32
|
"check": "tsc",
|
|
34
33
|
"lint": "prettier --check . --config ../../.prettierrc --ignore-path ../../.gitignore --ignore-path .gitignore --plugin prettier-plugin-svelte --plugin-search-dir=.",
|
|
35
34
|
"format": "pnpm lint --write"
|
|
35
|
+
},
|
|
36
|
+
"bin": {
|
|
37
|
+
"create-houdini": "./bin.js"
|
|
36
38
|
}
|
|
37
39
|
}
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"houdini": "^HOUDINI_VERSION",
|
|
13
|
-
"houdini-react": "^
|
|
14
|
-
"houdini-adapter-auto": "^
|
|
13
|
+
"houdini-react": "^HOUDINI_REACT_VERSION",
|
|
14
|
+
"houdini-adapter-auto": "^HOUDINI_ADAPTER_VERSION",
|
|
15
15
|
"react": "^19.0.0",
|
|
16
16
|
"react-dom": "^19.0.0",
|
|
17
|
-
"graphql-yoga": "
|
|
17
|
+
"graphql-yoga": "^5.21.1",
|
|
18
18
|
"graphql": "^16.0.0",
|
|
19
|
-
"@whatwg-node/server": "^0.
|
|
19
|
+
"@whatwg-node/server": "^0.11.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@vitejs/plugin-react": "^
|
|
23
|
-
"vite": "^
|
|
22
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
23
|
+
"vite": "^8.0.0"
|
|
24
24
|
},
|
|
25
25
|
"resolutions": {
|
|
26
26
|
"graphql": "^16.0.0",
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"houdini": "^HOUDINI_VERSION",
|
|
13
|
-
"houdini-react": "^
|
|
14
|
-
"houdini-adapter-auto": "^
|
|
13
|
+
"houdini-react": "^HOUDINI_REACT_VERSION",
|
|
14
|
+
"houdini-adapter-auto": "^HOUDINI_ADAPTER_VERSION",
|
|
15
15
|
"react": "^19.0.0",
|
|
16
16
|
"react-dom": "^19.0.0",
|
|
17
|
-
"graphql-yoga": "
|
|
17
|
+
"graphql-yoga": "^5.21.1",
|
|
18
18
|
"graphql": "^16.0.0",
|
|
19
|
-
"@whatwg-node/server": "^0.
|
|
19
|
+
"@whatwg-node/server": "^0.11.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/react": "^19.0.7",
|
|
23
23
|
"@types/react-dom": "^19.0.3",
|
|
24
|
-
"@vitejs/plugin-react": "^
|
|
25
|
-
"typescript": "^
|
|
26
|
-
"vite": "^
|
|
24
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
25
|
+
"typescript": "^6.0.0",
|
|
26
|
+
"vite": "^8.0.0"
|
|
27
27
|
},
|
|
28
28
|
"resolutions": {
|
|
29
29
|
"graphql": "^16.0.0",
|