swico 2.0.0-beta.35 → 2.0.0-beta.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "2.0.0-beta.35",
3
+ "version": "2.0.0-beta.36",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -64,7 +64,6 @@ function default_1(options) {
64
64
  const isPublicDirExist = yield fs_extra_1.default.exists(path_1.default.join(projectPath, '/public'));
65
65
  const copyConfig = (_d = (_c = customConfig.prod) === null || _c === void 0 ? void 0 : _c.copy) !== null && _d !== void 0 ? _d : config_1.initConfig.copy;
66
66
  const customDevtool = (_e = customConfig.prod.devtool) !== null && _e !== void 0 ? _e : customConfig.base.devtool;
67
- console.log('consoleAvailable', consoleAvailable);
68
67
  return (0, webpack_merge_1.merge)(baseConfig, {
69
68
  output: {
70
69
  cssFilename: 'css/[name].[contenthash].css',
@@ -191,7 +191,6 @@ const initIndexFile = () => __awaiter(void 0, void 0, void 0, function* () {
191
191
  .replaceAll('\\', '/');
192
192
  if (fileText.includes(`require("${formatHooksPath}");`)) {
193
193
  fileText = fileText.replaceAll(`require("${formatHooksPath}");`, 'require("./project-path/.swico-react/react-hooks");');
194
- yield fs_extra_1.default.writeFile(targetPath, fileText);
195
194
  }
196
195
  const formatDevHistoryPath = path_1.default
197
196
  .resolve(projectPath, './.swico/.dev/history')
@@ -201,11 +200,10 @@ const initIndexFile = () => __awaiter(void 0, void 0, void 0, function* () {
201
200
  .replaceAll('\\', '/');
202
201
  if (fileText.includes(`require("${formatDevHistoryPath}");`)) {
203
202
  fileText = fileText.replaceAll(`require("${formatDevHistoryPath}");`, 'require("./mock-history");');
204
- yield fs_extra_1.default.writeFile(targetPath, fileText);
205
203
  }
206
204
  else if (fileText.includes(`require("${formatProdHistoryPath}");`)) {
207
205
  fileText = fileText.replaceAll(`require("${formatProdHistoryPath}");`, 'require("./mock-history");');
208
- yield fs_extra_1.default.writeFile(targetPath, fileText);
209
206
  }
207
+ yield fs_extra_1.default.writeFile(targetPath, fileText);
210
208
  });
211
209
  exports.initIndexFile = initIndexFile;