@ts-dev-tools/core 1.5.5 → 1.5.12

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/bin.js CHANGED
@@ -55,11 +55,11 @@ function bin() {
55
55
  return [3 /*break*/, 4];
56
56
  case 1:
57
57
  // Check if script is not run by the package himself
58
- if (process.cwd() === path_1.dirname(__dirname)) {
58
+ if (process.cwd() === (0, path_1.dirname)(__dirname)) {
59
59
  console.info("Do not install itself!");
60
60
  return [3 /*break*/, 5];
61
61
  }
62
- return [4 /*yield*/, command_1.install({
62
+ return [4 /*yield*/, (0, command_1.install)({
63
63
  cwd: process.cwd(),
64
64
  dir: params[0],
65
65
  })];
@@ -67,7 +67,7 @@ function bin() {
67
67
  _c.sent();
68
68
  return [3 /*break*/, 5];
69
69
  case 3:
70
- console.info(PackageJson_1.PackageJson.fromDirPath(path_1.join(__dirname, "..")).getPackageVersion());
70
+ console.info(PackageJson_1.PackageJson.fromDirPath((0, path_1.join)(__dirname, "..")).getPackageVersion());
71
71
  return [3 /*break*/, 5];
72
72
  case 4:
73
73
  console.info("Usage\n ts-dev-tools install [path from project root]\n ");
@@ -48,18 +48,18 @@ function install(_a) {
48
48
  return __generator(this, function (_c) {
49
49
  switch (_c.label) {
50
50
  case 0:
51
- tsDevToolsRootPath = path_1.resolve(__dirname, "../..");
51
+ tsDevToolsRootPath = (0, path_1.resolve)(__dirname, "../..");
52
52
  packageName = PackageJson_1.PackageJson.fromDirPath(tsDevToolsRootPath).getPackageName();
53
- absoluteProjectDir = path_1.resolve(cwd, dir);
53
+ absoluteProjectDir = (0, path_1.resolve)(cwd, dir);
54
54
  if (!absoluteProjectDir.startsWith(cwd)) {
55
55
  throw new Error(".. not allowed");
56
56
  }
57
57
  currentVersion = PackageJson_1.PackageJson.fromDirPath(absoluteProjectDir).getTsDevToolsVersion();
58
58
  if (currentVersion) {
59
- console.info("Updating " + packageName + " installation...");
59
+ console.info("Updating ".concat(packageName, " installation..."));
60
60
  }
61
61
  else {
62
- console.info("Installing " + packageName + "...");
62
+ console.info("Installing ".concat(packageName, "..."));
63
63
  }
64
64
  return [4 /*yield*/, MigrationsService_1.MigrationsService.executeMigrations(tsDevToolsRootPath, absoluteProjectDir, currentVersion)];
65
65
  case 1:
@@ -70,6 +70,11 @@ var up = function (absoluteProjectDir) { return __awaiter(void 0, void 0, void 0
70
70
  ecmaVersion: 12,
71
71
  sourceType: "module",
72
72
  },
73
+ settings: {
74
+ jest: {
75
+ version: "detect",
76
+ },
77
+ },
73
78
  };
74
79
  prettier = {
75
80
  semi: true,
@@ -90,8 +95,13 @@ var up = function (absoluteProjectDir) { return __awaiter(void 0, void 0, void 0
90
95
  };
91
96
  scripts = {
92
97
  build: "tsc --noEmit",
93
- test: "jest",
98
+ format: "prettier --write '**/*.js'",
94
99
  lint: 'eslint "src/**/*.{ts,tsx}"',
100
+ jest: "jest --detectOpenHandles --forceExit",
101
+ test: "yarn jest --maxWorkers=50%",
102
+ "test:watch": "yarn jest --watch --maxWorkers=25%",
103
+ "test:cov": "yarn jest --coverage",
104
+ "test:ci": "yarn test:cov --runInBand",
95
105
  prepare: "ts-dev-tools install",
96
106
  };
97
107
  packageJson = PackageJson_1.PackageJson.fromDirPath(absoluteProjectDir);
@@ -112,7 +122,7 @@ var up = function (absoluteProjectDir) { return __awaiter(void 0, void 0, void 0
112
122
  gitHooks = {
113
123
  "pre-commit": "npx --no-install lint-staged && npx --no-install pretty-quick --staged",
114
124
  "commit-msg": "npx --no-install commitlint --edit $1",
115
- "pre-push": packageManager + " run lint && " + packageManager + " run build && " + packageManager + " run test\"",
125
+ "pre-push": "".concat(packageManager, " run lint && ").concat(packageManager, " run build && ").concat(packageManager, " run test"),
116
126
  };
117
127
  _i = 0, _a = Object.keys(gitHooks);
118
128
  _b.label = 2;
@@ -12,8 +12,8 @@ var CmdService = /** @class */ (function () {
12
12
  throw new Error("Command args must not be empty");
13
13
  }
14
14
  if (cwd) {
15
- if (!fs_1.existsSync(cwd) || !fs_1.statSync(cwd).isDirectory()) {
16
- throw new Error("Directory \"" + cwd + "\" does not exist");
15
+ if (!(0, fs_1.existsSync)(cwd) || !(0, fs_1.statSync)(cwd).isDirectory()) {
16
+ throw new Error("Directory \"".concat(cwd, "\" does not exist"));
17
17
  }
18
18
  }
19
19
  var cmd;
@@ -25,7 +25,7 @@ var CmdService = /** @class */ (function () {
25
25
  args = [];
26
26
  }
27
27
  return new Promise(function (resolve, reject) {
28
- var child = child_process_1.spawn(cmd, args, {
28
+ var child = (0, child_process_1.spawn)(cmd, args, {
29
29
  stdio: silent ? "pipe" : "inherit",
30
30
  shell: true,
31
31
  windowsVerbatimArguments: true,
@@ -41,12 +41,12 @@ var CmdService = /** @class */ (function () {
41
41
  });
42
42
  if (child.stdout) {
43
43
  child.stdout.on("data", function (data) {
44
- output += "\n" + data;
44
+ output += "\n".concat(data);
45
45
  });
46
46
  }
47
47
  if (child.stderr) {
48
48
  child.stderr.on("data", function (data) {
49
- error += "\n" + data;
49
+ error += "\n".concat(data);
50
50
  });
51
51
  }
52
52
  });
@@ -24,7 +24,7 @@ var DuplicateDependenciesService = /** @class */ (function () {
24
24
  return duplicateDependencies;
25
25
  };
26
26
  DuplicateDependenciesService.getPluginDuplicateDependencies = function (tsDevToolsRootPath, plugin, projectDevDependencies, duplicateDependencies) {
27
- var absolutePluginDir = path_1.resolve(tsDevToolsRootPath, "../../", plugin);
27
+ var absolutePluginDir = (0, path_1.resolve)(tsDevToolsRootPath, "../../", plugin);
28
28
  // First check for duplicate of inherited plugins
29
29
  DuplicateDependenciesService.getProjectDuplicateDependencies(tsDevToolsRootPath, absolutePluginDir, duplicateDependencies);
30
30
  var pluginPackageJson = PackageJson_1.PackageJson.fromDirPath(absolutePluginDir);
@@ -45,7 +45,7 @@ var DuplicateDependenciesService = /** @class */ (function () {
45
45
  duplicateDependencies.forEach(function (pluginDuplicateDependencies, plugin) {
46
46
  if (pluginDuplicateDependencies.size) {
47
47
  var pluginDuplicateDependenciesValue = Array.from(pluginDuplicateDependencies);
48
- console.info("Some dev dependencies are unnecessarily installed as their are already required by \"" + plugin + "\":\"\n - \"" + pluginDuplicateDependenciesValue.join("\n - ") + "\n");
48
+ console.info("Some dev dependencies are unnecessarily installed as their are already required by \"".concat(plugin, "\":\"\n - \"").concat(pluginDuplicateDependenciesValue.join("\n - "), "\n"));
49
49
  }
50
50
  });
51
51
  };
@@ -59,17 +59,17 @@ var GitService = /** @class */ (function () {
59
59
  return __awaiter(this, void 0, void 0, function () {
60
60
  var gitHookDirPath, gitHookFilePath, mode;
61
61
  return __generator(this, function (_a) {
62
- gitHookDirPath = path_1.join(absoluteProjectDir, ".git/hooks");
63
- gitHookFilePath = path_1.join(gitHookDirPath, gitHookName);
64
- if (fs_1.existsSync(gitHookFilePath)) {
62
+ gitHookDirPath = (0, path_1.join)(absoluteProjectDir, ".git/hooks");
63
+ gitHookFilePath = (0, path_1.join)(gitHookDirPath, gitHookName);
64
+ if ((0, fs_1.existsSync)(gitHookFilePath)) {
65
65
  mode = GitService.getFilePermissions(gitHookFilePath);
66
66
  if (mode !== GitService.GIT_HOOK_MODE) {
67
- fs_1.chmodSync(gitHookFilePath, GitService.GIT_HOOK_MODE);
67
+ (0, fs_1.chmodSync)(gitHookFilePath, GitService.GIT_HOOK_MODE);
68
68
  }
69
69
  return [2 /*return*/];
70
70
  }
71
71
  return [2 /*return*/, new Promise(function (resolve, reject) {
72
- var stream = fs_1.createWriteStream(gitHookFilePath, { mode: GitService.GIT_HOOK_MODE });
72
+ var stream = (0, fs_1.createWriteStream)(gitHookFilePath, { mode: GitService.GIT_HOOK_MODE });
73
73
  stream.on("close", function () { return resolve(undefined); });
74
74
  stream.on("error", function (error) { return reject(error); });
75
75
  stream.write(GitService.GIT_HOOK_TEMPLATE.replace("%gitHookCommand%", gitHookCommand));
@@ -79,7 +79,7 @@ var GitService = /** @class */ (function () {
79
79
  });
80
80
  };
81
81
  GitService.getFilePermissions = function (filePath) {
82
- var mode = fs_1.statSync(filePath).mode;
82
+ var mode = (0, fs_1.statSync)(filePath).mode;
83
83
  return mode & parseInt("777", 8);
84
84
  };
85
85
  GitService.GIT_HOOK_MODE = 493;
@@ -60,7 +60,7 @@ var MigrationsService = /** @class */ (function () {
60
60
  case 2:
61
61
  if (!(_i < migrations_1.length)) return [3 /*break*/, 5];
62
62
  migration = migrations_1[_i];
63
- console.info("Applying migration \"" + migration.name + "\"...");
63
+ console.info("Applying migration \"".concat(migration.name, "\"..."));
64
64
  up = require(migration.path).up;
65
65
  // Apply migration
66
66
  return [4 /*yield*/, up(absoluteProjectDir)];
@@ -71,7 +71,7 @@ var MigrationsService = /** @class */ (function () {
71
71
  PackageJson_1.PackageJson.fromDirPath(absoluteProjectDir).merge({
72
72
  tsDevTools: { version: migration.name },
73
73
  });
74
- console.info("Migration \"" + migration.name + "\" applied!");
74
+ console.info("Migration \"".concat(migration.name, "\" applied!"));
75
75
  _a.label = 4;
76
76
  case 4:
77
77
  _i++;
@@ -83,7 +83,7 @@ var MigrationsService = /** @class */ (function () {
83
83
  packageJson.restore(packageJsonBackupPath);
84
84
  throw error_1;
85
85
  case 7:
86
- fs_1.unlinkSync(packageJsonBackupPath);
86
+ (0, fs_1.unlinkSync)(packageJsonBackupPath);
87
87
  return [2 /*return*/];
88
88
  }
89
89
  });
@@ -105,12 +105,12 @@ var MigrationsService = /** @class */ (function () {
105
105
  return Array.from(new Set(migrationFiles));
106
106
  };
107
107
  MigrationsService.getPluginMigrations = function (tsDevToolsRootPath, plugin, currentVersion) {
108
- var pluginDirPath = path_1.resolve(tsDevToolsRootPath, "../../", plugin);
108
+ var pluginDirPath = (0, path_1.resolve)(tsDevToolsRootPath, "../../", plugin);
109
109
  // First retrieve migration of inherited plugins
110
110
  var migrationFiles = MigrationsService.getAvailableMigrations(tsDevToolsRootPath, pluginDirPath, currentVersion);
111
111
  // Then retrieve
112
- var pluginMigrationsDirPath = path_1.resolve(pluginDirPath, "dist/install/migrations");
113
- for (var _i = 0, _a = fs_1.readdirSync(pluginMigrationsDirPath); _i < _a.length; _i++) {
112
+ var pluginMigrationsDirPath = (0, path_1.resolve)(pluginDirPath, "dist/install/migrations");
113
+ for (var _i = 0, _a = (0, fs_1.readdirSync)(pluginMigrationsDirPath); _i < _a.length; _i++) {
114
114
  var migrationFile = _a[_i];
115
115
  if (!migrationFile.match(/^[0-9]{14}-[a-z]+\.(js|ts)$/)) {
116
116
  continue;
@@ -122,7 +122,7 @@ var MigrationsService = /** @class */ (function () {
122
122
  }
123
123
  migrationFiles.push({
124
124
  name: migrationName,
125
- path: path_1.resolve(pluginMigrationsDirPath, migrationFile),
125
+ path: (0, path_1.resolve)(pluginMigrationsDirPath, migrationFile),
126
126
  });
127
127
  }
128
128
  return migrationFiles;
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
3
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
4
- to[j] = from[i];
5
- return to;
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
+ if (ar || !(i in from)) {
5
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
+ ar[i] = from[i];
7
+ }
8
+ }
9
+ return to.concat(ar || Array.prototype.slice.call(from));
6
10
  };
7
11
  Object.defineProperty(exports, "__esModule", { value: true });
8
12
  exports.PackageJson = void 0;
@@ -13,8 +17,8 @@ var PackageJson = /** @class */ (function () {
13
17
  function PackageJson(path) {
14
18
  this.path = path;
15
19
  this.content = undefined;
16
- if (!fs_1.existsSync(this.path)) {
17
- throw new Error("Package.json \"" + this.path + "\" does not exist");
20
+ if (!(0, fs_1.existsSync)(this.path)) {
21
+ throw new Error("Package.json \"".concat(this.path, "\" does not exist"));
18
22
  }
19
23
  }
20
24
  PackageJson.prototype.getPath = function () {
@@ -24,7 +28,7 @@ var PackageJson = /** @class */ (function () {
24
28
  if (this.content) {
25
29
  return this.content;
26
30
  }
27
- return (this.content = JSON.parse(fs_1.readFileSync(this.path, "utf-8")));
31
+ return (this.content = JSON.parse((0, fs_1.readFileSync)(this.path, "utf-8")));
28
32
  };
29
33
  PackageJson.prototype.setContent = function (content) {
30
34
  this.content = content;
@@ -65,7 +69,7 @@ var PackageJson = /** @class */ (function () {
65
69
  return devDependencies ? Object.keys(devDependencies) : [];
66
70
  };
67
71
  PackageJson.prototype.getAllDependenciesPackageNames = function () {
68
- return Array.from(new Set(__spreadArray(__spreadArray([], this.getDependenciesPackageNames()), this.getDevDependenciesPackageNames())));
72
+ return Array.from(new Set(__spreadArray(__spreadArray([], this.getDependenciesPackageNames(), true), this.getDevDependenciesPackageNames(), true)));
69
73
  };
70
74
  PackageJson.prototype.merge = function (update) {
71
75
  this.content = PackageJsonMerge_1.PackageJsonMerge.merge(this.getContent(), update);
@@ -73,20 +77,20 @@ var PackageJson = /** @class */ (function () {
73
77
  };
74
78
  PackageJson.prototype.backup = function () {
75
79
  var backupPath = this.path + ".backup";
76
- fs_1.copyFileSync(this.path, backupPath);
80
+ (0, fs_1.copyFileSync)(this.path, backupPath);
77
81
  return backupPath;
78
82
  };
79
83
  PackageJson.prototype.restore = function (backupPath) {
80
- fs_1.copyFileSync(backupPath, this.path);
84
+ (0, fs_1.copyFileSync)(backupPath, this.path);
81
85
  this.content = undefined;
82
86
  };
83
87
  PackageJson.prototype.write = function () {
84
- fs_1.writeFileSync(this.path, JSON.stringify(this.content, null, 2));
88
+ (0, fs_1.writeFileSync)(this.path, JSON.stringify(this.content, null, 2));
85
89
  };
86
90
  PackageJson.fromDirPath = function (dirPath) {
87
- var packageJsonPath = path_1.join(dirPath, "package.json");
88
- if (!fs_1.existsSync(packageJsonPath)) {
89
- throw new Error("No package.json found in directory \"" + dirPath + "\"");
91
+ var packageJsonPath = (0, path_1.join)(dirPath, "package.json");
92
+ if (!(0, fs_1.existsSync)(packageJsonPath)) {
93
+ throw new Error("No package.json found in directory \"".concat(dirPath, "\""));
90
94
  }
91
95
  return new PackageJson(packageJsonPath);
92
96
  };
@@ -12,7 +12,7 @@ var PackageManagerService = /** @class */ (function () {
12
12
  function PackageManagerService() {
13
13
  }
14
14
  PackageManagerService.detectPackageManager = function (dirPath) {
15
- if (fs_1.existsSync(path_1.join(dirPath, "yarn.lock"))) {
15
+ if ((0, fs_1.existsSync)((0, path_1.join)(dirPath, "yarn.lock"))) {
16
16
  return PackageManagerType.yarn;
17
17
  }
18
18
  return PackageManagerType.npm;
@@ -4,66 +4,66 @@ exports.removeTestProjectDir = exports.restorePackageJson = exports.getTsDevTool
4
4
  var fs_1 = require("fs");
5
5
  var os_1 = require("os");
6
6
  var path_1 = require("path");
7
- exports.testProjectDir = path_1.resolve("__tests__/test-project");
7
+ exports.testProjectDir = (0, path_1.resolve)("__tests__/test-project");
8
8
  var getTestProjectDirPath = function (filename) {
9
- return path_1.join(os_1.tmpdir(), path_1.basename(filename).split(".")[0]);
9
+ return (0, path_1.join)((0, os_1.tmpdir)(), (0, path_1.basename)(filename).split(".")[0]);
10
10
  };
11
- var defaultPackageJsonPath = path_1.join(exports.testProjectDir, "package.json");
11
+ var defaultPackageJsonPath = (0, path_1.join)(exports.testProjectDir, "package.json");
12
12
  function createTestProjectDir(filename) {
13
13
  var testProjectDirPath = getTestProjectDirPath(filename);
14
- if (fs_1.existsSync(testProjectDirPath)) {
14
+ if ((0, fs_1.existsSync)(testProjectDirPath)) {
15
15
  deleteFolderRecursive(testProjectDirPath);
16
16
  }
17
- fs_1.mkdirSync(testProjectDirPath);
18
- fs_1.mkdirSync(path_1.join(testProjectDirPath, ".git/hooks"), { recursive: true });
17
+ (0, fs_1.mkdirSync)(testProjectDirPath);
18
+ (0, fs_1.mkdirSync)((0, path_1.join)(testProjectDirPath, ".git/hooks"), { recursive: true });
19
19
  // Fake node_modules
20
20
  var tsDevToolsRootPath = getTsDevToolsRootPath(filename);
21
- fs_1.mkdirSync(tsDevToolsRootPath, { recursive: true });
22
- fs_1.copyFileSync(path_1.resolve(__dirname, "../../package.json"), path_1.join(tsDevToolsRootPath, "package.json"));
21
+ (0, fs_1.mkdirSync)(tsDevToolsRootPath, { recursive: true });
22
+ (0, fs_1.copyFileSync)((0, path_1.resolve)(__dirname, "../../package.json"), (0, path_1.join)(tsDevToolsRootPath, "package.json"));
23
23
  // Fake migrations
24
- var tsDevToolsDistPath = path_1.join(tsDevToolsRootPath, "dist");
25
- fs_1.symlinkSync(path_1.resolve(__dirname, ".."), tsDevToolsDistPath);
24
+ var tsDevToolsDistPath = (0, path_1.join)(tsDevToolsRootPath, "dist");
25
+ (0, fs_1.symlinkSync)((0, path_1.resolve)(__dirname, ".."), tsDevToolsDistPath);
26
26
  restorePackageJson(filename);
27
27
  return testProjectDirPath;
28
28
  }
29
29
  exports.createTestProjectDir = createTestProjectDir;
30
30
  function getTsDevToolsRootPath(filename) {
31
31
  var testProjectDirPath = getTestProjectDirPath(filename);
32
- if (!fs_1.existsSync(testProjectDirPath)) {
33
- throw new Error("Test project dir \"" + testProjectDirPath + "\" does not exist");
32
+ if (!(0, fs_1.existsSync)(testProjectDirPath)) {
33
+ throw new Error("Test project dir \"".concat(testProjectDirPath, "\" does not exist"));
34
34
  }
35
- return path_1.join(testProjectDirPath, "node_modules/@ts-dev-tools/core");
35
+ return (0, path_1.join)(testProjectDirPath, "node_modules/@ts-dev-tools/core");
36
36
  }
37
37
  exports.getTsDevToolsRootPath = getTsDevToolsRootPath;
38
38
  function restorePackageJson(filename) {
39
39
  var testProjectDirPath = getTestProjectDirPath(filename);
40
- if (!fs_1.existsSync(testProjectDirPath)) {
41
- throw new Error("Test project dir \"" + testProjectDirPath + "\" does not exist");
40
+ if (!(0, fs_1.existsSync)(testProjectDirPath)) {
41
+ throw new Error("Test project dir \"".concat(testProjectDirPath, "\" does not exist"));
42
42
  }
43
- fs_1.copyFileSync(defaultPackageJsonPath, path_1.join(testProjectDirPath, "package.json"));
43
+ (0, fs_1.copyFileSync)(defaultPackageJsonPath, (0, path_1.join)(testProjectDirPath, "package.json"));
44
44
  }
45
45
  exports.restorePackageJson = restorePackageJson;
46
46
  function removeTestProjectDir(filename) {
47
47
  var testProjectDirPath = getTestProjectDirPath(filename);
48
- if (!fs_1.existsSync(testProjectDirPath)) {
49
- throw new Error("Test project dir \"" + testProjectDirPath + "\" does not exist");
48
+ if (!(0, fs_1.existsSync)(testProjectDirPath)) {
49
+ throw new Error("Test project dir \"".concat(testProjectDirPath, "\" does not exist"));
50
50
  }
51
51
  deleteFolderRecursive(testProjectDirPath);
52
52
  }
53
53
  exports.removeTestProjectDir = removeTestProjectDir;
54
54
  function deleteFolderRecursive(path) {
55
- if (fs_1.existsSync(path)) {
56
- fs_1.readdirSync(path).forEach(function (file) {
57
- var curPath = path_1.join(path, file);
58
- if (fs_1.lstatSync(curPath).isDirectory()) {
55
+ if ((0, fs_1.existsSync)(path)) {
56
+ (0, fs_1.readdirSync)(path).forEach(function (file) {
57
+ var curPath = (0, path_1.join)(path, file);
58
+ if ((0, fs_1.lstatSync)(curPath).isDirectory()) {
59
59
  // recurse
60
60
  deleteFolderRecursive(curPath);
61
61
  }
62
62
  else {
63
63
  // delete file
64
- fs_1.unlinkSync(curPath);
64
+ (0, fs_1.unlinkSync)(curPath);
65
65
  }
66
66
  });
67
- fs_1.rmdirSync(path);
67
+ (0, fs_1.rmdirSync)(path);
68
68
  }
69
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-dev-tools/core",
3
- "version": "1.5.5",
3
+ "version": "1.5.12",
4
4
  "description": "TS dev tools Core",
5
5
  "keywords": [
6
6
  "linter",
@@ -41,26 +41,26 @@
41
41
  "url": "https://github.com/escemi-tech/ts-dev-tools/issues"
42
42
  },
43
43
  "dependencies": {
44
- "@commitlint/cli": "^12.1.4",
45
- "@commitlint/config-conventional": "^12.1.4",
46
- "@types/jest": "^26.0.23",
47
- "@types/node": "^15.6.1",
48
- "@typescript-eslint/eslint-plugin": "^4.25.0",
49
- "@typescript-eslint/parser": "^4.25.0",
50
- "eslint": "^7.27.0",
44
+ "@commitlint/cli": "^16.0.2",
45
+ "@commitlint/config-conventional": "^16.0.0",
46
+ "@types/jest": "^27.4.0",
47
+ "@types/node": "^17.0.8",
48
+ "@typescript-eslint/eslint-plugin": "^5.9.1",
49
+ "@typescript-eslint/parser": "^5.9.1",
50
+ "eslint": "^8.6.0",
51
51
  "eslint-config-prettier": "^8.3.0",
52
- "eslint-plugin-import": "^2.23.3",
53
- "eslint-plugin-jest": "^24.3.6",
52
+ "eslint-plugin-import": "^2.25.4",
53
+ "eslint-plugin-jest": "^25.3.4",
54
54
  "eslint-plugin-node": "^11.1.0",
55
- "eslint-plugin-promise": "^5.1.0",
55
+ "eslint-plugin-promise": "^6.0.0",
56
56
  "import-sort-style-module": "^6.0.0",
57
- "jest": "^27.0.1",
58
- "lint-staged": "^11.0.0",
59
- "prettier": "^2.3.0",
57
+ "jest": "^27.4.7",
58
+ "lint-staged": "^12.1.7",
59
+ "prettier": "^2.5.1",
60
60
  "prettier-plugin-import-sort": "^0.0.7",
61
- "pretty-quick": "^3.1.0",
62
- "ts-jest": "^27.0.1",
63
- "typescript": "^4.3.2"
61
+ "pretty-quick": "^3.1.3",
62
+ "ts-jest": "^27.1.2",
63
+ "typescript": "^4.5.4"
64
64
  },
65
65
  "devDependencies": {
66
66
  "pinst": "^2.1.6"
@@ -106,5 +106,5 @@
106
106
  "**/?(*.)+(spec|test).+(ts|tsx|js)"
107
107
  ]
108
108
  },
109
- "gitHead": "9d93df14e476ac0e84ce2930e474fe7dccce5545"
109
+ "gitHead": "a06e7e7a94015473a2d6d8250be46276ef3aa09b"
110
110
  }
package/CHANGELOG.md DELETED
@@ -1,272 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## 1.5.5 (2021-05-28)
7
-
8
- **Note:** Version bump only for package @ts-dev-tools/core
9
-
10
-
11
-
12
-
13
-
14
- ## 1.5.4 (2021-04-30)
15
-
16
- **Note:** Version bump only for package @ts-dev-tools/core
17
-
18
-
19
-
20
-
21
-
22
- ## 1.5.3 (2021-04-09)
23
-
24
- **Note:** Version bump only for package @ts-dev-tools/core
25
-
26
-
27
-
28
-
29
-
30
- ## 1.5.2 (2021-03-26)
31
-
32
- **Note:** Version bump only for package @ts-dev-tools/core
33
-
34
-
35
-
36
-
37
-
38
- ## 1.5.1 (2021-03-23)
39
-
40
-
41
- ### Bug Fixes
42
-
43
- * **core:** commit-msg hooks wrongly escaped argument ([4e648a8](https://github.com/escemi-tech/ts-dev-tools/commit/4e648a8aaa858b67130871e10f8db2fda345cdc6))
44
-
45
-
46
-
47
-
48
-
49
- # 1.5.0 (2021-03-23)
50
-
51
-
52
- ### Features
53
-
54
- * **core:** remove husky dependency ([00d47b4](https://github.com/escemi-tech/ts-dev-tools/commit/00d47b461f0a0f4e69ce14c5f08ad8fbaeee8896))
55
-
56
-
57
-
58
-
59
-
60
- ## 1.4.10 (2021-03-17)
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * **react:** various issues for first migration ([0d09c44](https://github.com/escemi-tech/ts-dev-tools/commit/0d09c44a8dc144c1ffc2bed7290faf365c34e6a0))
66
-
67
-
68
-
69
-
70
-
71
- ## 1.4.9 (2021-03-12)
72
-
73
- **Note:** Version bump only for package @ts-dev-tools/core
74
-
75
-
76
-
77
-
78
-
79
- ## 1.4.8 (2020-12-26)
80
-
81
- **Note:** Version bump only for package @ts-dev-tools/core
82
-
83
-
84
-
85
-
86
-
87
- ## 1.4.7 (2020-12-18)
88
-
89
- **Note:** Version bump only for package @ts-dev-tools/core
90
-
91
-
92
-
93
-
94
-
95
- ## 1.4.6 (2020-12-18)
96
-
97
- **Note:** Version bump only for package @ts-dev-tools/core
98
-
99
-
100
-
101
-
102
-
103
- ## 1.4.5 (2020-12-11)
104
-
105
- **Note:** Version bump only for package @ts-dev-tools/core
106
-
107
-
108
-
109
-
110
-
111
- ## 1.4.4 (2020-12-04)
112
-
113
- **Note:** Version bump only for package @ts-dev-tools/core
114
-
115
-
116
-
117
-
118
-
119
- ## 1.4.3 (2020-11-27)
120
-
121
- **Note:** Version bump only for package @ts-dev-tools/core
122
-
123
-
124
-
125
-
126
-
127
- ## 1.4.2 (2020-11-24)
128
-
129
- **Note:** Version bump only for package @ts-dev-tools/core
130
-
131
-
132
-
133
-
134
-
135
- ## 1.4.1 (2020-11-19)
136
-
137
- **Note:** Version bump only for package @ts-dev-tools/core
138
-
139
-
140
-
141
-
142
-
143
- # 1.4.0 (2020-11-17)
144
-
145
-
146
- ### Features
147
-
148
- * **desp:** upgrade eslint deps ([8c730f5](https://github.com/escemi-tech/ts-dev-tools/commit/8c730f5baa8944a2eb2c542a3b02253c989cce61))
149
-
150
-
151
-
152
-
153
-
154
- ## 1.3.7 (2020-11-13)
155
-
156
- **Note:** Version bump only for package @ts-dev-tools/core
157
-
158
-
159
-
160
-
161
-
162
- ## 1.3.6 (2020-11-13)
163
-
164
-
165
- ### Bug Fixes
166
-
167
- * **react:** add missing dependency for @testing-library/react-hooks ([f94882a](https://github.com/escemi-tech/ts-dev-tools/commit/f94882a34c79f789fcef5ee2ec42c8399c7acd21))
168
-
169
-
170
-
171
-
172
-
173
- ## 1.3.5 (2020-11-12)
174
-
175
- **Note:** Version bump only for package @ts-dev-tools/core
176
-
177
-
178
-
179
-
180
-
181
- ## 1.3.4 (2020-11-11)
182
-
183
- **Note:** Version bump only for package @ts-dev-tools/core
184
-
185
-
186
-
187
-
188
-
189
- ## 1.3.3 (2020-11-11)
190
-
191
-
192
- ### Bug Fixes
193
-
194
- * typescript build config ignore dist dir ([993bbb8](https://github.com/escemi-tech/ts-dev-tools/commit/993bbb8b45c8e234d6964aaead5d0ce0eac8901d))
195
-
196
-
197
-
198
-
199
-
200
- ## 1.3.2 (2020-11-11)
201
-
202
- **Note:** Version bump only for package @ts-dev-tools/core
203
-
204
-
205
-
206
-
207
-
208
- ## 1.3.1 (2020-11-11)
209
-
210
-
211
- ### Bug Fixes
212
-
213
- * **core:** use itself ([fe9fd79](https://github.com/escemi-tech/ts-dev-tools/commit/fe9fd790270d09500a8197c1ae2204492b46aa68))
214
-
215
-
216
-
217
-
218
-
219
- # 1.3.0 (2020-11-09)
220
-
221
-
222
- ### Features
223
-
224
- * add test tools ([a73a3fb](https://github.com/escemi-tech/ts-dev-tools/commit/a73a3fb1a1e7f1ed982356f8d02984d9a09d1f2b))
225
-
226
-
227
-
228
-
229
-
230
- # 1.2.0 (2020-11-09)
231
-
232
-
233
- ### Features
234
-
235
- * prepare for plugin installation ([ab7d4e6](https://github.com/escemi-tech/ts-dev-tools/commit/ab7d4e6203631907c3a0e86255f6866a8a0c7c2a))
236
-
237
-
238
-
239
-
240
-
241
- ## 1.1.3 (2020-11-09)
242
-
243
- **Note:** Version bump only for package @ts-dev-tools/core
244
-
245
-
246
-
247
-
248
-
249
- ## 1.1.2 (2020-11-09)
250
-
251
-
252
- ### Bug Fixes
253
-
254
- * install script ([7bf8a4e](https://github.com/escemi-tech/ts-dev-tools/commit/7bf8a4ed404ba4d18fd9fc75c9753dabe27fdd36))
255
-
256
-
257
-
258
-
259
-
260
- ## 1.1.1 (2020-10-29)
261
-
262
- **Note:** Version bump only for package @ts-dev-tools/core
263
-
264
-
265
-
266
-
267
-
268
- # 1.1.0 (2020-10-29)
269
-
270
- ### Features
271
-
272
- - initialize project ([47760c4](https://github.com/escemi-tech/ts-dev-tools/commit/47760c49ad7823b019cc2e7ae8c06b8f54639b1c))