@atlaspack/resolver-default 2.14.5-canary.14 → 2.14.5-canary.141

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,135 @@
1
1
  # @atlaspack/resolver-default
2
2
 
3
+ ## 2.14.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/node-resolver-core@3.5.21
9
+ - @atlaspack/plugin@2.14.21
10
+
11
+ ## 2.14.20
12
+
13
+ ### Patch Changes
14
+
15
+ - [#702](https://github.com/atlassian-labs/atlaspack/pull/702) [`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixes to Flow types
16
+
17
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
18
+ - @atlaspack/plugin@2.14.20
19
+ - @atlaspack/node-resolver-core@3.5.20
20
+
21
+ ## 2.14.19
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies []:
26
+ - @atlaspack/node-resolver-core@3.5.19
27
+ - @atlaspack/plugin@2.14.19
28
+
29
+ ## 2.14.18
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies []:
34
+ - @atlaspack/node-resolver-core@3.5.18
35
+ - @atlaspack/plugin@2.14.18
36
+
37
+ ## 2.14.17
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies []:
42
+ - @atlaspack/node-resolver-core@3.5.17
43
+ - @atlaspack/plugin@2.14.17
44
+
45
+ ## 2.14.16
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies []:
50
+ - @atlaspack/node-resolver-core@3.5.16
51
+ - @atlaspack/plugin@2.14.16
52
+
53
+ ## 2.14.15
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies []:
58
+ - @atlaspack/node-resolver-core@3.5.15
59
+ - @atlaspack/plugin@2.14.15
60
+
61
+ ## 2.14.14
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies []:
66
+ - @atlaspack/node-resolver-core@3.5.14
67
+ - @atlaspack/plugin@2.14.14
68
+
69
+ ## 2.14.13
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies []:
74
+ - @atlaspack/node-resolver-core@3.5.13
75
+ - @atlaspack/plugin@2.14.13
76
+
77
+ ## 2.14.12
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies []:
82
+ - @atlaspack/node-resolver-core@3.5.12
83
+ - @atlaspack/plugin@2.14.12
84
+
85
+ ## 2.14.11
86
+
87
+ ### Patch Changes
88
+
89
+ - Updated dependencies []:
90
+ - @atlaspack/node-resolver-core@3.5.11
91
+ - @atlaspack/plugin@2.14.11
92
+
93
+ ## 2.14.10
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies []:
98
+ - @atlaspack/node-resolver-core@3.5.10
99
+ - @atlaspack/plugin@2.14.10
100
+
101
+ ## 2.14.9
102
+
103
+ ### Patch Changes
104
+
105
+ - Updated dependencies []:
106
+ - @atlaspack/node-resolver-core@3.5.9
107
+ - @atlaspack/plugin@2.14.9
108
+
109
+ ## 2.14.8
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies []:
114
+ - @atlaspack/node-resolver-core@3.5.8
115
+ - @atlaspack/plugin@2.14.8
116
+
117
+ ## 2.14.7
118
+
119
+ ### Patch Changes
120
+
121
+ - Updated dependencies []:
122
+ - @atlaspack/node-resolver-core@3.5.7
123
+ - @atlaspack/plugin@2.14.7
124
+
125
+ ## 2.14.6
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies []:
130
+ - @atlaspack/node-resolver-core@3.5.6
131
+ - @atlaspack/plugin@2.14.6
132
+
3
133
  ## 2.14.5
4
134
 
5
135
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ import { Resolver } from '@atlaspack/plugin';
2
+ declare const _default: Resolver<unknown>;
3
+ export default _default;
@@ -39,6 +39,7 @@ var _default = exports.default = new (_plugin().Resolver)({
39
39
  shouldAutoInstall: options.shouldAutoInstall,
40
40
  mode: options.mode,
41
41
  logger,
42
+ // @ts-expect-error TS2339
42
43
  packageExports: (conf === null || conf === void 0 || (_conf$contents = conf.contents) === null || _conf$contents === void 0 ? void 0 : _conf$contents.packageExports) ?? false
43
44
  });
44
45
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/resolver-default",
3
- "version": "2.14.5-canary.14+267b0d591",
3
+ "version": "2.14.5-canary.141+2f29297bd",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,18 +9,22 @@
9
9
  "type": "git",
10
10
  "url": "https://github.com/atlassian-labs/atlaspack.git"
11
11
  },
12
- "main": "lib/DefaultResolver.js",
13
- "source": "src/DefaultResolver.js",
12
+ "main": "./lib/DefaultResolver.js",
13
+ "source": "./src/DefaultResolver.ts",
14
+ "types": "./lib/DefaultResolver.d.ts",
14
15
  "engines": {
15
16
  "node": ">= 16.0.0"
16
17
  },
17
18
  "dependencies": {
18
- "@atlaspack/node-resolver-core": "3.5.5-canary.14+267b0d591",
19
- "@atlaspack/plugin": "2.14.5-canary.14+267b0d591"
19
+ "@atlaspack/node-resolver-core": "3.5.5-canary.141+2f29297bd",
20
+ "@atlaspack/plugin": "2.14.5-canary.141+2f29297bd"
20
21
  },
21
22
  "devDependencies": {
22
23
  "@babel/core": "^7.22.11"
23
24
  },
24
25
  "type": "commonjs",
25
- "gitHead": "267b0d59131c00e4cd1526bbf87aa84b9c8fd411"
26
- }
26
+ "scripts": {
27
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src"
28
+ },
29
+ "gitHead": "2f29297bd550840c9840871559349ef773bcbf6d"
30
+ }
@@ -1,5 +1,3 @@
1
- // @flow
2
-
3
1
  import {Resolver} from '@atlaspack/plugin';
4
2
  import NodeResolver from '@atlaspack/node-resolver-core';
5
3
 
@@ -7,7 +5,7 @@ import NodeResolver from '@atlaspack/node-resolver-core';
7
5
  // ex. `imports-loader?$=jquery!./example.js`
8
6
  const WEBPACK_IMPORT_REGEX = /^\w+-loader(?:\?\S*)?!/;
9
7
 
10
- export default (new Resolver({
8
+ export default new Resolver({
11
9
  async loadConfig({config, options, logger}) {
12
10
  let conf = await config.getConfig([], {
13
11
  packageKey: '@atlaspack/resolver-default',
@@ -20,6 +18,7 @@ export default (new Resolver({
20
18
  shouldAutoInstall: options.shouldAutoInstall,
21
19
  mode: options.mode,
22
20
  logger,
21
+ // @ts-expect-error TS2339
23
22
  packageExports: conf?.contents?.packageExports ?? false,
24
23
  });
25
24
  },
@@ -41,4 +40,4 @@ export default (new Resolver({
41
40
  packageConditions: dependency.packageConditions,
42
41
  });
43
42
  },
44
- }): Resolver);
43
+ }) as Resolver<unknown>;
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["src"]
4
+ }