multi-clasp2 3.0.3 → 3.0.4
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/README.md +17 -9
- package/build/package.json +15 -12
- package/build/src/common.js +61 -7
- package/build/src/common.js.map +1 -1
- package/build/src/index.js +5 -2
- package/build/src/index.js.map +1 -1
- package/build/src/utils.js +24 -1
- package/build/src/utils.js.map +1 -1
- package/package.json +15 -12
package/README.md
CHANGED
|
@@ -10,6 +10,14 @@ You want them to share the same code, but making this Apps Script project into a
|
|
|
10
10
|
|
|
11
11
|
The solution is to maintain a reference to each artifact's Apps Script project, and simultaneously push changes to these projects so they can receive updates while maintaining their non-library performance.
|
|
12
12
|
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
Install `multi-clasp2`:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install -g multi-clasp2
|
|
19
|
+
```
|
|
20
|
+
|
|
13
21
|
### Example File
|
|
14
22
|
|
|
15
23
|
Create a .multi-clasp.json file, which is just an array of JSON objects identical to the standard .clasp.json format.
|
|
@@ -37,15 +45,15 @@ You do not need a .clasp.json file anymore.
|
|
|
37
45
|
|
|
38
46
|
The following clasp commands are supported. For the documentation refer to the official [documentation](https://github.com/google/clasp)
|
|
39
47
|
|
|
40
|
-
- [`
|
|
48
|
+
- [`multi-clasp push [--force --retry <n>]`](https://github.com/google/clasp#push) <br>
|
|
41
49
|
in addition to the clasp arguments there is the --retry option: If the push of an App Script fail with it will retry times. Default is 1.
|
|
42
50
|
|
|
43
|
-
- [`
|
|
44
|
-
- [`
|
|
45
|
-
- [`
|
|
46
|
-
- [`
|
|
47
|
-
- [`
|
|
48
|
-
- [`
|
|
49
|
-
- [`
|
|
50
|
-
- [`
|
|
51
|
+
- [`multi-clasp status [--json]`](https://github.com/google/clasp#status)
|
|
52
|
+
- [`multi-clasp open [--webapp] [--creds] [--addon]`](https://github.com/google/clasp#open)
|
|
53
|
+
- [`multi-clasp deployments`](https://github.com/google/clasp#deployments)
|
|
54
|
+
- [`multi-clasp deploy [--versionNumber <version>] [--description <description>]`](https://github.com/google/clasp#deploy)
|
|
55
|
+
- [`multi-clasp undeploy [--all]`](https://github.com/google/clasp#undeploy)
|
|
56
|
+
- [`multi-clasp version [description]`](https://github.com/google/clasp#version)
|
|
57
|
+
- [`multi-clasp versions`](https://github.com/google/clasp#versions)
|
|
58
|
+
- [`multi-clasp run [functionName] [--nondev] [--params <StringArray>]`](https://github.com/google/clasp#run)
|
|
51
59
|
|
package/build/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "multi-clasp2",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Google Clasp wrapper to push changes to multiple Apps Script projects at once.",
|
|
5
5
|
"exports": "./build/index.js",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@google/clasp": "2.4.1",
|
|
9
|
-
"commander": "^9.
|
|
10
|
-
"typescript": "^4.
|
|
9
|
+
"commander": "^9.3.0",
|
|
10
|
+
"typescript": "^4.7.4"
|
|
11
11
|
},
|
|
12
12
|
"author": "Fabrizio Antonangeli",
|
|
13
13
|
"license": "GPL-3.0",
|
|
14
14
|
"scripts": {
|
|
15
|
-
"test": "jest
|
|
15
|
+
"test": "jest",
|
|
16
|
+
"e2e": "npm run build; jest --silent --runInBand --config=jest.e2e.config.js",
|
|
16
17
|
"lint": "eslint .",
|
|
17
18
|
"release": "release-it",
|
|
18
19
|
"build": "tsc",
|
|
@@ -41,14 +42,16 @@
|
|
|
41
42
|
"build"
|
|
42
43
|
],
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@types/
|
|
46
|
-
"@
|
|
47
|
-
"@typescript-eslint/
|
|
45
|
+
"@jest/test-sequencer": "^28.1.1",
|
|
46
|
+
"@types/jest": "^28.1.4",
|
|
47
|
+
"@types/node": "^18.0.3",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
49
|
+
"@typescript-eslint/parser": "^5.30.5",
|
|
48
50
|
"auto-changelog": "^2.4.0",
|
|
49
|
-
"eslint": "^8.
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"eslint": "^8.19.0",
|
|
52
|
+
"fs-extra": "^10.1.0",
|
|
53
|
+
"jest": "^28.1.2",
|
|
54
|
+
"release-it": "^15.1.1",
|
|
55
|
+
"ts-jest": "^28.0.5"
|
|
53
56
|
}
|
|
54
57
|
}
|
package/build/src/common.js
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,8 +32,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
32
|
});
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.genericAction = exports.foreachClasp = exports.readMultiClaspConfig = exports.runClasp = void 0;
|
|
13
|
-
const fs = require("fs");
|
|
35
|
+
exports.genericAction = exports.foreachClasp = exports.writeMultiClaspConfig = exports.writeClaspConfig = exports.readClaspConfig = exports.readMultiClaspConfig = exports.runClasp = void 0;
|
|
36
|
+
const fs = __importStar(require("fs"));
|
|
14
37
|
const config_1 = require("./config");
|
|
15
38
|
const utils_1 = require("./utils");
|
|
16
39
|
/**
|
|
@@ -26,10 +49,7 @@ function runClasp(claspConfig, command, options = "") {
|
|
|
26
49
|
if (!claspConfig || !claspConfig.scriptId || !command) {
|
|
27
50
|
return false;
|
|
28
51
|
}
|
|
29
|
-
yield
|
|
30
|
-
if (err)
|
|
31
|
-
throw err;
|
|
32
|
-
}));
|
|
52
|
+
yield writeClaspConfig(claspConfig);
|
|
33
53
|
console.log('Elaborating scriptId:', claspConfig.scriptId);
|
|
34
54
|
try {
|
|
35
55
|
// const { stdout } = await exec(`npx clasp ${command} ${options}`);
|
|
@@ -54,9 +74,43 @@ exports.runClasp = runClasp;
|
|
|
54
74
|
* @returns array of SingleClasp
|
|
55
75
|
*/
|
|
56
76
|
function readMultiClaspConfig() {
|
|
57
|
-
return JSON.parse(fs.readFileSync(config_1.Config.MULTICLASP_FILENAME, config_1.Config.UTF_8).toString());
|
|
77
|
+
return JSON.parse(fs.readFileSync(config_1.Config.MULTICLASP_FILENAME, config_1.Config.UTF_8).toString() || "[]");
|
|
58
78
|
}
|
|
59
79
|
exports.readMultiClaspConfig = readMultiClaspConfig;
|
|
80
|
+
/**
|
|
81
|
+
* Read a Clasp Config.
|
|
82
|
+
* @param basePath the base path to read
|
|
83
|
+
* @returns the object with the configuration
|
|
84
|
+
*/
|
|
85
|
+
function readClaspConfig(basePath = '') {
|
|
86
|
+
return JSON.parse(fs.readFileSync(basePath + config_1.Config.CLASP_FILENAME, config_1.Config.UTF_8).toString());
|
|
87
|
+
}
|
|
88
|
+
exports.readClaspConfig = readClaspConfig;
|
|
89
|
+
/**
|
|
90
|
+
* Write a Clasp Config.
|
|
91
|
+
* @param config the clasp configuration
|
|
92
|
+
* @param basePath the base path to write
|
|
93
|
+
* @returns the object with the configuration
|
|
94
|
+
*/
|
|
95
|
+
function writeClaspConfig(config, basePath = '') {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
return fs.writeFile(basePath + config_1.Config.CLASP_FILENAME, JSON.stringify(config, null, 2), config_1.Config.UTF_8, (err) => __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
if (err)
|
|
99
|
+
throw err;
|
|
100
|
+
}));
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
exports.writeClaspConfig = writeClaspConfig;
|
|
104
|
+
/**
|
|
105
|
+
* Write a Multi clasp Config.
|
|
106
|
+
* @param config the multi-clasp configuration
|
|
107
|
+
* @param basePath the base path to write
|
|
108
|
+
* @returns the object with the configuration
|
|
109
|
+
*/
|
|
110
|
+
function writeMultiClaspConfig(config, basePath = '') {
|
|
111
|
+
return fs.writeFileSync(basePath + config_1.Config.MULTICLASP_FILENAME, JSON.stringify(config, null, 2), config_1.Config.UTF_8);
|
|
112
|
+
}
|
|
113
|
+
exports.writeMultiClaspConfig = writeMultiClaspConfig;
|
|
60
114
|
/**
|
|
61
115
|
* commander action to run clasp.
|
|
62
116
|
*
|
package/build/src/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,qCAAkC;AAClC,mCAAqD;AAGrD;;;;;;;GAOG;AACH,SAAsB,QAAQ,CAAC,WAAuB,EAAE,OAAe,EAAE,OAAO,GAAG,EAAE;;QACjF,IAAG,CAAC,WAAW,IAAI,CAAC,WAAW,CAAC,QAAQ,IAAI,CAAC,OAAO,EAAE;YAClD,OAAO,KAAK,CAAC;SAChB;QAED,MAAM,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAEpC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;QAE3D,IAAI;YACA,oEAAoE;YACpE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,wBAAgB,EAAC,aAAa,OAAO,IAAI,OAAO,EAAE,CAAC,CAAC;YAC5F,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACpB,IAAI,KAAK,EAAE;gBACT,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBACpB,OAAO,KAAK,CAAC;aACd;SACJ;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;YACxB,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;CAAA;AAvBD,4BAuBC;AAED;;;;GAIG;AACH,SAAgB,oBAAoB;IAClC,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAM,CAAC,mBAAmB,EAAE,eAAM,CAAC,KAAuB,CAAC,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;AACpH,CAAC;AAFD,oDAEC;AAED;;;;GAIG;AACH,SAAgB,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AE,MAAM,GAAG,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAVD,oCAUC;AAED;;;;GAIG;AACH,SAAsB,aAAa;;QACjC,YAAY,CAAC,CAAO,WAAW,EAAC,EAAE;YAChC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAA,kBAAU,GAAE,CAAC,CAAC;YAC1E,IAAG,CAAC,MAAM,EAAC;gBACT,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACjB;QACH,CAAC,CAAA,CAAC,CAAC;IACL,CAAC;CAAA;AAPD,sCAOC"}
|
package/build/src/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
3
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
7
|
const commander_1 = require("commander");
|
|
5
8
|
const common_1 = require("./common");
|
|
6
|
-
const run_1 = require("./run");
|
|
7
|
-
const push_1 = require("./push");
|
|
9
|
+
const run_1 = __importDefault(require("./run"));
|
|
10
|
+
const push_1 = __importDefault(require("./push"));
|
|
8
11
|
const package_json_1 = require("../package.json");
|
|
9
12
|
const program = new commander_1.Command();
|
|
10
13
|
program
|
package/build/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAEA,yCAAoC;AACpC,qCAAyC;AACzC,gDAAwB;AACxB,kDAA0B;AAC1B,kDAAwC;AAExC,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,O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KACxD,MAAM,CAAC,4BAA4B,EAAE,iEAAiE,CAAC;KACvG,MAAM,CAAC,aAAG,CAAC,CAAC;AAEf,OAAO;KACJ,OAAO,CAAC,uBAAuB,CAAC;KAChC,WAAW,CAAC,4CAA4C,CAAC;KACzD,MAAM,CAAC,sBAAa,CAAC,CAAC;AAEzB,OAAO;KACJ,OAAO,CAAC,UAAU,CAAC;KACnB,WAAW,CAAC,2BAA2B,CAAC;KACxC,MAAM,CAAC,sBAAa,CAAC,CAAC;AAEzB,OAAO,CAAC,OAAO,CAAC,sBAAO,IAAI,SAAS,EAAE,eAAe,EAAE,4BAA4B,CAAC,CAAC;AACrF,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/build/src/utils.js
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.execShellCommand = exports.getOptions = exports.parseJsonOrDie = void 0;
|
|
4
27
|
const mutli_clasp_errors_1 = require("./mutli-clasp-errors");
|
|
5
|
-
const child_process = require("child_process");
|
|
28
|
+
const child_process = __importStar(require("child_process"));
|
|
6
29
|
/**
|
|
7
30
|
* Parses input string into a valid JSON object or throws a `ClaspError` error.
|
|
8
31
|
* @param value JSON string.
|
package/build/src/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAAsD;AACtD,6DAA+C;AAE/C;;;GAGG;AACI,MAAM,cAAc,GAAG,CAAI,KAAa,EAAK,EAAE;IACpD,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAM,CAAC;KAC/B;IAAC,WAAM;QACN,MAAM,qCAAgB,CAAC,WAAW,CAAC;KACpC;AACH,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB;AAEF;;;;;GAKG;AACH,SAAgB,UAAU,CAAE,OAAc,OAAO,CAAC,IAAI;IACpD,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACjC,CAAC;AALD,gCAKC;AAED;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,GAAW;IAC1C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;YAChD,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAND,4CAMC"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "multi-clasp2",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Google Clasp wrapper to push changes to multiple Apps Script projects at once.",
|
|
5
5
|
"exports": "./build/index.js",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@google/clasp": "2.4.1",
|
|
9
|
-
"commander": "^9.
|
|
10
|
-
"typescript": "^4.
|
|
9
|
+
"commander": "^9.3.0",
|
|
10
|
+
"typescript": "^4.7.4"
|
|
11
11
|
},
|
|
12
12
|
"author": "Fabrizio Antonangeli",
|
|
13
13
|
"license": "GPL-3.0",
|
|
14
14
|
"scripts": {
|
|
15
|
-
"test": "jest
|
|
15
|
+
"test": "jest",
|
|
16
|
+
"e2e": "npm run build; jest --silent --runInBand --config=jest.e2e.config.js",
|
|
16
17
|
"lint": "eslint .",
|
|
17
18
|
"release": "release-it",
|
|
18
19
|
"build": "tsc",
|
|
@@ -41,14 +42,16 @@
|
|
|
41
42
|
"build"
|
|
42
43
|
],
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@types/
|
|
46
|
-
"@
|
|
47
|
-
"@typescript-eslint/
|
|
45
|
+
"@jest/test-sequencer": "^28.1.1",
|
|
46
|
+
"@types/jest": "^28.1.4",
|
|
47
|
+
"@types/node": "^18.0.3",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
49
|
+
"@typescript-eslint/parser": "^5.30.5",
|
|
48
50
|
"auto-changelog": "^2.4.0",
|
|
49
|
-
"eslint": "^8.
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"eslint": "^8.19.0",
|
|
52
|
+
"fs-extra": "^10.1.0",
|
|
53
|
+
"jest": "^28.1.2",
|
|
54
|
+
"release-it": "^15.1.1",
|
|
55
|
+
"ts-jest": "^28.0.5"
|
|
53
56
|
}
|
|
54
57
|
}
|