frosty 0.0.65 → 0.0.66
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.
|
@@ -19,26 +19,24 @@ const serverConfig = (() => {
|
|
|
19
19
|
}
|
|
20
20
|
})();
|
|
21
21
|
|
|
22
|
-
const
|
|
22
|
+
const frostyDeps = (() => {
|
|
23
23
|
try {
|
|
24
|
-
|
|
24
|
+
const resolved = require.resolve('frosty');
|
|
25
|
+
return {
|
|
26
|
+
frosty: resolved.endsWith('/dist/index.js') ? resolved.replace('/index.js', '') : resolved,
|
|
27
|
+
};
|
|
25
28
|
} catch {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
resolved[`frosty/${k}`] = path.resolve(__dirname, '../..', v);
|
|
29
|
+
const { rollupConfig: { input } } = require(path.resolve(__dirname, '../../rollup.config.mjs'));
|
|
30
|
+
const resolved = {};
|
|
31
|
+
for (const [k, v] of _.entries(input)) {
|
|
32
|
+
if (k === 'index') continue;
|
|
33
|
+
resolved[`frosty/${k}`] = path.resolve(__dirname, '../..', v);
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
...resolved,
|
|
37
|
+
frosty: path.resolve(__dirname, '../../src/index'),
|
|
38
|
+
};
|
|
37
39
|
}
|
|
38
|
-
return {
|
|
39
|
-
...resolved,
|
|
40
|
-
frosty: path.resolve(__dirname, '../../src/index'),
|
|
41
|
-
};
|
|
42
40
|
})();
|
|
43
41
|
|
|
44
42
|
module.exports = (env, argv) => {
|
|
@@ -153,7 +151,7 @@ module.exports = (env, argv) => {
|
|
|
153
151
|
resolve: {
|
|
154
152
|
...config.options?.resolve ?? {},
|
|
155
153
|
alias: {
|
|
156
|
-
...
|
|
154
|
+
...frostyDeps,
|
|
157
155
|
...config.options?.resolve?.alias ?? {},
|
|
158
156
|
},
|
|
159
157
|
},
|