@graphql-codegen/cli 5.0.1-alpha-20231026070541-cb05739d0 → 5.0.1-alpha-20231026110906-739a9e416
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/cjs/utils/watcher.js +2 -6
- package/esm/utils/watcher.js +2 -6
- package/package.json +3 -4
package/cjs/utils/watcher.js
CHANGED
|
@@ -40,7 +40,7 @@ const createWatcher = (initialContext, onNext) => {
|
|
|
40
40
|
parcelWatcher = await Promise.resolve().then(() => tslib_1.__importStar(require('@parcel/watcher')));
|
|
41
41
|
}
|
|
42
42
|
catch (err) {
|
|
43
|
-
log(`
|
|
43
|
+
log(`Parcel watcher not found. To use this feature, please make sure to provide @parcel/watcher as a peer dependency.`);
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
(0, debugging_js_1.debugLog)(`[Watcher] Parcel watcher loaded...`);
|
|
@@ -176,11 +176,7 @@ const findHighestCommonDirectory = async (files) => {
|
|
|
176
176
|
// e.g. mm.scan("/**/foo/bar").base -> "/" ; mm.scan("/foo/bar/**/fizz/*.graphql") -> /foo/bar
|
|
177
177
|
const dirPaths = files
|
|
178
178
|
.map(filePath => ((0, path_1.isAbsolute)(filePath) ? filePath : (0, path_1.resolve)(filePath)))
|
|
179
|
-
|
|
180
|
-
.map(patterned => patterned.replace(/\\/g, '/'))
|
|
181
|
-
.map(patterned => micromatch_1.default.scan(patterned).base)
|
|
182
|
-
// revert the separators to the platform-supported ones
|
|
183
|
-
.map(base => base.replace(/\//g, path_1.sep));
|
|
179
|
+
.map(patterned => micromatch_1.default.scan(patterned).base);
|
|
184
180
|
// Return longest common prefix if it's accessible, otherwise process.cwd()
|
|
185
181
|
return (async (maybeValidPath) => {
|
|
186
182
|
(0, debugging_js_1.debugLog)(`[Watcher] Longest common prefix of all files: ${maybeValidPath}...`);
|
package/esm/utils/watcher.js
CHANGED
|
@@ -36,7 +36,7 @@ export const createWatcher = (initialContext, onNext) => {
|
|
|
36
36
|
parcelWatcher = await import('@parcel/watcher');
|
|
37
37
|
}
|
|
38
38
|
catch (err) {
|
|
39
|
-
log(`
|
|
39
|
+
log(`Parcel watcher not found. To use this feature, please make sure to provide @parcel/watcher as a peer dependency.`);
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
debugLog(`[Watcher] Parcel watcher loaded...`);
|
|
@@ -171,11 +171,7 @@ const findHighestCommonDirectory = async (files) => {
|
|
|
171
171
|
// e.g. mm.scan("/**/foo/bar").base -> "/" ; mm.scan("/foo/bar/**/fizz/*.graphql") -> /foo/bar
|
|
172
172
|
const dirPaths = files
|
|
173
173
|
.map(filePath => (isAbsolute(filePath) ? filePath : resolve(filePath)))
|
|
174
|
-
|
|
175
|
-
.map(patterned => patterned.replace(/\\/g, '/'))
|
|
176
|
-
.map(patterned => mm.scan(patterned).base)
|
|
177
|
-
// revert the separators to the platform-supported ones
|
|
178
|
-
.map(base => base.replace(/\//g, sep));
|
|
174
|
+
.map(patterned => mm.scan(patterned).base);
|
|
179
175
|
// Return longest common prefix if it's accessible, otherwise process.cwd()
|
|
180
176
|
return (async (maybeValidPath) => {
|
|
181
177
|
debugLog(`[Watcher] Longest common prefix of all files: ${maybeValidPath}...`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "5.0.1-alpha-
|
|
3
|
+
"version": "5.0.1-alpha-20231026110906-739a9e416",
|
|
4
4
|
"peerDependenciesMeta": {
|
|
5
5
|
"@parcel/watcher": {
|
|
6
6
|
"optional": true
|
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
"@babel/generator": "^7.18.13",
|
|
15
15
|
"@babel/template": "^7.18.10",
|
|
16
16
|
"@babel/types": "^7.18.13",
|
|
17
|
-
"@graphql-codegen/
|
|
18
|
-
"@graphql-codegen/
|
|
19
|
-
"@graphql-codegen/plugin-helpers": "5.0.2-alpha-20231026070541-cb05739d0",
|
|
17
|
+
"@graphql-codegen/core": "4.0.1-alpha-20231026110906-739a9e416",
|
|
18
|
+
"@graphql-codegen/plugin-helpers": "5.0.2-alpha-20231026110906-739a9e416",
|
|
20
19
|
"@graphql-tools/apollo-engine-loader": "^8.0.0",
|
|
21
20
|
"@graphql-tools/code-file-loader": "^8.0.0",
|
|
22
21
|
"@graphql-tools/git-loader": "^8.0.0",
|