mirror of
https://github.com/enso-org/enso.git
synced 2024-12-18 22:21:48 +03:00
b286adaae4
# Important Notes The command to run the gui dev environment has been changed. Invoking the old command will print a message about that. From now on, use `pnpm dev:gui2` in repository root.
22 lines
660 B
JavaScript
22 lines
660 B
JavaScript
const IGNORED_DEPS = ['react-native-url-polyfill', 'react-native-get-random-values']
|
|
|
|
const unusedIgnores = new Set(IGNORED_DEPS)
|
|
module.exports.hooks = {
|
|
readPackage: (pkg, context) => {
|
|
for (const ignored of IGNORED_DEPS) {
|
|
if (pkg.dependencies[ignored]) {
|
|
delete pkg.dependencies[ignored]
|
|
context.log(`Ignoring dependency ${ignored} in ${pkg.name}`)
|
|
unusedIgnores.delete(ignored)
|
|
}
|
|
}
|
|
return pkg
|
|
},
|
|
afterAllResolved(lockfile, context) {
|
|
if (unusedIgnores.size > 0) {
|
|
context.log(`Unused dependency ignore declarations: ${Array.from(unusedIgnores).join(', ')}`)
|
|
}
|
|
return lockfile
|
|
},
|
|
}
|