gant-core 0.1.36 → 0.1.38

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/lib/cli/index.js CHANGED
@@ -6246,15 +6246,15 @@ var generateI18n = (userConfig, cwd) => {
6246
6246
  }
6247
6247
  let languageObj = {};
6248
6248
  for (const filePath of filesPath) {
6249
- if (!fs$6.existsSync(path$5.resolve(filePath, 'locales')))
6250
- break;
6251
- const files = fs$6.readdirSync(path$5.resolve(filePath, 'locales'));
6252
- files.map((file) => {
6253
- const _fileName = file.replace('.ts', '');
6254
- const content = getJavascriptfile(path$5.resolve(filePath, 'locales', file));
6255
- languageObj = mergeConfig$1({ [_fileName]: content }, languageObj);
6256
- return;
6257
- });
6249
+ if (fs$6.existsSync(path$5.resolve(filePath, 'locales'))) {
6250
+ const files = fs$6.readdirSync(path$5.resolve(filePath, 'locales'));
6251
+ files.map((file) => {
6252
+ const _fileName = file.replace('.ts', '');
6253
+ const content = getJavascriptfile(path$5.resolve(filePath, 'locales', file));
6254
+ languageObj = mergeConfig$1({ [_fileName]: content }, languageObj);
6255
+ return;
6256
+ });
6257
+ }
6258
6258
  }
6259
6259
  Object.keys(languageObj).map((filename) => {
6260
6260
  const content = languageObj[filename];
@@ -6425,7 +6425,6 @@ const getCssRules = (mode) => {
6425
6425
  },
6426
6426
  {
6427
6427
  test: /\.(css)$/,
6428
- include: /node_modules|public/, // 只处理node_modules下的样式文件
6429
6428
  use: [
6430
6429
  mode === 'development'
6431
6430
  ? require.resolve('style-loader')
@@ -48741,7 +48740,7 @@ const createCwdConfig = (cwd, name, vue) => {
48741
48740
  };
48742
48741
 
48743
48742
  var name = "gant-core";
48744
- var version = "0.1.36";
48743
+ var version = "0.1.38";
48745
48744
  var description = "";
48746
48745
  var main = "lib/index.js";
48747
48746
  var bin = {