@atlaspack/resolver-default 2.14.5-canary.16 → 2.14.5-canary.160

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,161 @@
1
1
  # @atlaspack/resolver-default
2
2
 
3
+ ## 2.14.25
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/node-resolver-core@3.6.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/node-resolver-core@3.6.0
17
+ - @atlaspack/plugin@2.14.24
18
+
19
+ ## 2.14.23
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies []:
24
+ - @atlaspack/node-resolver-core@3.5.23
25
+ - @atlaspack/plugin@2.14.23
26
+
27
+ ## 2.14.22
28
+
29
+ ### Patch Changes
30
+
31
+ - [#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
32
+
33
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
34
+ - @atlaspack/node-resolver-core@3.5.22
35
+ - @atlaspack/plugin@2.14.22
36
+
37
+ ## 2.14.21
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies []:
42
+ - @atlaspack/node-resolver-core@3.5.21
43
+ - @atlaspack/plugin@2.14.21
44
+
45
+ ## 2.14.20
46
+
47
+ ### Patch Changes
48
+
49
+ - [#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
50
+
51
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
52
+ - @atlaspack/plugin@2.14.20
53
+ - @atlaspack/node-resolver-core@3.5.20
54
+
55
+ ## 2.14.19
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies []:
60
+ - @atlaspack/node-resolver-core@3.5.19
61
+ - @atlaspack/plugin@2.14.19
62
+
63
+ ## 2.14.18
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies []:
68
+ - @atlaspack/node-resolver-core@3.5.18
69
+ - @atlaspack/plugin@2.14.18
70
+
71
+ ## 2.14.17
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies []:
76
+ - @atlaspack/node-resolver-core@3.5.17
77
+ - @atlaspack/plugin@2.14.17
78
+
79
+ ## 2.14.16
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies []:
84
+ - @atlaspack/node-resolver-core@3.5.16
85
+ - @atlaspack/plugin@2.14.16
86
+
87
+ ## 2.14.15
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies []:
92
+ - @atlaspack/node-resolver-core@3.5.15
93
+ - @atlaspack/plugin@2.14.15
94
+
95
+ ## 2.14.14
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies []:
100
+ - @atlaspack/node-resolver-core@3.5.14
101
+ - @atlaspack/plugin@2.14.14
102
+
103
+ ## 2.14.13
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies []:
108
+ - @atlaspack/node-resolver-core@3.5.13
109
+ - @atlaspack/plugin@2.14.13
110
+
111
+ ## 2.14.12
112
+
113
+ ### Patch Changes
114
+
115
+ - Updated dependencies []:
116
+ - @atlaspack/node-resolver-core@3.5.12
117
+ - @atlaspack/plugin@2.14.12
118
+
119
+ ## 2.14.11
120
+
121
+ ### Patch Changes
122
+
123
+ - Updated dependencies []:
124
+ - @atlaspack/node-resolver-core@3.5.11
125
+ - @atlaspack/plugin@2.14.11
126
+
127
+ ## 2.14.10
128
+
129
+ ### Patch Changes
130
+
131
+ - Updated dependencies []:
132
+ - @atlaspack/node-resolver-core@3.5.10
133
+ - @atlaspack/plugin@2.14.10
134
+
135
+ ## 2.14.9
136
+
137
+ ### Patch Changes
138
+
139
+ - Updated dependencies []:
140
+ - @atlaspack/node-resolver-core@3.5.9
141
+ - @atlaspack/plugin@2.14.9
142
+
143
+ ## 2.14.8
144
+
145
+ ### Patch Changes
146
+
147
+ - Updated dependencies []:
148
+ - @atlaspack/node-resolver-core@3.5.8
149
+ - @atlaspack/plugin@2.14.8
150
+
151
+ ## 2.14.7
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies []:
156
+ - @atlaspack/node-resolver-core@3.5.7
157
+ - @atlaspack/plugin@2.14.7
158
+
3
159
  ## 2.14.6
4
160
 
5
161
  ### Patch Changes
@@ -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
  },
@@ -0,0 +1,3 @@
1
+ import { Resolver } from '@atlaspack/plugin';
2
+ declare const _default: Resolver<unknown>;
3
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/resolver-default",
3
- "version": "2.14.5-canary.16+4b2b575b9",
3
+ "version": "2.14.5-canary.160+4be63eda8",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,18 +9,23 @@
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/types/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.16+4b2b575b9",
19
- "@atlaspack/plugin": "2.14.5-canary.16+4b2b575b9"
19
+ "@atlaspack/node-resolver-core": "3.5.5-canary.160+4be63eda8",
20
+ "@atlaspack/plugin": "2.14.5-canary.160+4be63eda8"
20
21
  },
21
22
  "devDependencies": {
22
23
  "@babel/core": "^7.22.11"
23
24
  },
24
25
  "type": "commonjs",
25
- "gitHead": "4b2b575b98951f2dcf0c45ed8e94359b23b43815"
26
+ "scripts": {
27
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src",
28
+ "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
29
+ },
30
+ "gitHead": "4be63eda8e561c18803bf04681fe1d61b7eaae93"
26
31
  }
@@ -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
+ }