Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🔧 Update `engines.node` in package.json * ✨ Add `module` type to package.json * ⬆️ Bump outdated dependencies * ♻️ Migrate to ESModules * ✅ Fix jest config * ✅ Fix tests in ESM (#925) * 🔧 Use babel-plugin-module-extension-resolver` * 🐛 Migrate from require to readFileSync. * ✅ Import mockProcessExit from jest-mock-process. * ✅ Use dynamic imports instead of require. * ♻️ Extract `getFile` function for configuration vault Co-authored-by: Aadit M Shah <aaditmshah@aadit.codes>
- Loading branch information
1 parent
2782bd6
commit b8baee0
Showing
20 changed files
with
1,340 additions
and
1,261 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,30 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-flow" | ||
], | ||
"plugins": [ | ||
[ | ||
"module-resolver", | ||
{ | ||
"alias": { | ||
"@utils": "./src/utils", | ||
"@commands": "./src/commands", | ||
"@constants": "./src/constants" | ||
} | ||
} | ||
], | ||
"@babel/plugin-syntax-import-assertions", | ||
"module-extension-resolver" | ||
], | ||
"env": { | ||
"test": { | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-flow" | ||
], | ||
"plugins": [ | ||
"babel-plugin-transform-import-meta" | ||
] | ||
} | ||
} | ||
} |
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,5 +1,5 @@ | ||
// @flow | ||
import execa from 'execa' | ||
import { execa } from 'execa' | ||
import fs from 'fs' | ||
import chalk from 'chalk' | ||
|
||
|
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
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
Oops, something went wrong.