Change default CLI to legacy
This commit is contained in:
1 parent
e37198fc7f
commit
9e2c61817a
2 files changed
+4
-4
No files matched your search
+3
-3
@@ -14,11 +14,11 @@ var packageJson = require("../package.json");
|
||||
pleaseUpgradeNode(packageJson);
|
||||
|
||||
var dynamicImport = new Function("module", "return import(module)");
|
||||
if (process.env.PRETTIER_LEGACY_CLI) {
|
||||
if (process.env.PRETTIER_EXPERIMENTAL_CLI) {
|
||||
dynamicImport("@prettier/cli/bin");
|
||||
} else {
|
||||
var promise = dynamicImport("../src/cli/index.js").then(function runCli(cli) {
|
||||
return cli.run();
|
||||
});
|
||||
module.exports.__promise = promise;
|
||||
} else {
|
||||
dynamicImport("@prettier/cli/bin");
|
||||
}
|
||||
Reference in new issue
Block a user