@yannick-z/modulo 0.3.5 → 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 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.4"
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/dist/938.js CHANGED
@@ -249,7 +249,7 @@ async function get_global_config(args) {
249
249
  pages: resolve(src, _config.input.pages),
250
250
  src: src
251
251
  };
252
- const dist = resolve(config_root, _config.output.dist);
252
+ const dist = resolve(config_root, _config.output.distPath);
253
253
  const output = {
254
254
  ..._config.output,
255
255
  dist: dist,
package/package.json CHANGED
@@ -2,11 +2,12 @@
2
2
  "name": "@yannick-z/modulo",
3
3
  "description": "",
4
4
  "type": "module",
5
- "version": "0.3.5",
5
+ "version": "0.3.7",
6
6
  "main": "./dist/index.js",
7
+ "types": "./types/src/index.d.ts",
7
8
  "author": "oyangxiao",
8
9
  "scripts": {
9
- "build": "rslib build",
10
+ "build": "rslib build && tsc --emitDeclarationOnly",
10
11
  "lint": "biome lint src bin rslib.config.ts",
11
12
  "format": "biome format --write src bin rslib.config.ts package.json biome.json",
12
13
  "check": "biome check --write src bin rslib.config.ts package.json biome.json"
@@ -28,6 +29,7 @@
28
29
  "@rsbuild/plugin-react": "^1.4.5",
29
30
  "@rsbuild/plugin-vue2": "^1.1.0",
30
31
  "@rslib/core": "^0.19.6",
32
+ "@types/minimist": "^1.2.5",
31
33
  "@types/node": "^24.0.0",
32
34
  "cac": "^6.7.14",
33
35
  "picocolors": "^1.1.1",
@@ -139,7 +139,7 @@ export async function get_global_config(
139
139
  /**
140
140
  * dist目录
141
141
  */
142
- const dist = resolve(root, _config.output.dist);
142
+ const dist = resolve(root, _config.output.distPath);
143
143
  const output = {
144
144
  ..._config.output,
145
145
  dist: dist,