feat(expo): upgrade expo-cli to 6.3.0 (#14944)
This commit is contained in:
parent
dfc424d757
commit
51cd35cb04
@ -20,7 +20,7 @@ describe('expo', () => {
|
||||
);
|
||||
afterEach(() => cleanupProject());
|
||||
|
||||
it('should test, lint, export and prebuild', async () => {
|
||||
it('should test, lint, export, export-web and prebuild', async () => {
|
||||
const appName = uniq('my-app');
|
||||
const libName = uniq('lib');
|
||||
const componentName = uniq('component');
|
||||
@ -52,6 +52,13 @@ describe('expo', () => {
|
||||
expect(exportResults.combinedOutput).toContain(
|
||||
'Export was successful. Your exported files can be found'
|
||||
);
|
||||
checkFilesExist(`dist/apps/${appName}/metadata.json`);
|
||||
|
||||
expect(() => {
|
||||
runCLI(`export-web ${appName}`);
|
||||
checkFilesExist(`apps/${appName}/web-build/index.html`);
|
||||
checkFilesExist(`apps/${appName}/web-build/manifest.json`);
|
||||
}).not.toThrow();
|
||||
|
||||
// set a mock package name for ios and android in expo's app.json
|
||||
const workspace = readResolvedConfiguration();
|
||||
|
||||
@ -602,6 +602,23 @@
|
||||
"alwaysAddToPackageJson": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"15.7.2": {
|
||||
"version": "15.7.2-beta.0",
|
||||
"packages": {
|
||||
"@expo/webpack-config": {
|
||||
"version": "~18.0.1",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"eas-cli": {
|
||||
"version": "3.5.2",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"expo-cli": {
|
||||
"version": "6.3.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@ import { TsconfigPathsPlugin } from 'tsconfig-paths-webpack-plugin';
|
||||
import { resolve } from 'path';
|
||||
|
||||
/**
|
||||
* This function add addtional rules to expo's webpack config to make expo web working
|
||||
* This function add additional rules to expo's webpack config to make expo web working
|
||||
*/
|
||||
export async function withNxWebpack(config) {
|
||||
// add additional rule to load files under libs
|
||||
@ -27,6 +27,13 @@ export async function withNxWebpack(config) {
|
||||
});
|
||||
}
|
||||
|
||||
if (!config.resolve) {
|
||||
config.resolve = {};
|
||||
}
|
||||
if (!config.resolve.plugins) {
|
||||
config.resolve.plugins = [];
|
||||
}
|
||||
|
||||
const extensions = ['.ts', '.tsx', '.mjs', '.js', '.jsx'];
|
||||
const tsConfigPath = resolve('tsconfig.json');
|
||||
|
||||
|
||||
@ -2,12 +2,12 @@ export const nxVersion = require('../../package.json').version;
|
||||
|
||||
export const expoVersion = '47.0.13';
|
||||
export const expoMetroConfigVersion = '0.5.2';
|
||||
export const expoWebpackConfig = '~0.17.4';
|
||||
export const expoWebpackConfig = '~18.0.1';
|
||||
export const expoSplashScreenVersion = '~0.17.5';
|
||||
export const expoStatusBarVersion = '~1.4.2';
|
||||
export const deprecatedExpoCliVersion = '6.1.0'; // expo-cli
|
||||
export const deprecatedExpoCliVersion = '6.3.0'; // expo-cli
|
||||
export const expoCliVersion = '0.4.11'; // @expo/cli
|
||||
export const easCliVersion = '3.3.2';
|
||||
export const easCliVersion = '3.5.2';
|
||||
export const babelPresetExpoVersion = '~9.2.2';
|
||||
|
||||
export const reactVersion = '18.1.0';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user