yeet
This commit is contained in:
8
node_modules/@expo/config/build/plugins/withConfigPlugins.d.ts
generated
vendored
Normal file
8
node_modules/@expo/config/build/plugins/withConfigPlugins.d.ts
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
import { ConfigPlugin } from '@expo/config-plugins';
|
||||
/**
|
||||
* Resolves static plugins array as config plugin functions.
|
||||
*
|
||||
* @param config
|
||||
* @param projectRoot
|
||||
*/
|
||||
export declare const withConfigPlugins: ConfigPlugin;
|
23
node_modules/@expo/config/build/plugins/withConfigPlugins.js
generated
vendored
Normal file
23
node_modules/@expo/config/build/plugins/withConfigPlugins.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const config_plugins_1 = require("@expo/config-plugins");
|
||||
const Serialize_1 = require("../Serialize");
|
||||
/**
|
||||
* Resolves static plugins array as config plugin functions.
|
||||
*
|
||||
* @param config
|
||||
* @param projectRoot
|
||||
*/
|
||||
exports.withConfigPlugins = config => {
|
||||
var _a;
|
||||
// @ts-ignore: plugins not on config type yet -- TODO
|
||||
if (!Array.isArray(config.plugins) || !((_a = config.plugins) === null || _a === void 0 ? void 0 : _a.length)) {
|
||||
return config;
|
||||
}
|
||||
// Resolve and evaluate plugins
|
||||
// @ts-ignore: TODO: add plugins to the config schema
|
||||
config = config_plugins_1.withPlugins(config, config.plugins);
|
||||
// plugins aren't serialized by default, serialize the plugins after resolving them.
|
||||
return Serialize_1.serializeAfterStaticPlugins(config);
|
||||
};
|
||||
//# sourceMappingURL=withConfigPlugins.js.map
|
1
node_modules/@expo/config/build/plugins/withConfigPlugins.js.map
generated
vendored
Normal file
1
node_modules/@expo/config/build/plugins/withConfigPlugins.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"withConfigPlugins.js","sourceRoot":"","sources":["../../src/plugins/withConfigPlugins.ts"],"names":[],"mappings":";;AAAA,yDAAiE;AAEjE,4CAA2D;AAE3D;;;;;GAKG;AACU,QAAA,iBAAiB,GAAiB,MAAM,CAAC,EAAE;;IACtD,qDAAqD;IACrD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,QAAC,MAAM,CAAC,OAAO,0CAAE,MAAM,CAAA,EAAE;QAC7D,OAAO,MAAM,CAAC;KACf;IACD,+BAA+B;IAC/B,qDAAqD;IACrD,MAAM,GAAG,4BAAW,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7C,oFAAoF;IACpF,OAAO,uCAA2B,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC","sourcesContent":["import { ConfigPlugin, withPlugins } from '@expo/config-plugins';\n\nimport { serializeAfterStaticPlugins } from '../Serialize';\n\n/**\n * Resolves static plugins array as config plugin functions.\n *\n * @param config\n * @param projectRoot\n */\nexport const withConfigPlugins: ConfigPlugin = config => {\n // @ts-ignore: plugins not on config type yet -- TODO\n if (!Array.isArray(config.plugins) || !config.plugins?.length) {\n return config;\n }\n // Resolve and evaluate plugins\n // @ts-ignore: TODO: add plugins to the config schema\n config = withPlugins(config, config.plugins);\n // plugins aren't serialized by default, serialize the plugins after resolving them.\n return serializeAfterStaticPlugins(config);\n};\n"]}
|
13
node_modules/@expo/config/build/plugins/withInternal.d.ts
generated
vendored
Normal file
13
node_modules/@expo/config/build/plugins/withInternal.d.ts
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import { ConfigPlugin } from '@expo/config-plugins';
|
||||
import { ConfigFilePaths } from '../Config.types';
|
||||
export declare const EXPO_DEBUG: boolean;
|
||||
/**
|
||||
* Adds the _internal object.
|
||||
*
|
||||
* @param config
|
||||
* @param projectRoot
|
||||
*/
|
||||
export declare const withInternal: ConfigPlugin<{
|
||||
projectRoot: string;
|
||||
packageJsonPath?: string;
|
||||
} & Partial<ConfigFilePaths>>;
|
18
node_modules/@expo/config/build/plugins/withInternal.js
generated
vendored
Normal file
18
node_modules/@expo/config/build/plugins/withInternal.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const getenv_1 = require("getenv");
|
||||
exports.EXPO_DEBUG = getenv_1.boolish('EXPO_DEBUG', false);
|
||||
/**
|
||||
* Adds the _internal object.
|
||||
*
|
||||
* @param config
|
||||
* @param projectRoot
|
||||
*/
|
||||
exports.withInternal = (config, internals) => {
|
||||
if (!config._internal) {
|
||||
config._internal = {};
|
||||
}
|
||||
config._internal = Object.assign(Object.assign({ isDebug: exports.EXPO_DEBUG }, config._internal), internals);
|
||||
return config;
|
||||
};
|
||||
//# sourceMappingURL=withInternal.js.map
|
1
node_modules/@expo/config/build/plugins/withInternal.js.map
generated
vendored
Normal file
1
node_modules/@expo/config/build/plugins/withInternal.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"withInternal.js","sourceRoot":"","sources":["../../src/plugins/withInternal.ts"],"names":[],"mappings":";;AACA,mCAAiC;AAIpB,QAAA,UAAU,GAAG,gBAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAEvD;;;;;GAKG;AACU,QAAA,YAAY,GAErB,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;IACxB,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;QACrB,MAAM,CAAC,SAAS,GAAG,EAAE,CAAC;KACvB;IAED,MAAM,CAAC,SAAS,iCACd,OAAO,EAAE,kBAAU,IAChB,MAAM,CAAC,SAAS,GAChB,SAAS,CACb,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC","sourcesContent":["import { ConfigPlugin } from '@expo/config-plugins';\nimport { boolish } from 'getenv';\n\nimport { ConfigFilePaths } from '../Config.types';\n\nexport const EXPO_DEBUG = boolish('EXPO_DEBUG', false);\n\n/**\n * Adds the _internal object.\n *\n * @param config\n * @param projectRoot\n */\nexport const withInternal: ConfigPlugin<\n { projectRoot: string; packageJsonPath?: string } & Partial<ConfigFilePaths>\n> = (config, internals) => {\n if (!config._internal) {\n config._internal = {};\n }\n\n config._internal = {\n isDebug: EXPO_DEBUG,\n ...config._internal,\n ...internals,\n };\n\n return config;\n};\n"]}
|
Reference in New Issue
Block a user