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 5, 2024
1 parent 49bc09c commit a2d2f75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion configs/jsactions/rollup-plugin-collect-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ async function copyJsModule(moduleSourcePath, to) {
"!**/{android,ios,windows,mac,jest,github,gradle,__*__,docs,jest,example*}/**/*",
"!**/*.{config,setup}.*",
"!**/*.{podspec,flow}"
]
],
overwrite: true
});
}

Expand Down
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 a2d2f75

Please sign in to comment.