dotcom-tool-kit 1.8.4-beta.1 → 2.0.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"postInstall.d.ts","sourceRoot":"","sources":["../src/postInstall.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAGrC;;;GAGG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,iBAgC/C"}
1
+ {"version":3,"file":"postInstall.d.ts","sourceRoot":"","sources":["../src/postInstall.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAGrC;;;GAGG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgC/D"}
@@ -4,7 +4,7 @@ exports.postInstall = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const path_1 = (0, tslib_1.__importDefault)(require("path"));
6
6
  const fs_1 = require("fs");
7
- const npm_publish_1 = require("@dotcom-tool-kit/npm/lib/tasks/npm-publish");
7
+ const npm_1 = require("@dotcom-tool-kit/types/lib/npm");
8
8
  const YAML = (0, tslib_1.__importStar)(require("yaml"));
9
9
  const lodash_merge_1 = (0, tslib_1.__importDefault)(require("lodash.merge"));
10
10
  const circleci_1 = require("@dotcom-tool-kit/types/lib/circleci");
@@ -16,14 +16,14 @@ async function postInstall(logger) {
16
16
  const circleConfigPath = path_1.default.resolve(process.cwd(), '.circleci/config.yml');
17
17
  try {
18
18
  const rawCircleConfig = await fs_1.promises.readFile(circleConfigPath, 'utf8');
19
- if (rawCircleConfig && rawCircleConfig.includes(npm_publish_1.semVerRegex.source) && rawCircleConfig.startsWith(circleci_1.automatedComment)) {
19
+ if (rawCircleConfig && rawCircleConfig.includes(npm_1.semVerRegex.source) && rawCircleConfig.startsWith(circleci_1.automatedComment)) {
20
20
  logger.verbose('running postInstall step');
21
21
  const yml = YAML.parseDocument(rawCircleConfig);
22
22
  const workflows = yml.get('workflows');
23
23
  const toolkitWorkflow = workflows.get('tool-kit');
24
24
  const jobs = toolkitWorkflow.get('jobs');
25
25
  jobs === null || jobs === void 0 ? void 0 : jobs.items.forEach((jobItem, index) => {
26
- const tagsFilterConfig = { filters: { tags: { only: `${npm_publish_1.semVerRegex}` } } };
26
+ const tagsFilterConfig = { filters: { tags: { only: `${npm_1.semVerRegex}` } } };
27
27
  if (jobItem.type === 'PLAIN') { // eg. - checkout
28
28
  const node = YAML.createNode({ [jobItem.value]: tagsFilterConfig });
29
29
  jobs.items[index] = node;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotcom-tool-kit",
3
- "version": "1.8.4-beta.1",
3
+ "version": "2.0.0",
4
4
  "description": "modern, maintainable, modular developer tooling for FT.com projects",
5
5
  "author": "FT.com Platforms Team <platforms-team.customer-products@ft.com>",
6
6
  "license": "MIT",
@@ -20,7 +20,6 @@
20
20
  "test": "cd ../../ ; npx jest --silent --projects core/cli"
21
21
  },
22
22
  "devDependencies": {
23
- "@dotcom-tool-kit/circleci": "file:../../plugins/circleci",
24
23
  "@jest/globals": "^27.4.6",
25
24
  "@types/lodash.merge": "^4.6.6",
26
25
  "@types/lodash.mergewith": "^4.6.6",
@@ -31,12 +30,12 @@
31
30
  "winston": "^3.5.1"
32
31
  },
33
32
  "dependencies": {
34
- "@dotcom-tool-kit/error": "^1.8.4-beta.1",
35
- "@dotcom-tool-kit/hook": "^1.8.4-beta.1",
36
- "@dotcom-tool-kit/logger": "^1.8.4-beta.1",
37
- "@dotcom-tool-kit/options": "^1.8.4-beta.1",
38
- "@dotcom-tool-kit/types": "^1.8.4-beta.1",
39
- "@dotcom-tool-kit/wait-for-ok": "^1.8.4-beta.1",
33
+ "@dotcom-tool-kit/error": "^2.0.0",
34
+ "@dotcom-tool-kit/hook": "^2.0.0",
35
+ "@dotcom-tool-kit/logger": "^2.0.0",
36
+ "@dotcom-tool-kit/options": "^2.0.0",
37
+ "@dotcom-tool-kit/types": "^2.0.0",
38
+ "@dotcom-tool-kit/wait-for-ok": "^2.0.0",
40
39
  "cosmiconfig": "^7.0.0",
41
40
  "import-from": "^3.0.0",
42
41
  "lodash.merge": "^4.6.2",
@@ -57,4 +56,4 @@
57
56
  "volta": {
58
57
  "extends": "../../package.json"
59
58
  }
60
- }
59
+ }