-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
479 additions
and
76 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
|
@@ -16,3 +16,4 @@ node_modules/ | |
npm-debug.log | ||
lerna-debug.log | ||
**/tsconfig.tsbuildinfo | ||
**/*.tsbuildinfo |
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,12 +1,2 @@ | ||
|
||
module.exports = { | ||
presets: [ | ||
require.resolve('@babel/preset-env'), | ||
require.resolve('@babel/preset-flow'), | ||
require.resolve('@babel/preset-react'), | ||
], | ||
plugins: [ | ||
require.resolve('@babel/plugin-proposal-class-properties'), | ||
require.resolve('@babel/plugin-syntax-dynamic-import'), | ||
], | ||
}; | ||
module.exports = require('../../babel.config') |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./babel.config') |
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,13 +1 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
require.resolve('@babel/preset-env'), | ||
{ | ||
targets: '> 0.25%, not dead', | ||
}, | ||
], | ||
require.resolve('@babel/preset-flow'), | ||
require.resolve('@babel/preset-react'), | ||
], | ||
plugins: [require.resolve('@babel/plugin-proposal-class-properties')], | ||
}; | ||
module.exports = require('../../babel.config') |
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
19 changes: 19 additions & 0 deletions
19
packages/graphql-language-service-interface/tsconfig.esm.json
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,19 @@ | ||
{ | ||
"extends": "../../resources/tsconfig.base.esm.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./esm", | ||
"composite": true | ||
}, | ||
"references": [ | ||
{ | ||
"path": "../graphql-language-service-parser" | ||
}, | ||
{ | ||
"path": "../graphql-language-service-types" | ||
}, | ||
{ | ||
"path": "../graphql-language-service-utils" | ||
} | ||
] | ||
} |
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,19 @@ | ||
{ | ||
"extends": "../../tsconfig.base", | ||
"extends": "../../resources/tsconfig.base.cjs.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
} | ||
"composite": true | ||
}, | ||
"references": [ | ||
{ | ||
"path": "../graphql-language-service-parser" | ||
}, | ||
{ | ||
"path": "../graphql-language-service-types" | ||
}, | ||
{ | ||
"path": "../graphql-language-service-utils" | ||
} | ||
] | ||
} |
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
13 changes: 13 additions & 0 deletions
13
packages/graphql-language-service-parser/tsconfig.esm.json
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,13 @@ | ||
{ | ||
"extends": "../../resources/tsconfig.base.esm.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./esm", | ||
"composite": true | ||
}, | ||
"references": [ | ||
{ | ||
"path": "../graphql-language-service-types" | ||
} | ||
] | ||
} |
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,13 @@ | ||
{ | ||
"extends": "../../tsconfig.base", | ||
"extends": "../../resources/tsconfig.base.cjs.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist" | ||
} | ||
"outDir": "./dist", | ||
"composite": true | ||
}, | ||
"references": [ | ||
{ | ||
"path": "../graphql-language-service-types" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../../resources/tsconfig.base.esm.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./esm", | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../../resources/tsconfig.base.esm.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./esm", | ||
} | ||
} |
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,30 @@ | ||
const copy = require('copy'); | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const os = require('os'); | ||
|
||
const tmpDir = os.tmpdir(); | ||
const [, , src, dest, destExtension] = process.argv; | ||
if (!src || !dest || !destExtension) { | ||
console.error( | ||
`\nMissing arguments.\n\nUsage:\nnode renameFileExtensions.js './dist/**/*.js' './dest-dir' .new.extension.js`, | ||
); | ||
process.exit(1); | ||
} | ||
|
||
const tempDirectory = fs.mkdtempSync(`${tmpDir}${path.sep}`); | ||
|
||
copy(src, tempDirectory, (error, files) => { | ||
if (error) { | ||
throw error; | ||
} | ||
files.forEach(file => { | ||
if (file.dest) { | ||
const srcExt = path.parse(file.dest).ext; | ||
const destinationPath = file.dest | ||
.replace(srcExt, destExtension) | ||
.replace(tempDirectory, dest); | ||
fs.renameSync(file.dest, path.resolve(destinationPath)); | ||
} | ||
}); | ||
}); |
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,6 @@ | ||
{ | ||
"extends": "./tsconfig.base.cjs.json", | ||
"compilerOptions": { | ||
"module": "esnext" | ||
} | ||
} |
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,21 @@ | ||
{ | ||
"compilerOptions": { | ||
"composite": true | ||
}, | ||
"files": [], | ||
"include": [], | ||
"references": [ | ||
{ | ||
"path": "../packages/graphql-language-service-utils" | ||
}, | ||
{ | ||
"path": "../packages/graphql-language-service-types" | ||
}, | ||
{ | ||
"path": "../packages/graphql-language-service-parser" | ||
}, | ||
{ | ||
"path": "../packages/graphql-language-service-interface" | ||
} | ||
] | ||
} |
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,21 @@ | ||
{ | ||
"compilerOptions": { | ||
"composite": true | ||
}, | ||
"files": [], | ||
"include": [], | ||
"references": [ | ||
{ | ||
"path": "../packages/graphql-language-service-utils/tsconfig.esm.json" | ||
}, | ||
{ | ||
"path": "../packages/graphql-language-service-types/tsconfig.esm.json" | ||
}, | ||
{ | ||
"path": "../packages/graphql-language-service-parser/tsconfig.esm.json" | ||
}, | ||
{ | ||
"path": "../packages/graphql-language-service-interface/tsconfig.esm.json" | ||
} | ||
] | ||
} |
Oops, something went wrong.