-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* should be good add cosmiconfig-typescript-loader to devdeps fix set node 14 in ci, clean eslint errors * add friendly error * clean peerDeps * simplify * Update .changeset/four-frogs-flash.md * just spread args
- Loading branch information
1 parent
d01b878
commit b52dc1b
Showing
11 changed files
with
118 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'graphql-config': minor | ||
--- | ||
|
||
move `cosmiconfig-typescript-loader` in `peerDependencyMeta` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* eslint-disable no-console */ | ||
import { writeFile, readFile } from 'node:fs/promises'; | ||
import path from 'node:path'; | ||
|
||
const filePath = path.resolve(process.cwd(), 'dist/esm/helpers/cosmiconfig.js'); | ||
|
||
console.time('done'); | ||
const content = await readFile(filePath, 'utf8'); | ||
|
||
await writeFile( | ||
filePath, | ||
` | ||
import { createRequire } from 'module'; | ||
const require = createRequire(import.meta.url); | ||
${content}`.trimStart(), | ||
); | ||
console.timeEnd('done'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export { Source, Loader } from '@graphql-tools/utils'; | ||
export { GraphQLConfig, loadConfig, loadConfigSync } from './config.js'; | ||
export { GraphQLProjectConfig } from './project-config.js'; | ||
export { GraphQLExtensionDeclaration } from './extension.js'; | ||
export { Source, Loader } from '@graphql-tools/utils'; | ||
export * from './types.js'; | ||
export * from './errors.js'; | ||
export { LoadersRegistry } from './loaders.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.