create-pubinfo 2.0.0-beta.25 → 2.0.0-beta.27
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/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import consola6 from "consola";
|
|
|
8
8
|
var package_default = {
|
|
9
9
|
name: "create-pubinfo",
|
|
10
10
|
type: "module",
|
|
11
|
-
version: "2.0.0-beta.
|
|
11
|
+
version: "2.0.0-beta.27",
|
|
12
12
|
description: "\u521D\u59CB\u5316\u9879\u76EE\u6846\u67B6",
|
|
13
13
|
author: "Werheng <werheng.zhang@gmail.com>",
|
|
14
14
|
license: "MIT",
|
|
@@ -46,6 +46,7 @@ var package_default = {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
// src/core/generate.ts
|
|
49
|
+
import { renameSync } from "node:fs";
|
|
49
50
|
import { dirname, resolve as resolve2 } from "node:path";
|
|
50
51
|
import { cwd } from "node:process";
|
|
51
52
|
import { fileURLToPath } from "node:url";
|
|
@@ -134,6 +135,15 @@ function generate(options, version) {
|
|
|
134
135
|
return `"${pkgName}": "${version}"`;
|
|
135
136
|
});
|
|
136
137
|
});
|
|
138
|
+
const renameFiles = {
|
|
139
|
+
_gitignore: ".gitignore",
|
|
140
|
+
_npmrc: ".npmrc"
|
|
141
|
+
};
|
|
142
|
+
for (const [oldName, newName] of Object.entries(renameFiles)) {
|
|
143
|
+
const oldPath = resolve2(targetPath, oldName);
|
|
144
|
+
const newPath = resolve2(targetPath, newName || oldName);
|
|
145
|
+
renameSync(oldPath, newPath);
|
|
146
|
+
}
|
|
137
147
|
}
|
|
138
148
|
|
|
139
149
|
// src/core/init.ts
|
package/package.json
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.pubinfo
|
|
2
|
+
.eslintcache
|
|
3
|
+
.stylelintcache
|
|
4
|
+
|
|
5
|
+
# auto generated
|
|
6
|
+
auto-imports.d.ts
|
|
7
|
+
components.d.ts
|
|
8
|
+
|
|
9
|
+
.DS_Store
|
|
10
|
+
node_modules
|
|
11
|
+
dist
|
|
12
|
+
cache
|
|
13
|
+
coverage
|
|
14
|
+
.turbo
|
|
15
|
+
.eslintcache
|
|
16
|
+
.stylelintcache
|
|
17
|
+
|
|
18
|
+
# local env files
|
|
19
|
+
.env.local
|
|
20
|
+
.env.*.local
|
|
21
|
+
|
|
22
|
+
# Log files
|
|
23
|
+
npm-debug.log*
|
|
24
|
+
yarn-debug.log*
|
|
25
|
+
yarn-error.log*
|
|
26
|
+
pnpm-debug.log*
|
|
27
|
+
lerna-debug.log*
|
|
28
|
+
|
|
29
|
+
# Editor directories and files
|
|
30
|
+
.idea
|
|
31
|
+
# .vscode
|
|
32
|
+
*.suo
|
|
33
|
+
*.ntvs*
|
|
34
|
+
*.njsproj
|
|
35
|
+
*.sln
|
|
36
|
+
*.sw?
|
|
37
|
+
|