create-antd-skin 1.1.8 → 1.2.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.
package/bin/layout.js CHANGED
@@ -44,7 +44,7 @@ const t = __importStar(require("@babel/types"));
44
44
  const fs_extra_1 = __importDefault(require("fs-extra"));
45
45
  const path_1 = __importDefault(require("path"));
46
46
  const LAYOUT_PKG = "@adminui-dev/antd-layout";
47
- const WARDEN_SKIN_PKG = "../components/warden-skin";
47
+ const WARDEN_SKIN_PKG = "../components/warden-skins";
48
48
  async function patchLayoutFile(filePath) {
49
49
  const code = await fs_extra_1.default.readFile(filePath, "utf8");
50
50
  if (!code.includes("<AntdLayout"))
package/bin/skin.js CHANGED
@@ -44,7 +44,7 @@ async function getSkinList() {
44
44
  async function copySkinFiles(skinName, skinDir, projectRoot) {
45
45
  const entry = await findSkinEntry(skinDir);
46
46
  const skinImagesDir = path_1.default.join(skinDir, "images");
47
- const targetSkinDir = path_1.default.join(projectRoot, "src/components/warden-skin", skinName);
47
+ const targetSkinDir = path_1.default.join(projectRoot, "src/components/warden-skins", skinName);
48
48
  const targetImagesDir = path_1.default.join(projectRoot, "public/images/skins", skinName);
49
49
  await fs_extra_1.default.ensureDir(targetSkinDir);
50
50
  await fs_extra_1.default.copy(entry.source, path_1.default.join(targetSkinDir, `index.${entry.ext}`));
@@ -53,7 +53,7 @@ async function copySkinFiles(skinName, skinDir, projectRoot) {
53
53
  }
54
54
  }
55
55
  async function updateSkinIndex(skinName, projectRoot) {
56
- const skinRoot = path_1.default.join(projectRoot, "src/components/warden-skin");
56
+ const skinRoot = path_1.default.join(projectRoot, "src/components/warden-skins");
57
57
  const indexFile = path_1.default.join(skinRoot, "index.ts");
58
58
  await fs_extra_1.default.ensureDir(skinRoot);
59
59
  const dirs = (await fs_extra_1.default.readdir(skinRoot))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-antd-skin",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "this is skin-cli for @adminui-dev/antd-layout",
5
5
  "main": "index.js",
6
6
  "author": "zhouwenqi",