Skip to content

Commit

Permalink
fix: fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
UrazAkgultan committed Jan 4, 2024
1 parent 57cf5e6 commit 72e51b7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions configs/jsactions/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,20 @@ export default async args => {
mkdirSync(path, { recursive: true });
await copyAsync(
join(dirname(require.resolve("fbjs")), "lib", "invariant.js"),
join(path, "invariant.js")
join(path, "invariant.js"),
{
overwrite: true
}
);
} else if (args.configProject === "nanoflowcommons") {
// `invariant` is being used silently by @react-native-community/geolocation; it is not listed as a dependency nor peerDependency.
// https://github.dev/react-native-geolocation/react-native-geolocation/blob/1786929f2be581da91082ff857c2393da5e597b3/js/implementation.native.js#L13
await copyAsync(
dirname(require.resolve("invariant")),
join(outDir, "node_modules", "invariant")
join(outDir, "node_modules", "invariant"),
{
overwrite: true
}
);
}

Expand Down

0 comments on commit 72e51b7

Please sign in to comment.