@dotcom-tool-kit/circleci-npm 3.0.2 → 4.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.
package/lib/index.d.ts CHANGED
@@ -1,16 +1,7 @@
1
1
  import CircleCiConfigHook from '@dotcom-tool-kit/circleci/lib/circleci-config';
2
2
  declare class PublishHook extends CircleCiConfigHook {
3
- job: string;
4
- jobOptions: {
5
- context: string;
6
- requires: string[];
7
- filters: {
8
- branches: {
9
- ignore: string;
10
- };
11
- };
12
- };
13
- runOnVersionTags: boolean;
3
+ static job: string;
4
+ config: import("type-fest/source/partial-deep").PartialObjectDeep<import("@dotcom-tool-kit/types/lib/circleci").CircleConfig, {}>;
14
5
  }
15
6
  export declare const hooks: {
16
7
  'publish:tag': typeof PublishHook;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,+CAA+C,CAAA;AAE9E,cAAM,WAAY,SAAQ,kBAAkB;IAC1C,GAAG,SAAqB;IACxB,UAAU;;;;;;;;MAMT;IACD,gBAAgB,UAAO;CACxB;AAED,eAAO,MAAM,KAAK;;CAEjB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAA6C,MAAM,+CAA+C,CAAA;AAEzG,cAAM,WAAY,SAAQ,kBAAkB;IAC1C,MAAM,CAAC,GAAG,SAAqB;IAC/B,MAAM,4HAUJ;CACH;AAED,eAAO,MAAM,KAAK;;CAEjB,CAAA"}
package/lib/index.js CHANGED
@@ -2,21 +2,24 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hooks = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const circleci_config_1 = (0, tslib_1.__importDefault)(require("@dotcom-tool-kit/circleci/lib/circleci-config"));
5
+ const circleci_config_1 = tslib_1.__importStar(require("@dotcom-tool-kit/circleci/lib/circleci-config"));
6
6
  class PublishHook extends circleci_config_1.default {
7
7
  constructor() {
8
8
  super(...arguments);
9
- this.job = 'tool-kit/publish';
10
- this.jobOptions = {
11
- context: 'npm-publish-token',
9
+ this.config = (0, circleci_config_1.generateConfigWithJob)({
10
+ name: PublishHook.job,
12
11
  requires: ['tool-kit/test'],
13
- filters: {
14
- branches: { ignore: '/.*/' }
12
+ addToNightly: false,
13
+ additionalFields: {
14
+ context: 'npm-publish-token',
15
+ filters: {
16
+ branches: { ignore: '/.*/' }
17
+ }
15
18
  }
16
- };
17
- this.runOnVersionTags = true;
19
+ });
18
20
  }
19
21
  }
22
+ PublishHook.job = 'tool-kit/publish';
20
23
  exports.hooks = {
21
24
  'publish:tag': PublishHook
22
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcom-tool-kit/circleci-npm",
3
- "version": "3.0.2",
3
+ "version": "4.0.0",
4
4
  "description": "",
5
5
  "main": "lib",
6
6
  "scripts": {
@@ -10,9 +10,9 @@
10
10
  "author": "FT.com Platforms Team <platforms-team.customer-products@ft.com>",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dotcom-tool-kit/types": "^2.8.0",
14
- "@dotcom-tool-kit/circleci": "^3.0.2",
15
- "@dotcom-tool-kit/npm": "^2.0.13",
13
+ "@dotcom-tool-kit/types": "^2.9.0",
14
+ "@dotcom-tool-kit/circleci": "^4.0.0",
15
+ "@dotcom-tool-kit/npm": "^2.0.14",
16
16
  "tslib": "^2.3.1"
17
17
  },
18
18
  "repository": {
@@ -27,6 +27,6 @@
27
27
  ".toolkitrc.yml"
28
28
  ],
29
29
  "peerDependencies": {
30
- "dotcom-tool-kit": "2.x"
30
+ "dotcom-tool-kit": "^2.6.0"
31
31
  }
32
32
  }