@yannick-z/modulo 0.3.4 → 0.3.6

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/dist/131.js CHANGED
@@ -27,7 +27,7 @@ const logger = {
27
27
  }
28
28
  };
29
29
  var package_namespaceObject = {
30
- rE: "0.3.2"
30
+ rE: "0.3.5"
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/839.js CHANGED
@@ -376,7 +376,7 @@ async function page_pack(args) {
376
376
  output: {
377
377
  assetPrefix: config.url.cdn || config.url.base,
378
378
  distPath: {
379
- root: config.output.dist
379
+ root: config.output.distPath
380
380
  },
381
381
  externals,
382
382
  filenameHash: config.output.filenameHash,
package/dist/938.js CHANGED
@@ -122,7 +122,7 @@ const preset_input_dirs = {
122
122
  modules: "modules"
123
123
  };
124
124
  const preset_output_dirs = {
125
- dist: "dist",
125
+ distPath: "dist",
126
126
  pages: "",
127
127
  modules: "modules",
128
128
  filenameHash: true
@@ -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,13 @@
2
2
  "name": "@yannick-z/modulo",
3
3
  "description": "",
4
4
  "type": "module",
5
- "version": "0.3.4",
5
+ "version": "0.3.6",
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",
11
+ "build.d.ts": "tsc --emitDeclarationOnly",
10
12
  "lint": "biome lint src bin rslib.config.ts",
11
13
  "format": "biome format --write src bin rslib.config.ts package.json biome.json",
12
14
  "check": "biome check --write src bin rslib.config.ts package.json biome.json"
@@ -28,6 +30,7 @@
28
30
  "@rsbuild/plugin-react": "^1.4.5",
29
31
  "@rsbuild/plugin-vue2": "^1.1.0",
30
32
  "@rslib/core": "^0.19.6",
33
+ "@types/minimist": "^1.2.5",
31
34
  "@types/node": "^24.0.0",
32
35
  "cac": "^6.7.14",
33
36
  "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,
@@ -22,7 +22,7 @@ export const preset_input_dirs = {
22
22
  };
23
23
 
24
24
  export const preset_output_dirs = {
25
- dist: "dist", // 源码目录
25
+ distPath: "dist", // 源码目录
26
26
  pages: "", // 页面目录输出目录,默认使用dist/..
27
27
  modules: "modules", // 组件输出目录,默认使用dist/modules/..
28
28
  filenameHash: true,
@@ -50,7 +50,7 @@ export async function page_pack(args: ModuloArgs_Pack) {
50
50
  output: {
51
51
  assetPrefix: config.url.cdn || config.url.base,
52
52
  distPath: {
53
- root: config.output.dist,
53
+ root: config.output.distPath,
54
54
  },
55
55
  externals,
56
56
  filenameHash: config.output.filenameHash,