Skip to content

Commit 32c6271

Browse files
committed
fix: normalize patterns to match
1 parent da4867d commit 32c6271

File tree

3 files changed

+33
-67
lines changed

3 files changed

+33
-67
lines changed

dependency_licenses.txt

Lines changed: 31 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -3610,7 +3610,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
36103610

36113611
-----
36123612

3613-
The following software may be included in this product: @isaacs/string-locale-compare, common-ancestor-path, mkdirp-infer-owner, promise-all-reject-late, promise-call-limit, promzard, walk-up-path. A copy of the source code may be downloaded from git+https://github.com/isaacs/string-locale-compare (@isaacs/string-locale-compare), git+https://github.com/isaacs/common-ancestor-path (common-ancestor-path), git+https://github.com/isaacs/mkdirp-infer-owner (mkdirp-infer-owner), git+https://github.com/isaacs/promise-call-limit (promise-call-limit), git://github.com/isaacs/promzard (promzard), git+https://github.com/isaacs/walk-up-path (walk-up-path). This software contains the following license and notice below:
3613+
The following software may be included in this product: @isaacs/string-locale-compare, common-ancestor-path, inflight, mkdirp-infer-owner, promise-all-reject-late, promise-call-limit, promzard, walk-up-path. A copy of the source code may be downloaded from git+https://github.com/isaacs/string-locale-compare (@isaacs/string-locale-compare), git+https://github.com/isaacs/common-ancestor-path (common-ancestor-path), https://github.com/npm/inflight.git (inflight), git+https://github.com/isaacs/mkdirp-infer-owner (mkdirp-infer-owner), git+https://github.com/isaacs/promise-call-limit (promise-call-limit), git://github.com/isaacs/promzard (promzard), git+https://github.com/isaacs/walk-up-path (walk-up-path). This software contains the following license and notice below:
36143614

36153615
The ISC License
36163616

@@ -5230,7 +5230,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
52305230

52315231
-----
52325232

5233-
The following software may be included in this product: ansi-regex, ansi-styles, arrify, caller-callsite, caller-path, callsites, chalk, cli-cursor, decamelize, detect-indent, escape-string-regexp, figures, find-up, git-remote-origin-url, has-ansi, import-fresh, is-fullwidth-code-point, is-plain-obj, is-stream, is-text-path, load-json-file, locate-path, map-obj, modify-values, npm-run-path, object-assign, onetime, os-tmpdir, p-finally, p-locate, p-try, path-exists, path-key, pify, repeating, resolve-from, restore-cursor, shebang-regex, strip-ansi, strip-bom, strip-eof, strip-json-comments, supports-color, temp-dir, trim-right. A copy of the source code may be downloaded from https://github.com/chalk/ansi-regex.git (ansi-regex), https://github.com/chalk/ansi-styles.git (ansi-styles), https://github.com/sindresorhus/arrify.git (arrify), https://github.com/sindresorhus/caller-callsite.git (caller-callsite), https://github.com/sindresorhus/caller-path.git (caller-path), https://github.com/sindresorhus/callsites.git (callsites), https://github.com/chalk/chalk.git (chalk), https://github.com/sindresorhus/cli-cursor.git (cli-cursor), https://github.com/sindresorhus/decamelize.git (decamelize), https://github.com/sindresorhus/detect-indent.git (detect-indent), https://github.com/sindresorhus/escape-string-regexp.git (escape-string-regexp), https://github.com/sindresorhus/figures.git (figures), https://github.com/sindresorhus/find-up.git (find-up), https://github.com/sindresorhus/git-remote-origin-url.git (git-remote-origin-url), https://github.com/sindresorhus/has-ansi.git (has-ansi), https://github.com/sindresorhus/import-fresh.git (import-fresh), https://github.com/sindresorhus/is-fullwidth-code-point.git (is-fullwidth-code-point), https://github.com/sindresorhus/is-plain-obj.git (is-plain-obj), https://github.com/sindresorhus/is-stream.git (is-stream), https://github.com/sindresorhus/is-text-path.git (is-text-path), https://github.com/sindresorhus/load-json-file.git (load-json-file), https://github.com/sindresorhus/locate-path.git (locate-path), https://github.com/sindresorhus/map-obj.git (map-obj), https://github.com/sindresorhus/modify-values.git (modify-values), https://github.com/sindresorhus/npm-run-path.git (npm-run-path), https://github.com/sindresorhus/object-assign.git (object-assign), https://github.com/sindresorhus/onetime.git (onetime), https://github.com/sindresorhus/os-tmpdir.git (os-tmpdir), https://github.com/sindresorhus/p-finally.git (p-finally), https://github.com/sindresorhus/p-locate.git (p-locate), https://github.com/sindresorhus/p-try.git (p-try), https://github.com/sindresorhus/path-exists.git (path-exists), https://github.com/sindresorhus/path-key.git (path-key), https://github.com/sindresorhus/pify.git (pify), https://github.com/sindresorhus/repeating.git (repeating), https://github.com/sindresorhus/resolve-from.git (resolve-from), https://github.com/sindresorhus/restore-cursor.git (restore-cursor), https://github.com/sindresorhus/shebang-regex.git (shebang-regex), https://github.com/chalk/strip-ansi.git (strip-ansi), https://github.com/sindresorhus/strip-bom.git (strip-bom), https://github.com/sindresorhus/strip-eof.git (strip-eof), https://github.com/sindresorhus/strip-json-comments.git (strip-json-comments), https://github.com/chalk/supports-color.git (supports-color), https://github.com/sindresorhus/temp-dir.git (temp-dir), https://github.com/sindresorhus/trim-right.git (trim-right). This software contains the following license and notice below:
5233+
The following software may be included in this product: ansi-regex, ansi-styles, arrify, caller-callsite, caller-path, callsites, chalk, cli-cursor, decamelize, detect-indent, escape-string-regexp, figures, find-up, git-remote-origin-url, has-ansi, import-fresh, is-fullwidth-code-point, is-plain-obj, is-stream, is-text-path, load-json-file, locate-path, map-obj, modify-values, npm-run-path, object-assign, onetime, os-tmpdir, p-finally, p-locate, p-try, path-exists, path-is-absolute, path-key, pify, repeating, resolve-from, restore-cursor, shebang-regex, strip-ansi, strip-bom, strip-eof, strip-json-comments, supports-color, temp-dir, trim-right. A copy of the source code may be downloaded from https://github.com/chalk/ansi-regex.git (ansi-regex), https://github.com/chalk/ansi-styles.git (ansi-styles), https://github.com/sindresorhus/arrify.git (arrify), https://github.com/sindresorhus/caller-callsite.git (caller-callsite), https://github.com/sindresorhus/caller-path.git (caller-path), https://github.com/sindresorhus/callsites.git (callsites), https://github.com/chalk/chalk.git (chalk), https://github.com/sindresorhus/cli-cursor.git (cli-cursor), https://github.com/sindresorhus/decamelize.git (decamelize), https://github.com/sindresorhus/detect-indent.git (detect-indent), https://github.com/sindresorhus/escape-string-regexp.git (escape-string-regexp), https://github.com/sindresorhus/figures.git (figures), https://github.com/sindresorhus/find-up.git (find-up), https://github.com/sindresorhus/git-remote-origin-url.git (git-remote-origin-url), https://github.com/sindresorhus/has-ansi.git (has-ansi), https://github.com/sindresorhus/import-fresh.git (import-fresh), https://github.com/sindresorhus/is-fullwidth-code-point.git (is-fullwidth-code-point), https://github.com/sindresorhus/is-plain-obj.git (is-plain-obj), https://github.com/sindresorhus/is-stream.git (is-stream), https://github.com/sindresorhus/is-text-path.git (is-text-path), https://github.com/sindresorhus/load-json-file.git (load-json-file), https://github.com/sindresorhus/locate-path.git (locate-path), https://github.com/sindresorhus/map-obj.git (map-obj), https://github.com/sindresorhus/modify-values.git (modify-values), https://github.com/sindresorhus/npm-run-path.git (npm-run-path), https://github.com/sindresorhus/object-assign.git (object-assign), https://github.com/sindresorhus/onetime.git (onetime), https://github.com/sindresorhus/os-tmpdir.git (os-tmpdir), https://github.com/sindresorhus/p-finally.git (p-finally), https://github.com/sindresorhus/p-locate.git (p-locate), https://github.com/sindresorhus/p-try.git (p-try), https://github.com/sindresorhus/path-exists.git (path-exists), https://github.com/sindresorhus/path-is-absolute.git (path-is-absolute), https://github.com/sindresorhus/path-key.git (path-key), https://github.com/sindresorhus/pify.git (pify), https://github.com/sindresorhus/repeating.git (repeating), https://github.com/sindresorhus/resolve-from.git (resolve-from), https://github.com/sindresorhus/restore-cursor.git (restore-cursor), https://github.com/sindresorhus/shebang-regex.git (shebang-regex), https://github.com/chalk/strip-ansi.git (strip-ansi), https://github.com/sindresorhus/strip-bom.git (strip-bom), https://github.com/sindresorhus/strip-eof.git (strip-eof), https://github.com/sindresorhus/strip-json-comments.git (strip-json-comments), https://github.com/chalk/supports-color.git (supports-color), https://github.com/sindresorhus/temp-dir.git (temp-dir), https://github.com/sindresorhus/trim-right.git (trim-right). This software contains the following license and notice below:
52345234

52355235
The MIT License (MIT)
52365236

@@ -13677,7 +13677,33 @@ The following software may be included in this product: glob. A copy of the sour
1367713677

1367813678
The ISC License
1367913679

13680-
Copyright (c) 2009-2023 Isaac Z. Schlueter and Contributors
13680+
Copyright (c) Isaac Z. Schlueter and Contributors
13681+
13682+
Permission to use, copy, modify, and/or distribute this software for any
13683+
purpose with or without fee is hereby granted, provided that the above
13684+
copyright notice and this permission notice appear in all copies.
13685+
13686+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13687+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13688+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13689+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13690+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13691+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
13692+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13693+
13694+
## Glob Logo
13695+
13696+
Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed
13697+
under a Creative Commons Attribution-ShareAlike 4.0 International License
13698+
https://creativecommons.org/licenses/by-sa/4.0/
13699+
13700+
-----
13701+
13702+
The following software may be included in this product: glob. A copy of the source code may be downloaded from git://github.com/isaacs/node-glob.git. This software contains the following license and notice below:
13703+
13704+
The ISC License
13705+
13706+
Copyright (c) 2009-2022 Isaac Z. Schlueter and Contributors
1368113707

1368213708
Permission to use, copy, modify, and/or distribute this software for any
1368313709
purpose with or without fee is hereby granted, provided that the above
@@ -16404,7 +16430,7 @@ The following software may be included in this product: minipass. A copy of the
1640416430

1640516431
The ISC License
1640616432

16407-
Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors
16433+
Copyright (c) 2017-2022 npm, Inc., Isaac Z. Schlueter, and Contributors
1640816434

1640916435
Permission to use, copy, modify, and/or distribute this software for any
1641016436
purpose with or without fee is hereby granted, provided that the above
@@ -16424,7 +16450,7 @@ The following software may be included in this product: minipass. A copy of the
1642416450

1642516451
The ISC License
1642616452

16427-
Copyright (c) 2017-2022 npm, Inc., Isaac Z. Schlueter, and Contributors
16453+
Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors
1642816454

1642916455
Permission to use, copy, modify, and/or distribute this software for any
1643016456
purpose with or without fee is hereby granted, provided that the above
@@ -17601,66 +17627,6 @@ THE SOFTWARE.
1760117627

1760217628
-----
1760317629

17604-
The following software may be included in this product: path-scurry. A copy of the source code may be downloaded from git+https://github.com/isaacs/path-scurry. This software contains the following license and notice below:
17605-
17606-
# Blue Oak Model License
17607-
17608-
Version 1.0.0
17609-
17610-
## Purpose
17611-
17612-
This license gives everyone as much permission to work with
17613-
this software as possible, while protecting contributors
17614-
from liability.
17615-
17616-
## Acceptance
17617-
17618-
In order to receive this license, you must agree to its
17619-
rules. The rules of this license are both obligations
17620-
under that agreement and conditions to your license.
17621-
You must not do anything with this software that triggers
17622-
a rule that you cannot or will not follow.
17623-
17624-
## Copyright
17625-
17626-
Each contributor licenses you to do everything with this
17627-
software that would otherwise infringe that contributor's
17628-
copyright in it.
17629-
17630-
## Notices
17631-
17632-
You must ensure that everyone who gets a copy of
17633-
any part of this software from you, with or without
17634-
changes, also gets the text of this license or a link to
17635-
<https://blueoakcouncil.org/license/1.0.0>.
17636-
17637-
## Excuse
17638-
17639-
If anyone notifies you in writing that you have not
17640-
complied with [Notices](#notices), you can keep your
17641-
license by taking all practical steps to comply within 30
17642-
days after the notice. If you do not do so, your license
17643-
ends immediately.
17644-
17645-
## Patent
17646-
17647-
Each contributor licenses you to do everything with this
17648-
software that would otherwise infringe any patent claims
17649-
they can license or become able to license.
17650-
17651-
## Reliability
17652-
17653-
No contributor can revoke this license.
17654-
17655-
## No Liability
17656-
17657-
***As far as the law allows, this software comes as is,
17658-
without any warranty or condition, and no contributor
17659-
will be liable to anyone for any damages related to this
17660-
software or this license, under any kind of legal claim.***
17661-
17662-
-----
17663-
1766417630
The following software may be included in this product: picocolors. A copy of the source code may be downloaded from https://github.com/alexeyraspopov/picocolors.git. This software contains the following license and notice below:
1766517631

1766617632
ISC License

packages/amplify-codegen/src/commands/models.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function loadSchema(apiResourcePath) {
305305
}
306306
if (fs.pathExistsSync(schemaDirectory) && fs.lstatSync(schemaDirectory).isDirectory()) {
307307
// search recursively for graphql schema files inside `schema` directory
308-
const schemas = globby.sync([path.join(schemaDirectory, '**/*.graphql')]);
308+
const schemas = globby.sync([path.join(schemaDirectory, '**/*.graphql')].map((path) => path.replace(/\\/g, '/')));
309309
return schemas.map(file => fs.readFileSync(file, 'utf8')).join('\n');
310310
}
311311

packages/amplify-codegen/src/commands/types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function generateTypes(context, forceDownloadSchema, withoutInit = false,
5858
const target = cfg.amplifyExtension.codeGenTarget;
5959

6060
const excludes = cfg.excludes.map(pattern => `!${pattern}`);
61-
const queryFilePaths = globby.sync([...includeFiles, ...excludes], {
61+
const queryFilePaths = globby.sync([...includeFiles, ...excludes].map((path) => path.replace(/\\/g, '/')), {
6262
cwd: projectPath,
6363
absolute: true,
6464
});

0 commit comments

Comments
 (0)