@dotcom-tool-kit/upload-assets-to-s3 1.2.0 → 1.3.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,4 +1,4 @@
1
- import { Task } from '@dotcom-tool-kit/task';
1
+ import { Task } from '@dotcom-tool-kit/types';
2
2
  import { UploadAssetsToS3Options, UploadAssetsToS3Schema } from '@dotcom-tool-kit/types/lib/schema/upload-assets-to-s3';
3
3
  export default class UploadAssetsToS3 extends Task<typeof UploadAssetsToS3Schema> {
4
4
  static description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"upload-assets-to-s3.d.ts","sourceRoot":"","sources":["../../src/tasks/upload-assets-to-s3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAM5C,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,uDAAuD,CAAA;AAE9D,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,IAAI,CAAC,OAAO,sBAAsB,CAAC;IAC/E,MAAM,CAAC,WAAW,SAAK;IAEvB,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAS7C;IAEK,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAG3B"}
1
+ {"version":3,"file":"upload-assets-to-s3.d.ts","sourceRoot":"","sources":["../../src/tasks/upload-assets-to-s3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAM7C,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,uDAAuD,CAAA;AAE9D,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,IAAI,CAAC,OAAO,sBAAsB,CAAC;IAC/E,MAAM,CAAC,WAAW,SAAK;IAEvB,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAS7C;IAEK,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAG3B"}
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const task_1 = require("@dotcom-tool-kit/task");
4
+ const types_1 = require("@dotcom-tool-kit/types");
5
5
  const fs = (0, tslib_1.__importStar)(require("fs"));
6
6
  const aws_sdk_1 = (0, tslib_1.__importDefault)(require("aws-sdk"));
7
7
  const path_1 = (0, tslib_1.__importDefault)(require("path"));
8
8
  const mime_1 = (0, tslib_1.__importDefault)(require("mime"));
9
9
  const glob_1 = require("glob");
10
- class UploadAssetsToS3 extends task_1.Task {
10
+ class UploadAssetsToS3 extends types_1.Task {
11
11
  async run() {
12
12
  await uploadAssetsToS3(this.options);
13
13
  }
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@dotcom-tool-kit/upload-assets-to-s3",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "main": "lib",
6
6
  "scripts": {
7
- "test": "cd ../../ ; npx jest --silent --projects packages/upload-assets-to-s3"
7
+ "test": "cd ../../ ; npx jest --silent --projects plugins/upload-assets-to-s3"
8
8
  },
9
9
  "keywords": [],
10
10
  "author": "FT.com Platforms Team <platforms-team.customer-products@ft.com>",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dotcom-tool-kit/task": "^1.2.0",
14
- "@dotcom-tool-kit/types": "^1.2.0",
13
+ "@dotcom-tool-kit/types": "^1.3.0",
15
14
  "aws-sdk": "^2.901.0",
16
15
  "glob": "^7.1.6",
17
16
  "mime": "^2.5.2"
@@ -19,15 +18,15 @@
19
18
  "repository": {
20
19
  "type": "git",
21
20
  "url": "https://github.com/financial-times/dotcom-tool-kit.git",
22
- "directory": "packages/upload-assets-to-s3"
21
+ "directory": "plugins/upload-assets-to-s3"
23
22
  },
24
23
  "bugs": "https://github.com/financial-times/dotcom-tool-kit/issues",
25
- "homepage": "https://github.com/financial-times/dotcom-tool-kit/tree/main/packages/upload-assets-to-s3",
24
+ "homepage": "https://github.com/financial-times/dotcom-tool-kit/tree/main/plugins/upload-assets-to-s3",
26
25
  "devDependencies": {
27
26
  "@aws-sdk/types": "^3.13.1",
28
- "@jest/globals": "^26.6.2",
27
+ "@jest/globals": "^27.4.6",
29
28
  "@types/glob": "^7.1.3",
30
- "@types/jest": "^26.0.23",
29
+ "@types/jest": "^27.4.0",
31
30
  "@types/mime": "^2.0.3"
32
31
  },
33
32
  "files": [