create-kepo-plugin 1.0.24 → 1.0.25

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/index.js CHANGED
@@ -253,10 +253,11 @@ async function init() {
253
253
  fs.mkdirSync(destDir, { recursive: true })
254
254
  for (const file of fs.readdirSync(srcDir)) {
255
255
  const srcFile = path.resolve(srcDir, file)
256
- const destFile = path.resolve(destDir, file)
257
256
 
258
257
  // 计算相对于模板目录的路径
259
258
  const relativePath = path.relative(templateDir, srcFile)
259
+ const targetFileName = relativePath === 'npmrc' ? '.npmrc' : file
260
+ const destFile = path.resolve(destDir, targetFileName)
260
261
 
261
262
  // 如果启用 noExample 且当前文件是 example 文件,则跳过
262
263
  if (noExample && exampleFiles.includes(relativePath.replace(/\\/g, '/'))) {
@@ -321,4 +322,4 @@ export default widgets;
321
322
 
322
323
  init().catch((e) => {
323
324
  console.error(e)
324
- })
325
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kepo-plugin",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "CLI tool for creating Kepo plugins",
5
5
  "type": "module",
6
6
  "bin": {
package/template/GUIDE.md CHANGED
@@ -1,9 +1,8 @@
1
- 这个文件用于介绍插件功能于版本更新记录
2
- ## 版本更新记录
1
+ This file is used to introduce plugin functions and version update records
2
+
3
+ ## introduce
3
4
 
4
- ## 介绍
5
5
 
6
- ![logo](./assets/logo.png)
7
6
 
8
7
 
9
8
 
@@ -0,0 +1,4 @@
1
+ ## v0.0.1
2
+
3
+ - 初次提交插件模板版本,内置基础目录结构、配置文件与版本说明示例。
4
+ - 生成新插件后可直接在此基础上补充真实功能说明,并继续追加后续版本记录。
package/template/npmrc ADDED
@@ -0,0 +1,3 @@
1
+ package-import-method=auto
2
+
3
+ enable-pre-post-scripts=true
@@ -27,7 +27,7 @@
27
27
  "recharts": "^3.7.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@kepoai/cli": "^0.0.12",
30
+ "@kepoai/cli": "^0.0.14",
31
31
  "@types/react": "^18.2.38",
32
32
  "@types/node": "^20.10.3",
33
33
  "tailwindcss": "^3.4.1",