@yannick-z/modulo 0.3.6 → 0.3.7
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/bin/modulo.js +0 -10
- package/dist/131.js +1 -1
- package/package.json +2 -3
package/bin/modulo.js
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const requiredVersion = 24;
|
|
4
|
-
const currentVersion = process.version.match(/^v(\d+)/)?.[1];
|
|
5
|
-
|
|
6
|
-
if (!currentVersion || parseInt(currentVersion, 10) < requiredVersion) {
|
|
7
|
-
console.error(
|
|
8
|
-
`\x1b[31mError: Node.js version ${process.version} is not supported. Please use Node.js v${requiredVersion} or higher.\x1b[0m`,
|
|
9
|
-
);
|
|
10
|
-
process.exit(1);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
3
|
import("../src/index.ts")
|
|
14
4
|
.then((module) => {
|
|
15
5
|
// console.log("\nsupport ts, use Typescript code\n");
|
package/dist/131.js
CHANGED
|
@@ -27,7 +27,7 @@ const logger = {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
var package_namespaceObject = {
|
|
30
|
-
rE: "0.3.
|
|
30
|
+
rE: "0.3.6"
|
|
31
31
|
};
|
|
32
32
|
const cli = cac("modulo");
|
|
33
33
|
cli.command("init <target>", "Initialize modulo configuration or scripts").option("-f, --force", "Force overwrite existing files").option("--path <path>", "Specify the path to initialize").option("--preset <preset>", "Specify the preset to use").action((target, options)=>{
|
package/package.json
CHANGED
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
"name": "@yannick-z/modulo",
|
|
3
3
|
"description": "",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.7",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./types/src/index.d.ts",
|
|
8
8
|
"author": "oyangxiao",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build": "rslib build && tsc",
|
|
11
|
-
"build.d.ts": "tsc --emitDeclarationOnly",
|
|
10
|
+
"build": "rslib build && tsc --emitDeclarationOnly",
|
|
12
11
|
"lint": "biome lint src bin rslib.config.ts",
|
|
13
12
|
"format": "biome format --write src bin rslib.config.ts package.json biome.json",
|
|
14
13
|
"check": "biome check --write src bin rslib.config.ts package.json biome.json"
|