@wix/create-new 0.0.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/README.md +3 -0
- package/bin/import.cjs +1 -0
- package/bin/index.cjs +34 -0
- package/build/index.js +3443 -0
- package/build/index.js.map +1 -0
- package/build/xdg-open +1267 -0
- package/build/yoga.wasm +0 -0
- package/package.json +43 -0
package/README.md
ADDED
package/bin/import.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import('../build/index.js');
|
package/bin/index.cjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
(function minimumNodeVersionCheck() {
|
|
4
|
+
const RED = '\x1B[0;31m';
|
|
5
|
+
const GREEN = '\x1B[0;32m';
|
|
6
|
+
const NO_COLOR = '\x1B[0m';
|
|
7
|
+
|
|
8
|
+
const colorize = (color, text) => `${color}${text}${NO_COLOR}`;
|
|
9
|
+
|
|
10
|
+
const versionParts = process.versions.node.split('.').map((v) => Number(v));
|
|
11
|
+
const major = versionParts[0];
|
|
12
|
+
const minor = versionParts[1];
|
|
13
|
+
|
|
14
|
+
if (major < 20 || (major === 20 && minor < 11)) {
|
|
15
|
+
const currentVersion = colorize(RED, process.versions.node);
|
|
16
|
+
const supportedVersion = colorize(GREEN, '20.11.0');
|
|
17
|
+
|
|
18
|
+
console.error(
|
|
19
|
+
`⛔️ Node version ${currentVersion} detected, minimum supported version is ${supportedVersion}`
|
|
20
|
+
);
|
|
21
|
+
console.error('');
|
|
22
|
+
console.error(
|
|
23
|
+
'Your current node version is lower than the minimum required for the CLI to work correctly.'
|
|
24
|
+
);
|
|
25
|
+
console.error(
|
|
26
|
+
'Make sure to update your node version to a compatible version.'
|
|
27
|
+
);
|
|
28
|
+
process.exit(1);
|
|
29
|
+
}
|
|
30
|
+
})();
|
|
31
|
+
|
|
32
|
+
process.setSourceMapsEnabled(true);
|
|
33
|
+
|
|
34
|
+
require('./import.cjs');
|