@dotcom-tool-kit/circleci-npm 1.0.2-beta.10 → 1.0.2-beta.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/.toolkitrc.yml +3 -0
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -6
- package/package.json +4 -4
package/.toolkitrc.yml
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import CircleCiConfigHook from '@dotcom-tool-kit/circleci/lib/circleci-config';
|
|
2
|
-
import NpmPublish from '@dotcom-tool-kit/npm/
|
|
2
|
+
import NpmPublish from '@dotcom-tool-kit/npm/lib/tasks/npm-publish';
|
|
3
3
|
export declare const tasks: (typeof NpmPublish)[];
|
|
4
4
|
declare class PublishHook extends CircleCiConfigHook {
|
|
5
5
|
job: string;
|
|
@@ -10,13 +10,13 @@ declare class PublishHook extends CircleCiConfigHook {
|
|
|
10
10
|
ignore: string;
|
|
11
11
|
};
|
|
12
12
|
tags: {
|
|
13
|
-
only:
|
|
13
|
+
only: string;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
export declare const hooks: {
|
|
19
|
-
'publish:
|
|
19
|
+
'publish:tag': typeof PublishHook;
|
|
20
20
|
};
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,+CAA+C,CAAA;AAC9E,OAAO,UAA2B,MAAM,4CAA4C,CAAA;AAEpF,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,+CAA+C,CAAA;AAC9E,OAAO,UAA2B,MAAM,4CAA4C,CAAA;AAEpF,eAAO,MAAM,KAAK,uBAAe,CAAA;AAEjC,cAAM,WAAY,SAAQ,kBAAkB;IAC1C,GAAG,SAAqB;IACxB,UAAU;;;;;;;;;;MAMT;CACF;AAED,eAAO,MAAM,KAAK;;CAEjB,CAAA"}
|
package/lib/index.js
CHANGED
|
@@ -3,10 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.hooks = exports.tasks = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const circleci_config_1 = (0, tslib_1.__importDefault)(require("@dotcom-tool-kit/circleci/lib/circleci-config"));
|
|
6
|
-
const npm_publish_1 = (0, tslib_1.__importStar)(require("@dotcom-tool-kit/npm/
|
|
7
|
-
exports.tasks = [
|
|
8
|
-
npm_publish_1.default
|
|
9
|
-
];
|
|
6
|
+
const npm_publish_1 = (0, tslib_1.__importStar)(require("@dotcom-tool-kit/npm/lib/tasks/npm-publish"));
|
|
7
|
+
exports.tasks = [npm_publish_1.default];
|
|
10
8
|
class PublishHook extends circleci_config_1.default {
|
|
11
9
|
constructor() {
|
|
12
10
|
super(...arguments);
|
|
@@ -15,11 +13,11 @@ class PublishHook extends circleci_config_1.default {
|
|
|
15
13
|
requires: ['tool-kit/test'],
|
|
16
14
|
filters: {
|
|
17
15
|
branches: { ignore: '/.*/' },
|
|
18
|
-
tags: { only: npm_publish_1.semVerRegex }
|
|
16
|
+
tags: { only: `${npm_publish_1.semVerRegex}` }
|
|
19
17
|
}
|
|
20
18
|
};
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
exports.hooks = {
|
|
24
|
-
'publish:
|
|
22
|
+
'publish:tag': PublishHook
|
|
25
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcom-tool-kit/circleci-npm",
|
|
3
|
-
"version": "1.0.2-beta.
|
|
3
|
+
"version": "1.0.2-beta.12",
|
|
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": "^1.0.2-beta.
|
|
14
|
-
"@dotcom-tool-kit/circleci": "^1.0.2-beta.
|
|
15
|
-
"@dotcom-tool-kit/npm": "^1.0.2-beta.
|
|
13
|
+
"@dotcom-tool-kit/types": "^1.0.2-beta.12",
|
|
14
|
+
"@dotcom-tool-kit/circleci": "^1.0.2-beta.12",
|
|
15
|
+
"@dotcom-tool-kit/npm": "^1.0.2-beta.12"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|