@rslib/core 0.4.0 → 0.5.0-alpha.0

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.
@@ -1,4 +1,4 @@
1
- import { Stats, Dirent, WatchEventType } from 'fs';
1
+ import { Dirent, Stats, WatchEventType } from 'fs';
2
2
  import { EventEmitter } from 'events';
3
3
  import { Readable } from 'stream';
4
4
 
package/dist/index.js CHANGED
@@ -160,7 +160,7 @@ function prepareCli() {
160
160
  initNodeEnv();
161
161
  const { npm_execpath } = process.env;
162
162
  if (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) console.log();
163
- __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.greet(` Rslib v0.4.0\n`);
163
+ __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.greet(` Rslib v0.5.0-alpha.0\n`);
164
164
  }
165
165
  const DEFAULT_CONFIG_NAME = 'rslib.config';
166
166
  const DEFAULT_CONFIG_EXTENSIONS = [
@@ -996,8 +996,8 @@ function pattern2regex(resolvedPattern, allowJs) {
996
996
  regexStr += '$';
997
997
  return new RegExp(regexStr);
998
998
  }
999
- function util_replaceTokens(tsconfig, configDir) {
1000
- return JSON.parse(JSON.stringify(tsconfig).replaceAll(/"\${configDir}/g, `"${util_native2posix(configDir)}`));
999
+ function util_replaceTokens(result) {
1000
+ if (result.tsconfig) result.tsconfig = JSON.parse(JSON.stringify(result.tsconfig).replaceAll(/"\${configDir}/g, `"${util_native2posix(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].dirname(result.tsconfigFile))}`));
1001
1001
  }
1002
1002
  async function find(filename, options) {
1003
1003
  let dir = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].dirname(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(filename));
@@ -1167,7 +1167,7 @@ async function parse(filename, options) {
1167
1167
  parseReferences(result, options)
1168
1168
  ]);
1169
1169
  }
1170
- result.tsconfig = util_replaceTokens(result.tsconfig, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].dirname(tsconfigFile));
1170
+ util_replaceTokens(result);
1171
1171
  resolve(util_resolveSolutionTSConfig(filename, result));
1172
1172
  } catch (e) {
1173
1173
  reject(e);
@@ -1213,6 +1213,7 @@ async function parseReferences(result, options) {
1213
1213
  await Promise.all(referenced.map((ref)=>parseExtends(ref, options?.cache)));
1214
1214
  referenced.forEach((ref)=>{
1215
1215
  ref.solution = result;
1216
+ util_replaceTokens(ref);
1216
1217
  });
1217
1218
  result.referenced = referenced;
1218
1219
  }
@@ -1382,6 +1383,18 @@ async function loadConfig({ cwd = process.cwd(), path, envMode }) {
1382
1383
  filePath: configFilePath
1383
1384
  };
1384
1385
  }
1386
+ const handleMatchedExternal = (value, request)=>{
1387
+ if ('boolean' == typeof value) return value;
1388
+ if ('string' == typeof value) {
1389
+ const [first, second] = value.split(' ');
1390
+ const hasType = !!second;
1391
+ const _request = second ? second : first;
1392
+ if (!hasType) return request === _request;
1393
+ return false;
1394
+ }
1395
+ if (Array.isArray(value)) return handleMatchedExternal(value[0] ?? '', request);
1396
+ return false;
1397
+ };
1385
1398
  const composeExternalsWarnConfig = (format, ...externalsArray)=>{
1386
1399
  if ('esm' !== format) return {};
1387
1400
  const externals = [];
@@ -1389,15 +1402,16 @@ const composeExternalsWarnConfig = (format, ...externalsArray)=>{
1389
1402
  else externals.push(e);
1390
1403
  const matchUserExternals = (externals, request, callback)=>{
1391
1404
  if ('string' == typeof externals) {
1392
- if (externals === request) {
1393
- callback(true);
1405
+ if (handleMatchedExternal(externals, request)) {
1406
+ callback(true, true);
1394
1407
  return;
1395
1408
  }
1396
- } else if (Array.isArray(externals)) {
1409
+ }
1410
+ if (Array.isArray(externals)) {
1397
1411
  let i = 0;
1398
1412
  const next = ()=>{
1399
1413
  let asyncFlag;
1400
- const handleExternalsAndCallback = (matched)=>{
1414
+ const handleExternalsAndCallback = (matched, shouldWarn)=>{
1401
1415
  if (!matched) {
1402
1416
  if (asyncFlag) {
1403
1417
  asyncFlag = false;
@@ -1405,42 +1419,43 @@ const composeExternalsWarnConfig = (format, ...externalsArray)=>{
1405
1419
  }
1406
1420
  return next();
1407
1421
  }
1408
- callback(matched);
1422
+ callback(matched, shouldWarn);
1409
1423
  };
1410
1424
  do {
1411
1425
  asyncFlag = true;
1412
- if (i >= externals.length) return callback();
1426
+ if (i >= externals.length) return callback(false);
1413
1427
  matchUserExternals(externals[i++], request, handleExternalsAndCallback);
1414
1428
  }while (!asyncFlag);
1415
1429
  asyncFlag = false;
1416
1430
  };
1417
1431
  next();
1418
1432
  return;
1419
- } else if (externals instanceof RegExp) {
1433
+ }
1434
+ if (externals instanceof RegExp) {
1420
1435
  if (externals.test(request)) {
1421
- callback(true);
1436
+ callback(true, true);
1422
1437
  return;
1423
1438
  }
1424
1439
  } else if ('function' == typeof externals) ;
1425
1440
  else if ('object' == typeof externals) {
1426
1441
  if (Object.prototype.hasOwnProperty.call(externals, request)) {
1427
- callback(true);
1442
+ handleMatchedExternal(externals[request], request) ? callback(true, true) : callback(true);
1428
1443
  return;
1429
1444
  }
1430
1445
  }
1431
- callback();
1446
+ callback(false);
1432
1447
  };
1433
1448
  return {
1434
1449
  output: {
1435
1450
  externals: [
1436
1451
  ({ request, dependencyType, contextInfo }, callback)=>{
1437
- let externalized = false;
1438
- const _callback = (matched)=>{
1439
- if (matched) externalized = true;
1452
+ let shouldWarn = false;
1453
+ const _callback = (_matched, _shouldWarn)=>{
1454
+ if (_shouldWarn) shouldWarn = true;
1440
1455
  };
1441
1456
  if (contextInfo.issuer && 'commonjs' === dependencyType) {
1442
1457
  matchUserExternals(externals, request, _callback);
1443
- if (externalized) __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.warn(composeModuleImportWarn(request));
1458
+ if (shouldWarn) __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.warn(composeModuleImportWarn(request));
1444
1459
  }
1445
1460
  callback();
1446
1461
  }
@@ -1801,8 +1816,8 @@ const composeShimsConfig = (format, shims)=>{
1801
1816
  tools: {
1802
1817
  rspack: {
1803
1818
  node: {
1804
- __dirname: !!resolvedShims.esm.__dirname && 'node-module',
1805
- __filename: !!resolvedShims.esm.__filename && 'node-module'
1819
+ __dirname: resolvedShims.esm.__dirname ? 'node-module' : false,
1820
+ __filename: resolvedShims.esm.__filename ? 'node-module' : false
1806
1821
  }
1807
1822
  }
1808
1823
  },
@@ -1917,12 +1932,12 @@ const traverseEntryQuery = (entry, callback)=>{
1917
1932
  };
1918
1933
  const appendEntryQuery = (entries)=>traverseEntryQuery(entries, (item)=>`${item}?${RSLIB_ENTRY_QUERY}`);
1919
1934
  const resolveEntryPath = (entries, root)=>traverseEntryQuery(entries, (item)=>__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(root, item));
1920
- const composeEntryConfig = async (rawEntry, bundle, root, cssModulesAuto)=>{
1935
+ const composeEntryConfig = async (rawEntry, bundle, root, cssModulesAuto, userOutBase)=>{
1921
1936
  let entries = rawEntry;
1922
1937
  if (!entries) {
1923
1938
  if (false !== bundle) return {
1924
1939
  entryConfig: {},
1925
- lcp: null
1940
+ outBase: null
1926
1941
  };
1927
1942
  entries = {
1928
1943
  index: 'src/**'
@@ -1949,11 +1964,16 @@ const composeEntryConfig = async (rawEntry, bundle, root, cssModulesAuto)=>{
1949
1964
  entry: appendEntryQuery(resolveEntryPath(entries, root))
1950
1965
  }
1951
1966
  },
1952
- lcp: null
1967
+ outBase: null
1953
1968
  };
1954
1969
  }
1955
- const scanGlobEntries = async (calcLcp)=>{
1970
+ const scanGlobEntries = async (tryResolveOutBase)=>{
1956
1971
  const resolvedEntries = {};
1972
+ const resolveOutBase = async (resolvedEntryFiles)=>{
1973
+ if (void 0 !== userOutBase) return __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].isAbsolute(userOutBase) ? userOutBase : __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(root, userOutBase);
1974
+ const lcp = await calcLongestCommonPath(resolvedEntryFiles) ?? root;
1975
+ return lcp;
1976
+ };
1957
1977
  for (const key of Object.keys(entries)){
1958
1978
  const entry = entries[key];
1959
1979
  const entryFiles = Array.isArray(entry) ? entry : 'string' == typeof entry ? [
@@ -1966,8 +1986,7 @@ const composeEntryConfig = async (rawEntry, bundle, root, cssModulesAuto)=>{
1966
1986
  });
1967
1987
  const resolvedEntryFiles = globEntryFiles.filter((i)=>!DTS_EXTENSIONS_PATTERN.test(i));
1968
1988
  if (0 === resolvedEntryFiles.length) throw new Error(`Cannot find ${resolvedEntryFiles}`);
1969
- const lcp = await calcLongestCommonPath(resolvedEntryFiles);
1970
- const outBase = null === lcp ? root : lcp;
1989
+ const outBase = await resolveOutBase(resolvedEntryFiles);
1971
1990
  function getEntryName(file) {
1972
1991
  const { dir, name } = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].parse(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].relative(outBase, file));
1973
1992
  const entryFileName = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(dir, name);
@@ -1976,23 +1995,23 @@ const composeEntryConfig = async (rawEntry, bundle, root, cssModulesAuto)=>{
1976
1995
  }
1977
1996
  for (const file of resolvedEntryFiles){
1978
1997
  const entryName = getEntryName(file);
1979
- if (resolvedEntries[entryName]) calcLcp && __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.warn(`Duplicate entry ${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__["default"].cyan(entryName)} from ${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__["default"].cyan(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].relative(root, file))} and ${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__["default"].cyan(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].relative(root, resolvedEntries[entryName]))}, which may lead to the incorrect output, please rename the file.`);
1998
+ if (resolvedEntries[entryName]) tryResolveOutBase && __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.warn(`Duplicate entry ${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__["default"].cyan(entryName)} from ${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__["default"].cyan(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].relative(root, file))} and ${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__["default"].cyan(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].relative(root, resolvedEntries[entryName]))}, which may lead to the incorrect output, please rename the file.`);
1980
1999
  resolvedEntries[entryName] = file;
1981
2000
  }
1982
2001
  }
1983
- if (calcLcp) {
1984
- const lcp = await calcLongestCommonPath(Object.values(resolvedEntries));
2002
+ if (tryResolveOutBase) {
2003
+ const outBase = await resolveOutBase(Object.values(resolvedEntries));
1985
2004
  return {
1986
2005
  resolvedEntries,
1987
- lcp
2006
+ outBase
1988
2007
  };
1989
2008
  }
1990
2009
  return {
1991
2010
  resolvedEntries,
1992
- lcp: null
2011
+ outBase: null
1993
2012
  };
1994
2013
  };
1995
- const { lcp } = await scanGlobEntries(true);
2014
+ const { outBase } = await scanGlobEntries(true);
1996
2015
  const entryConfig = {
1997
2016
  tools: {
1998
2017
  rspack: {
@@ -2005,7 +2024,7 @@ const composeEntryConfig = async (rawEntry, bundle, root, cssModulesAuto)=>{
2005
2024
  };
2006
2025
  return {
2007
2026
  entryConfig,
2008
- lcp
2027
+ outBase
2009
2028
  };
2010
2029
  };
2011
2030
  const composeBundlelessExternalConfig = (jsExtension, redirect, cssModulesAuto, bundle, rootPath)=>{
@@ -2074,7 +2093,7 @@ const composeBundlelessExternalConfig = (jsExtension, redirect, cssModulesAuto,
2074
2093
  };
2075
2094
  };
2076
2095
  const composeDtsConfig = async (libConfig, dtsExtension)=>{
2077
- const { format, autoExternal, banner, footer } = libConfig;
2096
+ const { format, autoExternal, banner, footer, redirect } = libConfig;
2078
2097
  let { dts } = libConfig;
2079
2098
  if (false === dts || void 0 === dts) return {};
2080
2099
  if (true === dts) dts = {
@@ -2091,7 +2110,8 @@ const composeDtsConfig = async (libConfig, dtsExtension)=>{
2091
2110
  dtsExtension: dts?.autoExtension ? dtsExtension : '.d.ts',
2092
2111
  autoExternal: getAutoExternalDefaultValue(format, autoExternal),
2093
2112
  banner: banner?.dts,
2094
- footer: footer?.dts
2113
+ footer: footer?.dts,
2114
+ redirect: redirect?.dts
2095
2115
  })
2096
2116
  ]
2097
2117
  };
@@ -2193,15 +2213,15 @@ async function composeLibRsbuildConfig(config, root, sharedPlugins) {
2193
2213
  pkgJson,
2194
2214
  userExternals: config.output?.externals
2195
2215
  });
2196
- const { entryConfig, lcp } = await composeEntryConfig(config.source?.entry, config.bundle, rootPath, cssModulesAuto);
2197
- const cssConfig = composeCssConfig(lcp, config.bundle, banner?.css, footer?.css);
2216
+ const { entryConfig, outBase } = await composeEntryConfig(config.source?.entry, config.bundle, rootPath, cssModulesAuto, config.outBase);
2217
+ const cssConfig = composeCssConfig(outBase, config.bundle, banner?.css, footer?.css);
2198
2218
  const assetConfig = composeAssetConfig(bundle, format);
2199
2219
  const entryChunkConfig = composeEntryChunkConfig({
2200
2220
  enabledImportMetaUrlShim: enabledShims.cjs['import.meta.url'],
2201
- contextToWatch: lcp
2221
+ contextToWatch: outBase
2202
2222
  });
2203
2223
  const dtsConfig = await composeDtsConfig(config, dtsExtension);
2204
- const externalsWarnConfig = composeExternalsWarnConfig(format, autoExternalConfig?.output?.externals, userExternalsConfig?.output?.externals);
2224
+ const externalsWarnConfig = composeExternalsWarnConfig(format, userExternalsConfig?.output?.externals, autoExternalConfig?.output?.externals);
2205
2225
  const minifyConfig = composeMinifyConfig(config);
2206
2226
  const bannerFooterConfig = composeBannerFooterConfig(banner, footer);
2207
2227
  const decoratorsConfig = composeDecoratorsConfig(compilerOptions, config.source?.decorators?.version);
@@ -2233,7 +2253,8 @@ async function composeCreateRsbuildConfig(rslibConfig) {
2233
2253
  footer: true,
2234
2254
  dts: true,
2235
2255
  shims: true,
2236
- umdName: true
2256
+ umdName: true,
2257
+ outBase: true
2237
2258
  }))
2238
2259
  };
2239
2260
  if ('string' == typeof libConfig.id) config.id = libConfig.id;
@@ -2420,7 +2441,7 @@ const repeatableOption = (value, previous)=>(previous ?? []).concat([
2420
2441
  value
2421
2442
  ]);
2422
2443
  function runCli() {
2423
- __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.name('rslib').usage('<command> [options]').version("0.4.0");
2444
+ __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.name('rslib').usage('<command> [options]').version("0.5.0-alpha.0");
2424
2445
  const buildCommand = __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.command('build');
2425
2446
  const inspectCommand = __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.command('inspect');
2426
2447
  const mfDevCommand = __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.command('mf-dev');
@@ -2481,6 +2502,6 @@ function runCli() {
2481
2502
  });
2482
2503
  __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.parse();
2483
2504
  }
2484
- const src_rslib_entry_version = "0.4.0";
2505
+ const src_rslib_entry_version = "0.5.0-alpha.0";
2485
2506
  var __webpack_exports__logger = __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger;
2486
2507
  export { build, defineConfig, inspect, loadConfig, prepareCli, runCli, startMFDevServer, composeCreateRsbuildConfig as unstable_composeCreateRsbuildConfig, src_rslib_entry_version as version, __webpack_exports__logger as logger };
@@ -19,7 +19,7 @@ const pitch = function(request, _, _data) {
19
19
  return;
20
20
  }
21
21
  const options = this.getOptions();
22
- const emit = void 0 === options.emit || options.emit;
22
+ const emit = void 0 !== options.emit ? options.emit : true;
23
23
  const callback = this.async();
24
24
  const filepath = this.resourcePath;
25
25
  const rootDir = options.rootDir ?? this.rootContext;
@@ -37,7 +37,7 @@ const pitch = function(request, _, _data) {
37
37
  const handleExports = (originalExports)=>{
38
38
  let locals;
39
39
  let namedExport;
40
- const esModule = void 0 === options.esModule || options.esModule;
40
+ const esModule = void 0 !== options.esModule ? options.esModule : true;
41
41
  let dependencies = [];
42
42
  try {
43
43
  const exports = originalExports.__esModule ? originalExports.default : originalExports;
@@ -87,7 +87,7 @@ const pitch = function(request, _, _data) {
87
87
  }());
88
88
  const localsString = identifiers.map(([id, key])=>`\nvar ${id} = ${stringifyLocal(locals[key])};`).join('');
89
89
  const exportsString = `export { ${identifiers.map(([id, key])=>`${id} as ${JSON.stringify(key)}`).join(', ')} }`;
90
- const defaultExport = void 0 !== options.defaultExport && options.defaultExport;
90
+ const defaultExport = void 0 !== options.defaultExport ? options.defaultExport : false;
91
91
  return defaultExport ? `${localsString}\n${exportsString}\nexport default { ${identifiers.map(([id, key])=>`${JSON.stringify(key)}: ${id}`).join(', ')} }\n` : `${localsString}\n${exportsString}\n`;
92
92
  }
93
93
  return `\n${esModule ? 'export default' : 'module.exports = '} ${JSON.stringify(locals)};`;
@@ -139,6 +139,18 @@ export type StyleRedirect = {
139
139
  */
140
140
  extension?: boolean;
141
141
  };
142
+ export type DtsRedirect = {
143
+ /**
144
+ * Whether to automatically redirect the import paths of TypeScript declaration output files.
145
+ * @defaultValue `true`
146
+ */
147
+ path?: boolean;
148
+ /**
149
+ * Whether to automatically redirect the file extension to import paths based on the TypeScript declaration output files.
150
+ * @defaultValue `false`
151
+ */
152
+ extension?: boolean;
153
+ };
142
154
  export type Redirect = {
143
155
  /** Controls the redirect of the import paths of output JavaScript files. */
144
156
  js?: JsRedirect;
@@ -146,6 +158,8 @@ export type Redirect = {
146
158
  style?: StyleRedirect;
147
159
  /** Controls the redirect of the import paths of output asset files. */
148
160
  asset?: boolean;
161
+ /** Controls the redirect of the import paths of output TypeScript declaration files. */
162
+ dts?: DtsRedirect;
149
163
  };
150
164
  export interface LibConfig extends EnvironmentConfig {
151
165
  /**
@@ -239,6 +253,12 @@ export interface LibConfig extends EnvironmentConfig {
239
253
  * @see {@link https://lib.rsbuild.dev/config/lib/umd-name}
240
254
  */
241
255
  umdName?: string;
256
+ /**
257
+ * The base directory of the output files.
258
+ * @defaultValue `undefined`
259
+ * @see {@link https://lib.rsbuild.dev/config/lib/out-base}
260
+ */
261
+ outBase?: string;
242
262
  }
243
263
  export type LibOnlyConfig = Omit<LibConfig, keyof EnvironmentConfig>;
244
264
  export interface RslibConfig extends RsbuildConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rslib/core",
3
- "version": "0.4.0",
3
+ "version": "0.5.0-alpha.0",
4
4
  "description": "The Rsbuild-based library development tool.",
5
5
  "homepage": "https://lib.rsbuild.dev",
6
6
  "bugs": {
@@ -18,6 +18,9 @@
18
18
  "types": "./dist-types/index.d.ts",
19
19
  "default": "./dist/index.js"
20
20
  },
21
+ "./types": {
22
+ "types": "./types.d.ts"
23
+ },
21
24
  "./package.json": "./package.json"
22
25
  },
23
26
  "main": "./dist/index.js",
@@ -29,15 +32,16 @@
29
32
  "bin",
30
33
  "dist",
31
34
  "dist-types",
32
- "compiled"
35
+ "compiled",
36
+ "types.d.ts"
33
37
  ],
34
38
  "dependencies": {
35
- "@rsbuild/core": "~1.2.3",
39
+ "@rsbuild/core": "~1.2.8",
36
40
  "tinyglobby": "^0.2.10",
37
- "rsbuild-plugin-dts": "0.4.0"
41
+ "rsbuild-plugin-dts": "0.5.0-alpha.0"
38
42
  },
39
43
  "devDependencies": {
40
- "@module-federation/rsbuild-plugin": "^0.8.9",
44
+ "@module-federation/rsbuild-plugin": "^0.8.11",
41
45
  "@types/fs-extra": "^11.0.4",
42
46
  "chokidar": "^4.0.3",
43
47
  "commander": "^13.1.0",
@@ -45,10 +49,10 @@
45
49
  "memfs": "^4.17.0",
46
50
  "picocolors": "1.1.1",
47
51
  "prebundle": "1.2.7",
48
- "rsbuild-plugin-publint": "^0.2.1",
49
- "rslib": "npm:@rslib/core@0.3.2",
52
+ "rsbuild-plugin-publint": "^0.3.0",
53
+ "rslib": "npm:@rslib/core@0.4.1",
50
54
  "rslog": "^1.2.3",
51
- "tsconfck": "3.1.4",
55
+ "tsconfck": "3.1.5",
52
56
  "typescript": "^5.7.3",
53
57
  "@rslib/tsconfig": "0.0.1"
54
58
  },
package/types.d.ts ADDED
@@ -0,0 +1 @@
1
+ /// <reference types="@rsbuild/core/types" />