-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add pnpm #81 * update ci * update ci * Update pnpm-lock.yaml * Update node.js.yml * Update README.md
- Loading branch information
1 parent
dad2030
commit 38311f6
Showing
38 changed files
with
16,631 additions
and
23,636 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// .npmrc | ||
auto-install-peers=true | ||
shamefully-hoist=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,57 @@ | ||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ | ||
// Learn more https://docs.expo.io/guides/customizing-metro | ||
// import * as c from '@expo/metro-config' | ||
import { getDefaultConfig } from '@expo/metro-config' | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
import { makeMetroConfig } from '@rnx-kit/metro-config' | ||
import MetroSymlinksResolver from '@rnx-kit/metro-resolver-symlinks' | ||
import { MetroSerializer } from '@rnx-kit/metro-serializer' | ||
import type { InputConfigT } from 'metro-config' | ||
import type { ResolutionContext } from 'metro-resolver/src/types' | ||
import { join } from 'path' | ||
|
||
const config = getDefaultConfig(join(__dirname, '..', '')) | ||
|
||
const config = getDefaultConfig(join(__dirname, '..','')) | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call | ||
config.resolver.assetExts.push('db') | ||
// eslint-disable-next-line no-console | ||
// console.log(config) | ||
|
||
module.exports = config | ||
// eslint-disable-next-line new-cap | ||
const metroSymlinksResolver = MetroSymlinksResolver() | ||
const c = { | ||
...config, | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call | ||
...makeMetroConfig({ | ||
serializer: { | ||
...config?.serializer ?? {}, | ||
// eslint-disable-next-line new-cap, @typescript-eslint/no-unsafe-call | ||
customSerializer: MetroSerializer([ | ||
// eslint-disable-next-line new-cap | ||
/* CyclicDependencies({ | ||
includeNodeModules: false, | ||
linesOfContext: 1, | ||
throwOnError: true, | ||
}), | ||
// eslint-disable-next-line new-cap | ||
DuplicateDependencies({ | ||
ignoredModules: [], | ||
bannedModules: [], | ||
throwOnError: true, | ||
}), */ | ||
]), | ||
}, | ||
projectRoot: config?.projectRoot ?? join(__dirname, '..', ''), | ||
resolver: { | ||
...config?.resolver ?? {}, | ||
// eslint-disable-next-line new-cap | ||
resolveRequest: (context: ResolutionContext, moduleName: string, platform: string | null) => { | ||
if (moduleName === 'missing-asset-registry-path') { | ||
// console.log({ /* context, */ moduleName, o: context.originModulePath }) | ||
return { type: 'assetFiles', filePaths: [context.originModulePath] } | ||
} | ||
return metroSymlinksResolver(context, moduleName, platform) | ||
}, | ||
assetExts: [...config?.resolver?.assetExts ?? [], 'db'], | ||
// assetRegistryPath: resolve('node_modules/react-native/Libraries/Image/AssetRegistry') | ||
}, | ||
}) as InputConfigT, | ||
} | ||
|
||
module.exports = c | ||
|
Oops, something went wrong.