prettier 2.7.1 → 3.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +181 -1101
- package/{bin-prettier.js → bin/prettier.cjs} +10 -5
- package/doc.js +1432 -1305
- package/doc.mjs +1490 -0
- package/index.cjs +532 -0
- package/index.mjs +35778 -0
- package/{cli.js → internal/cli.mjs} +12236 -13897
- package/{third-party.js → internal/third-party.mjs} +704 -611
- package/package.json +140 -6
- package/plugins/acorn-and-espree.js +13 -0
- package/plugins/acorn-and-espree.mjs +13 -0
- package/plugins/angular.js +2 -0
- package/plugins/angular.mjs +2 -0
- package/plugins/babel.js +16 -0
- package/plugins/babel.mjs +16 -0
- package/plugins/flow.js +21 -0
- package/plugins/flow.mjs +21 -0
- package/plugins/glimmer.js +25 -0
- package/plugins/glimmer.mjs +25 -0
- package/plugins/graphql.js +9 -0
- package/plugins/graphql.mjs +9 -0
- package/plugins/html.js +29 -0
- package/plugins/html.mjs +29 -0
- package/plugins/markdown.js +39 -0
- package/plugins/markdown.mjs +39 -0
- package/plugins/meriyah.js +6 -0
- package/plugins/meriyah.mjs +6 -0
- package/plugins/postcss.js +50 -0
- package/plugins/postcss.mjs +50 -0
- package/plugins/typescript.js +242 -0
- package/plugins/typescript.mjs +242 -0
- package/plugins/yaml.js +148 -0
- package/plugins/yaml.mjs +148 -0
- package/standalone.js +75 -85
- package/standalone.mjs +106 -0
- package/esm/parser-angular.mjs +0 -2
- package/esm/parser-babel.mjs +0 -27
- package/esm/parser-espree.mjs +0 -26
- package/esm/parser-flow.mjs +0 -35
- package/esm/parser-glimmer.mjs +0 -27
- package/esm/parser-graphql.mjs +0 -15
- package/esm/parser-html.mjs +0 -36
- package/esm/parser-markdown.mjs +0 -76
- package/esm/parser-meriyah.mjs +0 -19
- package/esm/parser-postcss.mjs +0 -76
- package/esm/parser-typescript.mjs +0 -280
- package/esm/parser-yaml.mjs +0 -150
- package/esm/standalone.mjs +0 -116
- package/index.js +0 -37282
- package/parser-angular.js +0 -2
- package/parser-babel.js +0 -27
- package/parser-espree.js +0 -26
- package/parser-flow.js +0 -35
- package/parser-glimmer.js +0 -27
- package/parser-graphql.js +0 -15
- package/parser-html.js +0 -36
- package/parser-markdown.js +0 -76
- package/parser-meriyah.js +0 -19
- package/parser-postcss.js +0 -76
- package/parser-typescript.js +0 -280
- package/parser-yaml.js +0 -150
|
@@ -42,7 +42,9 @@ var require_please_upgrade_node = __commonJS({
|
|
|
42
42
|
if (opts.message) {
|
|
43
43
|
console.error(opts.message(requiredVersion));
|
|
44
44
|
} else {
|
|
45
|
-
console.error(
|
|
45
|
+
console.error(
|
|
46
|
+
pkg.name + " requires at least version " + requiredVersion + " of Node, please upgrade"
|
|
47
|
+
);
|
|
46
48
|
}
|
|
47
49
|
if (opts.hasOwnProperty("exitCode")) {
|
|
48
50
|
process.exit(opts.exitCode);
|
|
@@ -54,9 +56,12 @@ var require_please_upgrade_node = __commonJS({
|
|
|
54
56
|
}
|
|
55
57
|
});
|
|
56
58
|
|
|
57
|
-
// bin/prettier.
|
|
59
|
+
// bin/prettier.cjs
|
|
58
60
|
var pleaseUpgradeNode = require_please_upgrade_node();
|
|
59
|
-
var packageJson = require("
|
|
61
|
+
var packageJson = require("../package.json");
|
|
60
62
|
pleaseUpgradeNode(packageJson);
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
function runCli(cli) {
|
|
64
|
+
return cli.run(process.argv.slice(2));
|
|
65
|
+
}
|
|
66
|
+
var dynamicImport = new Function("module", "return import(module)");
|
|
67
|
+
module.exports.promise = dynamicImport("../internal/cli.mjs").then(runCli);
|