Skip to content

Commit 84aed20

Browse files
committed
.
1 parent 7b6d656 commit 84aed20

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"bugs": {
2929
"url": "https://github.com/webpack-contrib/s3-plugin-webpack/issues"
3030
},
31-
"homepage": "https://github.com/LIVEauctioneers/s3-plugin-webpack",
31+
"homepage": "https://github.com/webpack-contrib/s3-plugin-webpack",
3232
"dependencies": {
3333
"@aws-sdk/abort-controller": "^3.374.0",
3434
"@aws-sdk/client-cloudfront": "^3.772.0",

src/s3_plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {CloudFront} from '@aws-sdk/client-cloudfront'
1010
import {S3} from '@aws-sdk/client-s3'
1111
import {Upload} from '@aws-sdk/lib-storage'
1212

13-
import packageJson from '../package.json'
13+
import packageJson from '../package.json' with { 'type': 'json' }
1414

1515
import {
1616
addSeperatorToPath,

test/s3_options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const {
1010
CLOUDFRONT_DISTRIBUTION_ID,
1111
} = process.env
1212

13-
export const S3Opts = {
13+
const S3Opts = {
1414
AWS_BUCKET,
1515
AWS_REGION,
1616
AWS_ACCESS_KEY,
@@ -32,3 +32,5 @@ export const S3Opts = {
3232
Items: ['/*'],
3333
},
3434
}
35+
36+
export default S3Opts

test/upload_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import _ from 'lodash'
22
import path from 'path'
3-
import {S3Opts} from './s3_options.js'
4-
import {testHelpers} from './upload_test_helpers.js'
3+
import S3Opts from './s3_options.js'
4+
import testHelpers from './upload_test_helpers.js'
55
import {assert} from 'chai'
66
import * as sinon from 'sinon'
77

test/upload_test_helpers.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import webpack from 'webpack'
55
import fs from 'fs'
66
import {S3} from '@aws-sdk/client-s3'
77
import HtmlWebpackPlugin from 'html-webpack-plugin'
8-
import {S3Opts as s3Opts} from './s3_options.js'
9-
import {default as S3WebpackPlugin} from '../src/s3_plugin.js'
8+
import s3Opts from './s3_options.js'
9+
import S3WebpackPlugin from '../src/s3_plugin.js'
1010
import {assert} from 'chai'
1111
import {spawnSync} from 'child_process'
1212
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
@@ -58,7 +58,7 @@ var generateS3Config = function(config) {
5858
return new S3WebpackPlugin(params)
5959
}
6060

61-
export const testHelpers = {
61+
const testHelpers = {
6262
OUTPUT_FILE_NAME,
6363
OUTPUT_PATH,
6464
S3_URL,
@@ -268,3 +268,5 @@ export const testHelpers = {
268268
})
269269
},
270270
}
271+
272+
export default testHelpers

0 commit comments

Comments
 (0)