easy-soft-develop 2.1.181 → 2.1.183

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/cli.js CHANGED
@@ -18,6 +18,7 @@ const updateProjectWithMasterTemplate = require('../src/cliCollection/update-pro
18
18
  const prompt = require('../src/cliCollection/prompt');
19
19
  const code = require('../src/cliCollection/createCode');
20
20
  const rimraf = require('../src/cliCollection/rimraf');
21
+ const exit = require('../src/cliCollection/exit');
21
22
 
22
23
  const program = new Command();
23
24
 
@@ -56,6 +57,13 @@ program
56
57
  sleep.run(a, o);
57
58
  });
58
59
 
60
+ program
61
+ .command('exit')
62
+ .description('exit process')
63
+ .action((a, o) => {
64
+ exit.run(a, o);
65
+ });
66
+
59
67
  program
60
68
  .command('publish')
61
69
  .description('publish public packages to npm')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-develop",
3
- "version": "2.1.181",
3
+ "version": "2.1.183",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -33,6 +33,7 @@
33
33
  "test:bin:code": "node ./bin/cli.js code --dataPath ./develop/generatorCodeSource/code.json",
34
34
  "test:bin:create-assist-scripts": "node ./bin/cli.js create-assist-scripts",
35
35
  "test:bin:create-repository-project": "node ./bin/cli.js create-repository-project",
36
+ "test:bin:exit": "node ./bin/cli.js exit",
36
37
  "test:bin:publish": "node ./bin/cli.js publish --packages ss --otp true",
37
38
  "test:bin:rimraf": "node ./bin/cli.js rimraf --path ./testRemoveThisPath",
38
39
  "test:bin:sleep": "node ./bin/cli.js sleep --second 2 --showInfo true",
@@ -49,7 +50,7 @@
49
50
  "test:inner:rimraf": "node ./test/rimraf.test.js",
50
51
  "z:change:npm:registry:local": "nrm use local",
51
52
  "z:change:npm:registry:npm": "nrm use npm",
52
- "z:check:all-package-version": "npx npm-check-updates --configFilePath ./.ncurc.js",
53
+ "z:check:all-package-version": "npx npm-check-updates --configFilePath ./.ncurc.js --registry https://registry.npmjs.org",
53
54
  "prez:cz": "node ./bin/cli.js commit-refresh && npm run z:prettier:format:change && npm run z:tsc:build && git stage -A",
54
55
  "z:cz": "git-cz",
55
56
  "postz:cz": "git push",
@@ -69,8 +70,7 @@
69
70
  "postz:publish:patch:npm": "npm run z:change:npm:registry:local && npm publish",
70
71
  "z:reinstall": "rimraf ./node_modules && npm run z:install",
71
72
  "z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete",
72
- "z:update:all-package-version": "npx npm-check-updates --configFilePath ./.ncurc.js -u",
73
- "z:update:package-from-package": "npx npm-check-updates --configFilePath ./.ncurc.js -u"
73
+ "z:update:all-package-version": "npx npm-check-updates --configFilePath ./.ncurc.js -u --registry https://registry.npmjs.org"
74
74
  },
75
75
  "dependencies": {
76
76
  "commander": "^12.1.0",
@@ -85,13 +85,13 @@
85
85
  "terminal-kit": "^3.1.1"
86
86
  },
87
87
  "devDependencies": {
88
- "@changesets/cli": "^2.27.3",
88
+ "@changesets/cli": "^2.27.5",
89
89
  "@commitlint/cli": "^19.3.0",
90
90
  "@commitlint/config-conventional": "^19.2.2",
91
91
  "@commitlint/config-pnpm-scopes": "^19.1.0",
92
92
  "commitizen": "^4.3.0",
93
93
  "conventional-changelog-conventionalcommits": "^8.0.0",
94
- "cz-git": "^1.9.2",
94
+ "cz-git": "^1.9.3",
95
95
  "eslint": "^8.57.0",
96
96
  "eslint-config-prettier": "^9.1.0",
97
97
  "eslint-formatter-pretty": "^6.0.1",
@@ -101,9 +101,9 @@
101
101
  "eslint-plugin-prettier": "^5.1.3",
102
102
  "eslint-plugin-promise": "^6.2.0",
103
103
  "husky": "^9.0.11",
104
- "lint-staged": "^15.2.5",
104
+ "lint-staged": "^15.2.7",
105
105
  "npm-check-updates": "^16.14.20",
106
- "prettier": "^3.2.5",
106
+ "prettier": "^3.3.2",
107
107
  "prettier-plugin-packagejson": "^2.5.0"
108
108
  }
109
109
  }
@@ -0,0 +1,7 @@
1
+ const { exit, promptInfo } = require('../tools/meta');
2
+
3
+ exports.run = function () {
4
+ promptInfo('exit process');
5
+
6
+ exit();
7
+ };
package/src/index.js CHANGED
@@ -1,28 +1,36 @@
1
1
  const {
2
- exec,
2
+ assignObject,
3
3
  cd,
4
- getArgCollection,
5
4
  checkInCollection,
6
- existFileSync,
7
- existDirectorySync,
8
- writeFileSync,
9
5
  checkStringIsEmpty,
10
- promptLine,
6
+ exec,
7
+ existDirectorySync,
8
+ existFileSync,
9
+ exit,
10
+ getArgCollection,
11
+ isArray,
12
+ isObject,
13
+ mkdirSync,
14
+ promptBackgroundBlack,
15
+ promptBackgroundGreen,
16
+ promptBackgroundRed,
17
+ promptBlack,
11
18
  promptEmptyLine,
12
- promptSuccess,
19
+ promptError,
20
+ promptGreen,
13
21
  promptInfo,
22
+ promptLine,
23
+ promptMessage,
24
+ promptRed,
25
+ promptSuccess,
26
+ promptTip,
14
27
  promptWarn,
15
- promptError,
16
- isObject,
17
- isArray,
18
- assignObject,
19
- mkdirSync,
20
28
  readJsonFileSync,
21
- writeJsonFileSync,
29
+ resolvePath,
30
+ writeFileSync,
22
31
  writeFileWithFolderAndNameSync,
23
32
  writeFileWithOptionsSync,
24
- resolvePath,
25
- exit,
33
+ writeJsonFileSync,
26
34
  } = require('./tools/meta');
27
35
  const { sleep } = require('./tools/sleep');
28
36
  const { clean } = require('./tools/clean');
@@ -56,46 +64,54 @@ const {
56
64
  } = require('./tools/update.package.from.package');
57
65
 
58
66
  module.exports = {
59
- exec,
67
+ assignObject,
60
68
  cd,
61
- getArgCollection,
69
+ checkAllPackageVersion,
62
70
  checkInCollection,
63
- existFileSync,
64
- existDirectorySync,
65
- writeFileSync,
66
71
  checkStringIsEmpty,
67
- promptLine,
68
- promptEmptyLine,
69
- promptSuccess,
70
- promptInfo,
71
- promptWarn,
72
- promptError,
73
- isObject,
74
- isArray,
75
- assignObject,
76
- mkdirSync,
77
- readJsonFileSync,
78
- writeJsonFileSync,
79
- writeFileWithFolderAndNameSync,
80
- writeFileWithOptionsSync,
81
- resolvePath,
82
- exit,
83
72
  clean,
84
- sleep,
85
73
  commitRefresh,
74
+ createCleanScriptFile,
75
+ createDevelopFiles,
76
+ createInstallGlobalDevelopDependenceScriptFile,
77
+ createPackageCheckSpecialVersionScriptFile,
78
+ exec,
79
+ existDirectorySync,
80
+ existFileSync,
81
+ exit,
82
+ getArgCollection,
86
83
  initialEnvironment,
87
84
  installDevelopDependencePackages,
85
+ isArray,
86
+ isObject,
88
87
  loopPackage,
89
- checkAllPackageVersion,
90
- updateSpecialPackageVersion,
91
- updateAllPackageVersion,
92
- createCleanScriptFile,
93
- createPackageCheckSpecialVersionScriptFile,
94
- createInstallGlobalDevelopDependenceScriptFile,
95
- createDevelopFiles,
88
+ mkdirSync,
96
89
  prettierAllFile,
97
- prettierChangeFile,
98
90
  prettierAllPackageJson,
91
+ prettierChangeFile,
99
92
  prettierCurrentPackageJson,
93
+ promptBackgroundBlack,
94
+ promptBackgroundGreen,
95
+ promptBackgroundRed,
96
+ promptBlack,
97
+ promptEmptyLine,
98
+ promptError,
99
+ promptGreen,
100
+ promptInfo,
101
+ promptLine,
102
+ promptMessage,
103
+ promptRed,
104
+ promptSuccess,
105
+ promptTip,
106
+ promptWarn,
107
+ readJsonFileSync,
108
+ resolvePath,
109
+ sleep,
110
+ updateAllPackageVersion,
100
111
  updatePackageFromPackage,
112
+ updateSpecialPackageVersion,
113
+ writeFileSync,
114
+ writeFileWithFolderAndNameSync,
115
+ writeFileWithOptionsSync,
116
+ writeJsonFileSync,
101
117
  };
@@ -143,9 +143,9 @@ const ncuScript = {
143
143
  'z:check:all-package-version': 'npx easy-soft-develop check-all-package-version',
144
144
  'prez:update:all-package-version': 'node ./develop/assists/install.global.develop.dependence',
145
145
  'z:update:all-package-version': 'npx easy-soft-develop update-all-package-version',
146
- 'postz:update:all-package-version': 'npm run z:install',
146
+ 'postz:update:all-package-version': 'npm run z:reinstall',
147
147
  'z:update:special-package-version': 'node ./develop/assists/package.update.special.version.js',
148
- 'postz:update:special-package-version': 'npm run z:install',
148
+ 'postz:update:special-package-version': 'npm run z:reinstall',
149
149
  };
150
150
 
151
151
  module.exports = {
package/src/tools/meta.js CHANGED
@@ -411,38 +411,38 @@ function rimraf(path) {
411
411
  }
412
412
 
413
413
  module.exports = {
414
- exec,
414
+ assignObject,
415
415
  cd,
416
- getArgCollection,
417
416
  checkInCollection,
418
- existPathSync,
419
- existFileSync,
420
- existDirectorySync,
421
- writeFileSync,
422
417
  checkStringIsEmpty,
423
- promptLine,
424
- promptEmptyLine,
425
- promptSuccess,
426
- promptInfo,
427
- promptWarn,
428
- promptError,
429
- promptTip,
430
- isObject,
418
+ exec,
419
+ existDirectorySync,
420
+ existFileSync,
421
+ existPathSync,
422
+ exit,
423
+ getArgCollection,
431
424
  isArray,
432
- assignObject,
425
+ isObject,
433
426
  mkdirSync,
434
- readJsonFileSync,
435
- writeJsonFileSync,
436
- writeFileWithFolderAndNameSync,
437
- writeFileWithOptionsSync,
438
- resolvePath,
439
- exit,
440
- rimraf,
441
- promptBlack,
442
427
  promptBackgroundBlack,
443
- promptRed,
428
+ promptBackgroundGreen,
444
429
  promptBackgroundRed,
430
+ promptBlack,
431
+ promptEmptyLine,
432
+ promptError,
445
433
  promptGreen,
446
- promptBackgroundGreen,
434
+ promptInfo,
435
+ promptLine,
447
436
  promptMessage,
437
+ promptRed,
438
+ promptSuccess,
439
+ promptTip,
440
+ promptWarn,
441
+ readJsonFileSync,
442
+ resolvePath,
443
+ rimraf,
444
+ writeFileSync,
445
+ writeFileWithFolderAndNameSync,
446
+ writeFileWithOptionsSync,
447
+ writeJsonFileSync,
448
448
  };
@@ -40,7 +40,7 @@ function updateSpecialPackageVersion(packageList) {
40
40
 
41
41
  const packages = packageList.join(' ');
42
42
 
43
- const ncuCommand = `npx npm-check-updates --configFilePath ./.ncurc.js --packageFile package.json -u ${packages}`;
43
+ const ncuCommand = `npx npm-check-updates --configFilePath ./.ncurc.js --packageFile package.json --registry https://registry.npmjs.org -u ${packages}`;
44
44
 
45
45
  promptInfo(`${packageList.join()} will check update`);
46
46
 
@@ -56,7 +56,7 @@ function updateSpecialPackageVersion(packageList) {
56
56
  function updateAllPackageVersion() {
57
57
  exec('npm run z:initial:environment');
58
58
 
59
- const ncuCommand = `npx npm-check-updates --configFilePath ./.ncurc.js --packageFile package.json -u`;
59
+ const ncuCommand = `npx npm-check-updates --configFilePath ./.ncurc.js --packageFile package.json --registry https://registry.npmjs.org -u`;
60
60
 
61
61
  promptInfo(`all packages version will update`);
62
62
 
@@ -72,7 +72,7 @@ function updateAllPackageVersion() {
72
72
  }
73
73
 
74
74
  function checkAllPackageVersion() {
75
- const ncuCommand = `npx npm-check-updates --configFilePath ./.ncurc.js --packageFile package.json`;
75
+ const ncuCommand = `npx npm-check-updates --configFilePath ./.ncurc.js --packageFile package.json --registry https://registry.npmjs.org`;
76
76
 
77
77
  promptEmptyLine();
78
78
 
@@ -0,0 +1 @@
1
+ export function run(): void;
package/types/index.d.ts CHANGED
@@ -1,43 +1,102 @@
1
- import { exec } from "./tools/meta";
2
- import { cd } from "./tools/meta";
3
- import { getArgCollection } from "./tools/meta";
4
- import { checkInCollection } from "./tools/meta";
5
- import { existFileSync } from "./tools/meta";
6
- import { existDirectorySync } from "./tools/meta";
7
- import { writeFileSync } from "./tools/meta";
8
- import { checkStringIsEmpty } from "./tools/meta";
9
- import { promptLine } from "./tools/meta";
10
- import { promptEmptyLine } from "./tools/meta";
11
- import { promptSuccess } from "./tools/meta";
12
- import { promptInfo } from "./tools/meta";
13
- import { promptWarn } from "./tools/meta";
14
- import { promptError } from "./tools/meta";
15
- import { isObject } from "./tools/meta";
16
- import { isArray } from "./tools/meta";
17
- import { assignObject } from "./tools/meta";
18
- import { mkdirSync } from "./tools/meta";
19
- import { readJsonFileSync } from "./tools/meta";
20
- import { writeJsonFileSync } from "./tools/meta";
21
- import { writeFileWithFolderAndNameSync } from "./tools/meta";
22
- import { writeFileWithOptionsSync } from "./tools/meta";
23
- import { resolvePath } from "./tools/meta";
24
- import { exit } from "./tools/meta";
25
- import { clean } from "./tools/clean";
26
- import { sleep } from "./tools/sleep";
27
- import { commitRefresh } from "./tools/commit.refresh";
28
- import { initialEnvironment } from "./tools/initial.environment";
29
- import { installDevelopDependencePackages } from "./tools/package.install.global.develop.dependence";
30
- import { loopPackage } from "./tools/package.tools";
31
- import { checkAllPackageVersion } from "./tools/package.update";
32
- import { updateSpecialPackageVersion } from "./tools/package.update";
33
- import { updateAllPackageVersion } from "./tools/package.update";
34
- import { createCleanScriptFile } from "./tools/develop.file";
35
- import { createPackageCheckSpecialVersionScriptFile } from "./tools/develop.file";
36
- import { createInstallGlobalDevelopDependenceScriptFile } from "./tools/develop.file";
37
- import { createDevelopFiles } from "./tools/develop.file";
38
- import { prettierAllFile } from "./tools/prettier.file";
39
- import { prettierChangeFile } from "./tools/prettier.file";
40
- import { prettierAllPackageJson } from "./tools/prettier.package.json";
41
- import { prettierCurrentPackageJson } from "./tools/prettier.package.json";
42
- import { updatePackageFromPackage } from "./tools/update.package.from.package";
43
- export { exec, cd, getArgCollection, checkInCollection, existFileSync, existDirectorySync, writeFileSync, checkStringIsEmpty, promptLine, promptEmptyLine, promptSuccess, promptInfo, promptWarn, promptError, isObject, isArray, assignObject, mkdirSync, readJsonFileSync, writeJsonFileSync, writeFileWithFolderAndNameSync, writeFileWithOptionsSync, resolvePath, exit, clean, sleep, commitRefresh, initialEnvironment, installDevelopDependencePackages, loopPackage, checkAllPackageVersion, updateSpecialPackageVersion, updateAllPackageVersion, createCleanScriptFile, createPackageCheckSpecialVersionScriptFile, createInstallGlobalDevelopDependenceScriptFile, createDevelopFiles, prettierAllFile, prettierChangeFile, prettierAllPackageJson, prettierCurrentPackageJson, updatePackageFromPackage };
1
+ import { assignObject } from './tools/meta';
2
+ import { cd } from './tools/meta';
3
+ import { checkAllPackageVersion } from './tools/package.update';
4
+ import { checkInCollection } from './tools/meta';
5
+ import { checkStringIsEmpty } from './tools/meta';
6
+ import { clean } from './tools/clean';
7
+ import { commitRefresh } from './tools/commit.refresh';
8
+ import { createCleanScriptFile } from './tools/develop.file';
9
+ import { createDevelopFiles } from './tools/develop.file';
10
+ import { createInstallGlobalDevelopDependenceScriptFile } from './tools/develop.file';
11
+ import { createPackageCheckSpecialVersionScriptFile } from './tools/develop.file';
12
+ import { exec } from './tools/meta';
13
+ import { existDirectorySync } from './tools/meta';
14
+ import { existFileSync } from './tools/meta';
15
+ import { exit } from './tools/meta';
16
+ import { getArgCollection } from './tools/meta';
17
+ import { initialEnvironment } from './tools/initial.environment';
18
+ import { installDevelopDependencePackages } from './tools/package.install.global.develop.dependence';
19
+ import { isArray } from './tools/meta';
20
+ import { isObject } from './tools/meta';
21
+ import { loopPackage } from './tools/package.tools';
22
+ import { mkdirSync } from './tools/meta';
23
+ import { prettierAllFile } from './tools/prettier.file';
24
+ import { prettierAllPackageJson } from './tools/prettier.package.json';
25
+ import { prettierChangeFile } from './tools/prettier.file';
26
+ import { prettierCurrentPackageJson } from './tools/prettier.package.json';
27
+ import { promptBackgroundBlack } from './tools/meta';
28
+ import { promptBackgroundGreen } from './tools/meta';
29
+ import { promptBackgroundRed } from './tools/meta';
30
+ import { promptBlack } from './tools/meta';
31
+ import { promptEmptyLine } from './tools/meta';
32
+ import { promptError } from './tools/meta';
33
+ import { promptGreen } from './tools/meta';
34
+ import { promptInfo } from './tools/meta';
35
+ import { promptLine } from './tools/meta';
36
+ import { promptMessage } from './tools/meta';
37
+ import { promptRed } from './tools/meta';
38
+ import { promptSuccess } from './tools/meta';
39
+ import { promptTip } from './tools/meta';
40
+ import { promptWarn } from './tools/meta';
41
+ import { readJsonFileSync } from './tools/meta';
42
+ import { resolvePath } from './tools/meta';
43
+ import { sleep } from './tools/sleep';
44
+ import { updateAllPackageVersion } from './tools/package.update';
45
+ import { updatePackageFromPackage } from './tools/update.package.from.package';
46
+ import { updateSpecialPackageVersion } from './tools/package.update';
47
+ import { writeFileSync } from './tools/meta';
48
+ import { writeFileWithFolderAndNameSync } from './tools/meta';
49
+ import { writeFileWithOptionsSync } from './tools/meta';
50
+ import { writeJsonFileSync } from './tools/meta';
51
+ export {
52
+ assignObject,
53
+ cd,
54
+ checkAllPackageVersion,
55
+ checkInCollection,
56
+ checkStringIsEmpty,
57
+ clean,
58
+ commitRefresh,
59
+ createCleanScriptFile,
60
+ createDevelopFiles,
61
+ createInstallGlobalDevelopDependenceScriptFile,
62
+ createPackageCheckSpecialVersionScriptFile,
63
+ exec,
64
+ existDirectorySync,
65
+ existFileSync,
66
+ exit,
67
+ getArgCollection,
68
+ initialEnvironment,
69
+ installDevelopDependencePackages,
70
+ isArray,
71
+ isObject,
72
+ loopPackage,
73
+ mkdirSync,
74
+ prettierAllFile,
75
+ prettierAllPackageJson,
76
+ prettierChangeFile,
77
+ prettierCurrentPackageJson,
78
+ promptBackgroundBlack,
79
+ promptBackgroundGreen,
80
+ promptBackgroundRed,
81
+ promptBlack,
82
+ promptEmptyLine,
83
+ promptError,
84
+ promptGreen,
85
+ promptInfo,
86
+ promptLine,
87
+ promptMessage,
88
+ promptRed,
89
+ promptSuccess,
90
+ promptTip,
91
+ promptWarn,
92
+ readJsonFileSync,
93
+ resolvePath,
94
+ sleep,
95
+ updateAllPackageVersion,
96
+ updatePackageFromPackage,
97
+ updateSpecialPackageVersion,
98
+ writeFileSync,
99
+ writeFileWithFolderAndNameSync,
100
+ writeFileWithOptionsSync,
101
+ writeJsonFileSync,
102
+ };
@@ -1,41 +1,48 @@
1
- export function exec(cmd: any): void;
1
+ export function assignObject(source: any, ...mergeData: any[]): any;
2
2
  export function cd(path: any): void;
3
- export function getArgCollection(): any;
4
3
  /**
5
4
  * Check value in the collection.
6
5
  * @param {Array} collection value collection
7
6
  * @param {*} target the target value will be checked
8
7
  */
9
8
  export function checkInCollection(collection: any[], target: any): boolean;
10
- export function existPathSync(path: any): boolean;
11
- export function existFileSync(path: any): any;
12
- export function existDirectorySync(path: any): any;
13
- export function writeFileSync(
14
- path: any,
15
- content: any,
16
- options?: {
17
- coverFile: boolean;
18
- },
19
- ): boolean;
20
9
  export function checkStringIsEmpty(v: any): boolean;
10
+ export function exec(cmd: any): void;
11
+ export function existDirectorySync(path: any): any;
12
+ export function existFileSync(path: any): any;
13
+ export function existPathSync(path: any): boolean;
14
+ export function exit(): any;
15
+ export function getArgCollection(): any;
16
+ export function isArray(value: any): boolean;
17
+ export function isObject(value: any): boolean;
18
+ export function mkdirSync(path: any): void;
19
+ export function promptBackgroundBlack(message: any, emptyLine?: boolean): void;
20
+ export function promptBackgroundGreen(message: any, emptyLine?: boolean): void;
21
+ export function promptBackgroundRed(message: any, emptyLine?: boolean): void;
22
+ export function promptBlack(message: any, emptyLine?: boolean): void;
23
+ export function promptEmptyLine(): void;
24
+ export function promptError(error: any, emptyLine?: boolean): void;
25
+ export function promptGreen(message: any, emptyLine?: boolean): void;
26
+ export function promptInfo(message: any, emptyLine?: boolean): void;
21
27
  /**
22
28
  * Prompt line
23
29
  */
24
30
  export function promptLine(): void;
25
- export function promptEmptyLine(): void;
31
+ export function promptMessage(
32
+ message: any,
33
+ config: any,
34
+ emptyLine?: boolean,
35
+ ): void;
36
+ export function promptRed(message: any, emptyLine?: boolean): void;
26
37
  export function promptSuccess(message: any, emptyLine?: boolean): void;
27
- export function promptInfo(message: any, emptyLine?: boolean): void;
28
- export function promptWarn(message: any, emptyLine?: boolean): void;
29
- export function promptError(error: any, emptyLine?: boolean): void;
30
38
  export function promptTip(title: any, message: any, emptyLine?: boolean): void;
31
- export function isObject(value: any): boolean;
32
- export function isArray(value: any): boolean;
33
- export function assignObject(source: any, ...mergeData: any[]): any;
34
- export function mkdirSync(path: any): void;
39
+ export function promptWarn(message: any, emptyLine?: boolean): void;
35
40
  export function readJsonFileSync(path: any): any;
36
- export function writeJsonFileSync(
41
+ export function resolvePath(path: any): any;
42
+ export function rimraf(path: any): void;
43
+ export function writeFileSync(
37
44
  path: any,
38
- json: any,
45
+ content: any,
39
46
  options?: {
40
47
  coverFile: boolean;
41
48
  },
@@ -60,17 +67,10 @@ export function writeFileWithOptionsSync({
60
67
  fileContent: any;
61
68
  coverFile?: boolean | undefined;
62
69
  }): boolean;
63
- export function resolvePath(path: any): any;
64
- export function exit(): any;
65
- export function rimraf(path: any): void;
66
- export function promptBlack(message: any, emptyLine?: boolean): void;
67
- export function promptBackgroundBlack(message: any, emptyLine?: boolean): void;
68
- export function promptRed(message: any, emptyLine?: boolean): void;
69
- export function promptBackgroundRed(message: any, emptyLine?: boolean): void;
70
- export function promptGreen(message: any, emptyLine?: boolean): void;
71
- export function promptBackgroundGreen(message: any, emptyLine?: boolean): void;
72
- export function promptMessage(
73
- message: any,
74
- config: any,
75
- emptyLine?: boolean,
76
- ): void;
70
+ export function writeJsonFileSync(
71
+ path: any,
72
+ json: any,
73
+ options?: {
74
+ coverFile: boolean;
75
+ },
76
+ ): boolean;