@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 +1 -1
- package/dist/839.js +1 -1
- package/dist/938.js +2 -2
- package/package.json +5 -2
- package/src/config/index.ts +1 -1
- package/src/config/presets.ts +1 -1
- package/src/packer/page.ts +1 -1
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.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
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
|
-
|
|
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.
|
|
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.
|
|
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",
|
package/src/config/index.ts
CHANGED
package/src/config/presets.ts
CHANGED
package/src/packer/page.ts
CHANGED
|
@@ -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.
|
|
53
|
+
root: config.output.distPath,
|
|
54
54
|
},
|
|
55
55
|
externals,
|
|
56
56
|
filenameHash: config.output.filenameHash,
|