@atlaspack/reporter-bundle-buddy 2.14.5-canary.16 → 2.14.5-canary.161

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,142 @@
1
1
  # @atlaspack/reporter-bundle-buddy
2
2
 
3
+ ## 2.14.25
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/types-internal@2.19.1
9
+ - @atlaspack/plugin@2.14.25
10
+
11
+ ## 2.14.24
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`7f5841c`](https://github.com/atlassian-labs/atlaspack/commit/7f5841c39df049f9546cccbeea2a7337e0337b45)]:
16
+ - @atlaspack/types-internal@2.19.0
17
+ - @atlaspack/plugin@2.14.24
18
+
19
+ ## 2.14.23
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies []:
24
+ - @atlaspack/plugin@2.14.23
25
+
26
+ ## 2.14.22
27
+
28
+ ### Patch Changes
29
+
30
+ - [#720](https://github.com/atlassian-labs/atlaspack/pull/720) [`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94) Thanks [@alshdavid](https://github.com/alshdavid)! - Migrate to TypeScript
31
+
32
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
33
+ - @atlaspack/plugin@2.14.22
34
+
35
+ ## 2.14.21
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies []:
40
+ - @atlaspack/plugin@2.14.21
41
+
42
+ ## 2.14.20
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
47
+ - @atlaspack/plugin@2.14.20
48
+
49
+ ## 2.14.19
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies []:
54
+ - @atlaspack/plugin@2.14.19
55
+
56
+ ## 2.14.18
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies []:
61
+ - @atlaspack/plugin@2.14.18
62
+
63
+ ## 2.14.17
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies []:
68
+ - @atlaspack/plugin@2.14.17
69
+
70
+ ## 2.14.16
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies []:
75
+ - @atlaspack/plugin@2.14.16
76
+
77
+ ## 2.14.15
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies []:
82
+ - @atlaspack/plugin@2.14.15
83
+
84
+ ## 2.14.14
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies []:
89
+ - @atlaspack/plugin@2.14.14
90
+
91
+ ## 2.14.13
92
+
93
+ ### Patch Changes
94
+
95
+ - Updated dependencies []:
96
+ - @atlaspack/plugin@2.14.13
97
+
98
+ ## 2.14.12
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies []:
103
+ - @atlaspack/plugin@2.14.12
104
+
105
+ ## 2.14.11
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies []:
110
+ - @atlaspack/plugin@2.14.11
111
+
112
+ ## 2.14.10
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies []:
117
+ - @atlaspack/plugin@2.14.10
118
+
119
+ ## 2.14.9
120
+
121
+ ### Patch Changes
122
+
123
+ - Updated dependencies []:
124
+ - @atlaspack/plugin@2.14.9
125
+
126
+ ## 2.14.8
127
+
128
+ ### Patch Changes
129
+
130
+ - Updated dependencies []:
131
+ - @atlaspack/plugin@2.14.8
132
+
133
+ ## 2.14.7
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies []:
138
+ - @atlaspack/plugin@2.14.7
139
+
3
140
  ## 2.14.6
4
141
 
5
142
  ### 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.16+4b2b575b9",
3
+ "version": "2.14.5-canary.161+ee040bb64",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,14 +9,20 @@
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/types/BundleBuddyReporter.d.ts",
14
15
  "engines": {
15
16
  "node": ">= 16.0.0"
16
17
  },
17
18
  "dependencies": {
18
- "@atlaspack/plugin": "2.14.5-canary.16+4b2b575b9"
19
+ "@atlaspack/plugin": "2.14.5-canary.161+ee040bb64",
20
+ "@atlaspack/types-internal": "2.14.1-canary.229+ee040bb64"
19
21
  },
20
22
  "type": "commonjs",
21
- "gitHead": "4b2b575b98951f2dcf0c45ed8e94359b23b43815"
23
+ "scripts": {
24
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src",
25
+ "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
26
+ },
27
+ "gitHead": "ee040bb6428f29b57d892ddd8107e29077d08ffd"
22
28
  }
@@ -1,9 +1,8 @@
1
- // @flow strict-local
2
- import type {PackagedBundle} from '@atlaspack/types';
1
+ import type {PackagedBundle} from '@atlaspack/types-internal';
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
+ }