-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update expo, ts and emotion (#498)
- Loading branch information
Showing
40 changed files
with
1,237 additions
and
951 deletions.
There are no files selected for viewing
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 +1,2 @@ | ||
.yarn | ||
dist/ |
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,53 @@ | ||
import glob from 'glob'; | ||
import pkg from './package.json'; | ||
|
||
const packageGlobs = pkg.workspaces.packages; | ||
console.log('packageGlobs', packageGlobs); | ||
|
||
const packages = packageGlobs | ||
.map((packageName) => { | ||
return glob.sync(`./${packageName}/package.json`); | ||
}) | ||
.flat(); | ||
|
||
console.log('checking the following locations ', packages); | ||
|
||
type DepsComparison = Record<string, Record<string, string>>; | ||
|
||
const depsLookup = packages.reduce((dependenciesMap, packagePath) => { | ||
const json = require(packagePath); | ||
|
||
const deps: [string, string][] = Object.entries(json.dependencies ?? {}); | ||
|
||
const devDeps: [string, string][] = Object.entries(json.devDependencies ?? {}); | ||
|
||
const currentDependencies = deps.concat(devDeps); | ||
|
||
return currentDependencies.reduce((depsMapSoFar, [currentDependency, version]) => { | ||
if (!depsMapSoFar[currentDependency]) { | ||
depsMapSoFar[currentDependency] = { | ||
[json.name]: version, | ||
}; | ||
} else { | ||
depsMapSoFar[currentDependency][json.name] = version; | ||
} | ||
|
||
return depsMapSoFar; | ||
}, dependenciesMap); | ||
}, {} as DepsComparison); | ||
|
||
console.log('checking for mismatched versions of dependencies'); | ||
|
||
let sum = 0; | ||
|
||
Object.entries(depsLookup).forEach(([dependency, versionsMap]) => { | ||
const versionValues = Object.values(versionsMap); | ||
|
||
if (versionValues.length > 1 && versionValues.some((v) => v !== versionValues[0])) { | ||
console.log({ dependency, versionsMap }); | ||
|
||
sum++; | ||
} | ||
}); | ||
|
||
console.log(`found ${sum} mismatched versions`); |
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
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,7 @@ | ||
import '@emotion/react'; | ||
|
||
import { Theme as StorybookTheme } from '@storybook/react-native-theming'; | ||
|
||
declare module '@emotion/react' { | ||
export interface Theme extends StorybookTheme {} | ||
} |
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 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
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,7 @@ | ||
import '@emotion/react'; | ||
|
||
import { Theme as StorybookTheme } from '@storybook/react-native-theming'; | ||
|
||
declare module '@emotion/react' { | ||
export interface Theme extends StorybookTheme {} | ||
} |
Oops, something went wrong.