@atlaspack/reporter-bundle-buddy 2.14.5-canary.14 → 2.14.5-canary.140

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/CHANGELOG.md CHANGED
@@ -1,5 +1,117 @@
1
1
  # @atlaspack/reporter-bundle-buddy
2
2
 
3
+ ## 2.14.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/plugin@2.14.21
9
+
10
+ ## 2.14.20
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
15
+ - @atlaspack/plugin@2.14.20
16
+
17
+ ## 2.14.19
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies []:
22
+ - @atlaspack/plugin@2.14.19
23
+
24
+ ## 2.14.18
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies []:
29
+ - @atlaspack/plugin@2.14.18
30
+
31
+ ## 2.14.17
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies []:
36
+ - @atlaspack/plugin@2.14.17
37
+
38
+ ## 2.14.16
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies []:
43
+ - @atlaspack/plugin@2.14.16
44
+
45
+ ## 2.14.15
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies []:
50
+ - @atlaspack/plugin@2.14.15
51
+
52
+ ## 2.14.14
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies []:
57
+ - @atlaspack/plugin@2.14.14
58
+
59
+ ## 2.14.13
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies []:
64
+ - @atlaspack/plugin@2.14.13
65
+
66
+ ## 2.14.12
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies []:
71
+ - @atlaspack/plugin@2.14.12
72
+
73
+ ## 2.14.11
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies []:
78
+ - @atlaspack/plugin@2.14.11
79
+
80
+ ## 2.14.10
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies []:
85
+ - @atlaspack/plugin@2.14.10
86
+
87
+ ## 2.14.9
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies []:
92
+ - @atlaspack/plugin@2.14.9
93
+
94
+ ## 2.14.8
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies []:
99
+ - @atlaspack/plugin@2.14.8
100
+
101
+ ## 2.14.7
102
+
103
+ ### Patch Changes
104
+
105
+ - Updated dependencies []:
106
+ - @atlaspack/plugin@2.14.7
107
+
108
+ ## 2.14.6
109
+
110
+ ### Patch Changes
111
+
112
+ - Updated dependencies []:
113
+ - @atlaspack/plugin@2.14.6
114
+
3
115
  ## 2.14.5
4
116
 
5
117
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ import { Reporter } from '@atlaspack/plugin';
2
+ declare const _default: Reporter;
3
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/reporter-bundle-buddy",
3
- "version": "2.14.5-canary.14+267b0d591",
3
+ "version": "2.14.5-canary.140+43fdd2238",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,14 +9,18 @@
9
9
  "type": "git",
10
10
  "url": "https://github.com/atlassian-labs/atlaspack.git"
11
11
  },
12
- "main": "lib/BundleBuddyReporter.js",
13
- "source": "src/BundleBuddyReporter.js",
12
+ "main": "./lib/BundleBuddyReporter.js",
13
+ "source": "./src/BundleBuddyReporter.ts",
14
+ "types": "./lib/BundleBuddyReporter.d.ts",
14
15
  "engines": {
15
16
  "node": ">= 16.0.0"
16
17
  },
17
18
  "dependencies": {
18
- "@atlaspack/plugin": "2.14.5-canary.14+267b0d591"
19
+ "@atlaspack/plugin": "2.14.5-canary.140+43fdd2238"
19
20
  },
20
21
  "type": "commonjs",
21
- "gitHead": "267b0d59131c00e4cd1526bbf87aa84b9c8fd411"
22
- }
22
+ "scripts": {
23
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src"
24
+ },
25
+ "gitHead": "43fdd223860fbc97af17d68c65419b97412cb888"
26
+ }
@@ -1,9 +1,8 @@
1
- // @flow strict-local
2
1
  import type {PackagedBundle} from '@atlaspack/types';
3
2
  import {Reporter} from '@atlaspack/plugin';
4
3
  import path from 'path';
5
4
 
6
- export default (new Reporter({
5
+ export default new Reporter({
7
6
  async report({event, options, logger}) {
8
7
  if (event.type !== 'buildSuccess') {
9
8
  return;
@@ -21,7 +20,10 @@ export default (new Reporter({
21
20
  }
22
21
 
23
22
  for (let [targetDir, bundles] of bundlesByTarget) {
24
- let out = [];
23
+ let out: Array<{
24
+ source: string;
25
+ target: string;
26
+ }> = [];
25
27
 
26
28
  for (let bundle of bundles) {
27
29
  bundle.traverseAssets((asset) => {
@@ -52,4 +54,4 @@ export default (new Reporter({
52
54
  });
53
55
  }
54
56
  },
55
- }): Reporter);
57
+ }) as Reporter;
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["src"]
4
+ }