@multiplatform.one/config 10.1.2 → 10.1.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/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { i as phosphorTokenColorPlugin, n as tamaguiWorkspacePathsFile, t as ensureTamaguiWorkspacePaths } from "./tamaguiWorkspacePaths-7eT9XxzE.js";
2
- import { t as createStorybookViteConfig } from "./storybook-LYamvanr.js";
3
- import { t as createViteConfig } from "./vite-BtlhFd_U.js";
2
+ import { t as createStorybookViteConfig } from "./storybook-CBMUIh2Y.js";
3
+ import { t as createViteConfig } from "./vite-CuPNWr9Z.js";
4
4
  import { t as createVitestConfig } from "./vitest-B8Z8ZZQR.js";
5
5
 
6
6
  export { createStorybookViteConfig, createViteConfig, createVitestConfig, ensureTamaguiWorkspacePaths, phosphorTokenColorPlugin, tamaguiWorkspacePathsFile };
@@ -1,4 +1,4 @@
1
- import { d as nativeOnlyDepStubPlugin, f as movedDepAliases, o as singletonResolvePlugin, r as resolvePackageMainSource, s as withSingletonDepAliases, t as discoverPublicPackageRoots, u as nativeOnlyDepStubOptimizerPlugin } from "./workspacePublicPackages-B_kw7fuc.js";
1
+ import { d as nativeOnlyDepStubPlugin, f as movedDepAliases, o as singletonResolvePlugin, r as resolvePackageMainSource, s as withSingletonDepAliases, t as discoverPublicPackageRoots, u as nativeOnlyDepStubOptimizerPlugin } from "./workspacePublicPackages-51EOX3PW.js";
2
2
  import { i as phosphorTokenColorPlugin, t as ensureTamaguiWorkspacePaths } from "./tamaguiWorkspacePaths-7eT9XxzE.js";
3
3
  import { createRequire } from "node:module";
4
4
  import fs from "node:fs";
package/lib/storybook.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as createStorybookViteConfig } from "./storybook-LYamvanr.js";
1
+ import { t as createStorybookViteConfig } from "./storybook-CBMUIh2Y.js";
2
2
 
3
3
  export { createStorybookViteConfig };
@@ -1,4 +1,4 @@
1
- import { c as lookupTamaguiModules, f as movedDepAliases, i as resolveWorkspaceNativeEntry, l as resolveConfig, o as singletonResolvePlugin, p as __require, s as withSingletonDepAliases, t as discoverPublicPackageRoots } from "./workspacePublicPackages-B_kw7fuc.js";
1
+ import { c as lookupTamaguiModules, f as movedDepAliases, i as resolveWorkspaceNativeEntry, l as resolveConfig, o as singletonResolvePlugin, p as __require, s as withSingletonDepAliases, t as discoverPublicPackageRoots } from "./workspacePublicPackages-51EOX3PW.js";
2
2
  import { i as phosphorTokenColorPlugin, t as ensureTamaguiWorkspacePaths } from "./tamaguiWorkspacePaths-7eT9XxzE.js";
3
3
  import fs from "node:fs";
4
4
  import path from "node:path";
package/lib/vite.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as staleNativeDistSource, i as resolveWorkspaceNativeEntry, n as publicPackageViteSourceAliases, t as discoverPublicPackageRoots } from "./workspacePublicPackages-B_kw7fuc.js";
1
+ import { a as staleNativeDistSource, i as resolveWorkspaceNativeEntry, n as publicPackageViteSourceAliases, t as discoverPublicPackageRoots } from "./workspacePublicPackages-51EOX3PW.js";
2
2
  import { i as phosphorTokenColorPlugin } from "./tamaguiWorkspacePaths-7eT9XxzE.js";
3
- import { a as phosphorNativeIconLibId, i as phosphorNativeIconBaseId, n as nativeOnlyPlugin, o as publicConfigPlugin, r as phosphorNativeIconBase, s as readPublicConfigKeys, t as createViteConfig } from "./vite-BtlhFd_U.js";
3
+ import { a as phosphorNativeIconLibId, i as phosphorNativeIconBaseId, n as nativeOnlyPlugin, o as publicConfigPlugin, r as phosphorNativeIconBase, s as readPublicConfigKeys, t as createViteConfig } from "./vite-CuPNWr9Z.js";
4
4
 
5
5
  export { createViteConfig, discoverPublicPackageRoots, nativeOnlyPlugin, phosphorNativeIconBase, phosphorNativeIconBaseId, phosphorNativeIconLibId, phosphorTokenColorPlugin, publicConfigPlugin, publicPackageViteSourceAliases, readPublicConfigKeys, resolveWorkspaceNativeEntry, staleNativeDistSource };
@@ -167,10 +167,29 @@ function importsBinding(file, binding) {
167
167
  }
168
168
  return new RegExp(`(?:import|require)[^;]*\\b${binding}\\b[^;]*['"]react-native['"]`, "s").test(source);
169
169
  }
170
- /** `src/shims/<name>` from source, `../src/shims/<name>` from the built `lib`. */
170
+ /** `src/shims/<name>` from source, `../src/shims/<name>` from the built `lib`, else from the installed package. */
171
171
  function stubFile(name) {
172
172
  const here = path.dirname(fileURLToPath(import.meta.url));
173
- return [path.resolve(here, "shims", name), path.resolve(here, "../src/shims", name)].find((candidate) => fs.existsSync(candidate));
173
+ const installed = installedShimsDir();
174
+ return [
175
+ path.resolve(here, "shims", name),
176
+ path.resolve(here, "../src/shims", name),
177
+ ...installed ? [path.join(installed, name)] : []
178
+ ].find((candidate) => fs.existsSync(candidate));
179
+ }
180
+ /**
181
+ * `src/shims` of the installed `@multiplatform.one/utils`. config's tsdown
182
+ * inlines this module into its own `lib`, where neither path relative to
183
+ * `import.meta.url` exists, so the stub went missing there and the dev
184
+ * dep-optimizer lost its plugin without a word (FZ-11764).
185
+ */
186
+ function installedShimsDir() {
187
+ try {
188
+ const manifest = createRequire(import.meta.url).resolve("@multiplatform.one/utils/package.json");
189
+ return path.join(path.dirname(manifest), "src", "shims");
190
+ } catch {
191
+ return;
192
+ }
174
193
  }
175
194
  function resolvePackageDir$1(pkgName, root, requireFrom) {
176
195
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/config",
3
- "version": "10.1.2",
3
+ "version": "10.1.4",
4
4
  "description": "Shared build and test configuration presets for multiplatform.one",
5
5
  "keywords": [
6
6
  "config",
@@ -122,7 +122,7 @@
122
122
  "@babel/parser": "^7.29.9",
123
123
  "@babel/plugin-transform-block-scoping": "^7.29.7",
124
124
  "@babel/traverse": "^7.29.10",
125
- "@multiplatform.one/utils": "^10.1.2",
125
+ "@multiplatform.one/utils": "^10.1.4",
126
126
  "@tamagui/vite-plugin": "3.2.3",
127
127
  "@vitejs/plugin-react": "^6.1.2",
128
128
  "dotenv": "^17.4.2",