makepack 1.2.5 → 1.2.7

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,8 +1,13 @@
1
1
  {
2
2
  "name": "makepack",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "type": "module",
5
5
  "description": "A CLI tool to create, build, and manage JavaScript, TypeScript, React, and React-TypeScript libraries for npm projects.",
6
+ "files": [
7
+ "src",
8
+ "package.json",
9
+ "README.md"
10
+ ],
6
11
  "categories": [
7
12
  "Other"
8
13
  ],
@@ -48,12 +48,14 @@ export default async (args) => {
48
48
  {
49
49
  type: "confirm",
50
50
  name: 'overwrite',
51
- message: `The file ${file.filename} already exists, do you want to overwrite it?`,
51
+ message: `\nThe file ${file.filename} already exists, do you want to overwrite it?`,
52
52
  default: false
53
53
  }
54
54
  ])
55
55
  if (!overwrite) {
56
56
  continue
57
+ } else {
58
+ fs.removeSync(path.join(args.cwd, file.filename))
57
59
  }
58
60
  }
59
61