@rslib/core 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. package/dist/main.js +23 -61
  2. package/package.json +2 -2
package/dist/main.js CHANGED
@@ -39,44 +39,20 @@ return module.exports;
39
39
 
40
40
  }
41
41
 
42
- /************************************************************************/
43
- // webpack/runtime/define_property_getters
44
- !function() {
45
- __webpack_require__.d = function(exports, definition) {
46
- for(var key in definition) {
47
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
48
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
49
- }
50
- }
51
- };
52
- }();
53
- // webpack/runtime/has_own_property
54
- !function() {
55
- __webpack_require__.o = function (obj, prop) {
56
- return Object.prototype.hasOwnProperty.call(obj, prop);
57
- };
58
-
59
- }();
60
42
  /************************************************************************/
61
43
 
62
44
  ;// CONCATENATED MODULE: external "process"
63
45
 
64
- var external_process_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
65
- var external_process_y = x => () => x
66
- var external_process_namespaceObject = __WEBPACK_EXTERNAL_MODULE_process__;
67
-
46
+ var external_process_namespaceObject = __WEBPACK_EXTERNAL_MODULE_process__;
47
+
68
48
  ;// CONCATENATED MODULE: external "os"
69
49
 
70
- var external_os_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
71
- var external_os_y = x => () => x
72
- var external_os_namespaceObject = __WEBPACK_EXTERNAL_MODULE_os__;
73
-
50
+ var external_os_namespaceObject = __WEBPACK_EXTERNAL_MODULE_os__;
51
+
74
52
  ;// CONCATENATED MODULE: external "tty"
75
53
 
76
- var external_tty_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
77
- var external_tty_y = x => () => x
78
- var external_tty_namespaceObject = __WEBPACK_EXTERNAL_MODULE_tty__;
79
-
54
+ var external_tty_namespaceObject = __WEBPACK_EXTERNAL_MODULE_tty__;
55
+
80
56
  ;// CONCATENATED MODULE: ../../node_modules/.pnpm/rslog@1.2.2/node_modules/rslog/dist/index.mjs
81
57
  // node_modules/.pnpm/supports-color@9.4.0/node_modules/supports-color/index.js
82
58
 
@@ -374,28 +350,20 @@ var dist_logger = createLogger();
374
350
 
375
351
  ;// CONCATENATED MODULE: external "node:fs"
376
352
 
377
- var external_node_fs_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
378
- var external_node_fs_y = x => () => x
379
- var external_node_fs_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_fs__;
380
-
353
+ var external_node_fs_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_fs__;
354
+
381
355
  ;// CONCATENATED MODULE: external "node:fs/promises"
382
356
 
383
- var promises_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
384
- var promises_y = x => () => x
385
- var promises_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_fs_promises__;
386
-
357
+ var promises_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_fs_promises__;
358
+
387
359
  ;// CONCATENATED MODULE: external "node:path"
388
360
 
389
- var external_node_path_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
390
- var external_node_path_y = x => () => x
391
- var external_node_path_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_path__;
392
-
361
+ var external_node_path_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_path__;
362
+
393
363
  ;// CONCATENATED MODULE: external "../compiled/picocolors/index.js"
394
364
 
395
- var index_js_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
396
- var index_js_y = x => () => x
397
- var index_js_namespaceObject = __WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js__;
398
-
365
+ var index_js_namespaceObject = __WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js__;
366
+
399
367
  ;// CONCATENATED MODULE: ./src/utils/helper.ts
400
368
 
401
369
 
@@ -557,27 +525,21 @@ function prepareCli() {
557
525
  if (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) {
558
526
  console.log();
559
527
  }
560
- dist_logger.greet(` ${`Rslib v${"0.0.1"}`}\n`);
528
+ dist_logger.greet(` ${`Rslib v${"0.0.2"}`}\n`);
561
529
  }
562
530
 
563
531
  ;// CONCATENATED MODULE: external "../compiled/commander/index.js"
564
532
 
565
- var commander_index_js_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
566
- var commander_index_js_y = x => () => x
567
- var commander_index_js_namespaceObject = __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js__;
568
-
533
+ var commander_index_js_namespaceObject = __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js__;
534
+
569
535
  ;// CONCATENATED MODULE: external "@rsbuild/core"
570
536
 
571
- var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
572
- var core_y = x => () => x
573
- var core_namespaceObject = __WEBPACK_EXTERNAL_MODULE__rsbuild_core__;
574
-
537
+ var core_namespaceObject = __WEBPACK_EXTERNAL_MODULE__rsbuild_core__;
538
+
575
539
  ;// CONCATENATED MODULE: external "../compiled/fast-glob/index.js"
576
540
 
577
- var fast_glob_index_js_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
578
- var fast_glob_index_js_y = x => () => x
579
- var fast_glob_index_js_namespaceObject = __WEBPACK_EXTERNAL_MODULE__compiled_fast_glob_index_js__;
580
-
541
+ var fast_glob_index_js_namespaceObject = __WEBPACK_EXTERNAL_MODULE__compiled_fast_glob_index_js__;
542
+
581
543
  ;// CONCATENATED MODULE: ./src/constant.ts
582
544
  const DEFAULT_CONFIG_NAME = 'rslib.config';
583
545
  const DEFAULT_EXTENSIONS = [
@@ -1228,7 +1190,7 @@ const applyCommonOptions = (command)=>{
1228
1190
  command.option('-c --config <config>', 'specify the configuration file, can be a relative or absolute path').option('--env-mode <mode>', 'specify the env mode to load the `.env.[mode]` file');
1229
1191
  };
1230
1192
  function runCli() {
1231
- commander_index_js_namespaceObject.program.name('rslib').usage('<command> [options]').version("0.0.1");
1193
+ commander_index_js_namespaceObject.program.name('rslib').usage('<command> [options]').version("0.0.2");
1232
1194
  const buildCommand = commander_index_js_namespaceObject.program.command('build');
1233
1195
  const inspectCommand = commander_index_js_namespaceObject.program.command('inspect');
1234
1196
  [
@@ -1271,6 +1233,6 @@ function runCli() {
1271
1233
 
1272
1234
 
1273
1235
 
1274
- const src_version = "0.0.1";
1236
+ const src_version = "0.0.2";
1275
1237
 
1276
1238
  export { build, defineConfig, loadConfig, dist_logger as logger, prepareCli, runCli, src_version as version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rslib/core",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "The Rspack-based library build tool.",
5
5
  "homepage": "https://rslib.dev",
6
6
  "bugs": {
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@rsbuild/core": "1.0.1-beta.11",
36
- "rsbuild-plugin-dts": "0.0.1"
36
+ "rsbuild-plugin-dts": "0.0.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/fs-extra": "^11.0.4",