everything-dev 1.3.2 → 1.3.4
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/dist/cli/init.cjs +9 -39
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.d.cts.map +1 -1
- package/dist/cli/init.d.mts.map +1 -1
- package/dist/cli/init.mjs +9 -39
- package/dist/cli/init.mjs.map +1 -1
- package/dist/contract.d.cts +2 -2
- package/dist/contract.d.mts +2 -2
- package/dist/internal/manifest-normalizer.cjs +140 -0
- package/dist/internal/manifest-normalizer.cjs.map +1 -0
- package/dist/internal/manifest-normalizer.mjs +138 -0
- package/dist/internal/manifest-normalizer.mjs.map +1 -0
- package/dist/plugin.cjs +6 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts +1 -1
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.mjs +6 -1
- package/dist/plugin.mjs.map +1 -1
- package/package.json +9 -9
- package/src/cli/init.ts +15 -44
- package/src/internal/manifest-normalizer.ts +251 -0
- package/src/plugin.ts +13 -0
package/src/plugin.ts
CHANGED
|
@@ -303,6 +303,12 @@ async function buildEnvVars(
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
async function buildEveryPluginQuietly(cwd: string) {
|
|
306
|
+
const packageDir = `${cwd}/packages/every-plugin`;
|
|
307
|
+
const packageExists = await Bun.file(`${packageDir}/package.json`).exists();
|
|
308
|
+
if (!packageExists) {
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
|
|
306
312
|
const distPath = `${cwd}/packages/every-plugin/dist/build/rspack/plugin.mjs`;
|
|
307
313
|
const distExists = await Bun.file(distPath).exists();
|
|
308
314
|
|
|
@@ -334,6 +340,12 @@ async function buildEveryPluginQuietly(cwd: string) {
|
|
|
334
340
|
}
|
|
335
341
|
|
|
336
342
|
async function buildEverythingDevQuietly(cwd: string) {
|
|
343
|
+
const packageDir = `${cwd}/packages/everything-dev`;
|
|
344
|
+
const packageExists = await Bun.file(`${packageDir}/package.json`).exists();
|
|
345
|
+
if (!packageExists) {
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
|
|
337
349
|
const distPath = `${cwd}/packages/everything-dev/dist/index.mjs`;
|
|
338
350
|
const distExists = await Bun.file(distPath).exists();
|
|
339
351
|
|
|
@@ -1117,6 +1129,7 @@ export default createPlugin({
|
|
|
1117
1129
|
parentGateway: gateway,
|
|
1118
1130
|
name: name || account,
|
|
1119
1131
|
domain: domain || gateway,
|
|
1132
|
+
workspaceOpts: { sourceDir },
|
|
1120
1133
|
});
|
|
1121
1134
|
|
|
1122
1135
|
if (!input.noInstall) {
|