chore: build
This commit is contained in:
+3
-2
@@ -110,8 +110,9 @@ Options:
|
||||
-l --loose
|
||||
Interpret versions and ranges loosely
|
||||
|
||||
-n <0|1>
|
||||
This is the base to be used for the prerelease identifier.
|
||||
-n <0|1|false>
|
||||
Base number for prerelease identifier (default: 0).
|
||||
Use false to omit the number altogether.
|
||||
|
||||
-p --include-prerelease
|
||||
Always include prerelease versions in range matching
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ const main = () => {
|
||||
versions = versions.map((v) => {
|
||||
return coerce ? (semver.coerce(v, options) || { version: v }).version : v
|
||||
}).filter((v) => {
|
||||
return semver.valid(v)
|
||||
return semver.valid(v, options)
|
||||
})
|
||||
if (!versions.length) {
|
||||
return fail()
|
||||
|
||||
Generated
Vendored
+1
-1
@@ -53,7 +53,7 @@ const diff = (version1, version2) => {
|
||||
return prefix + 'patch'
|
||||
}
|
||||
|
||||
// high and low are preleases
|
||||
// high and low are prereleases
|
||||
return 'prerelease'
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -78,8 +78,8 @@ createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
|
||||
|
||||
// ## Pre-release Version Identifier
|
||||
// A numeric identifier, or a non-numeric identifier.
|
||||
// Non-numberic identifiers include numberic identifiers but can be longer.
|
||||
// Therefore non-numberic identifiers must go first.
|
||||
// Non-numeric identifiers include numeric identifiers but can be longer.
|
||||
// Therefore non-numeric identifiers must go first.
|
||||
|
||||
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]
|
||||
}|${src[t.NUMERICIDENTIFIER]})`)
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "semver",
|
||||
"version": "7.7.3",
|
||||
"version": "7.7.4",
|
||||
"description": "The semantic version parser used by npm.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
@@ -14,8 +14,8 @@
|
||||
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"@npmcli/eslint-config": "^5.0.0",
|
||||
"@npmcli/template-oss": "4.25.1",
|
||||
"@npmcli/eslint-config": "^6.0.0",
|
||||
"@npmcli/template-oss": "4.29.0",
|
||||
"benchmark": "^2.1.4",
|
||||
"tap": "^16.0.0"
|
||||
},
|
||||
@@ -52,7 +52,7 @@
|
||||
"author": "GitHub Inc.",
|
||||
"templateOSS": {
|
||||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
||||
"version": "4.25.1",
|
||||
"version": "4.29.0",
|
||||
"engines": ">=10",
|
||||
"distPaths": [
|
||||
"classes/",
|
||||
|
||||
Generated
Vendored
+1
-1
@@ -38,7 +38,7 @@ const compare = require('../functions/compare.js')
|
||||
// - If LT
|
||||
// - If LT.semver is greater than any < or <= comp in C, return false
|
||||
// - If LT is <=, and LT.semver does not satisfy every C, return false
|
||||
// - If GT.semver has a prerelease, and not in prerelease mode
|
||||
// - If LT.semver has a prerelease, and not in prerelease mode
|
||||
// - If no C has a prerelease and the LT.semver tuple, return false
|
||||
// - Else return true
|
||||
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@expo/fingerprint",
|
||||
"version": "0.15.4",
|
||||
"version": "0.15.5",
|
||||
"description": "A library to generate a fingerprint from a React Native project",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -50,7 +50,7 @@
|
||||
"getenv": "^2.0.0",
|
||||
"glob": "^13.0.0",
|
||||
"ignore": "^5.3.1",
|
||||
"minimatch": "^9.0.0",
|
||||
"minimatch": "^10.2.2",
|
||||
"p-limit": "^3.1.0",
|
||||
"resolve-from": "^5.0.0",
|
||||
"semver": "^7.6.0"
|
||||
@@ -60,5 +60,5 @@
|
||||
"require-from-string": "^2.0.2",
|
||||
"temp-dir": "^2.0.0"
|
||||
},
|
||||
"gitHead": "e8b838828e5e985379c07294dc932dba66c89562"
|
||||
"gitHead": "dd4e87727c4ef32ac5d8a7b5a42fd80da254140f"
|
||||
}
|
||||
|
||||
+2
-2
@@ -36,7 +36,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const code_frame_1 = require("@babel/code-frame");
|
||||
const json5_1 = __importDefault(require("json5"));
|
||||
const node_fs_1 = __importDefault(require("node:fs"));
|
||||
const node_path_1 = __importDefault(require("node:path"));
|
||||
@@ -191,7 +190,8 @@ function parseJsonString(json, options, fileName) {
|
||||
if (defaultValue === undefined) {
|
||||
const location = locationFromSyntaxError(e, json);
|
||||
if (location) {
|
||||
const codeFrame = (0, code_frame_1.codeFrameColumns)(json, { start: location });
|
||||
const { codeFrameColumns, } = require('@babel/code-frame');
|
||||
const codeFrame = codeFrameColumns(json, { start: location });
|
||||
e.codeFrame = codeFrame;
|
||||
e.message += `\n${codeFrame}`;
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Generated
Vendored
-22
@@ -1,22 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
Generated
Vendored
-19
@@ -1,19 +0,0 @@
|
||||
# @babel/code-frame
|
||||
|
||||
> Generate errors that contain a code frame that point to source locations.
|
||||
|
||||
See our website [@babel/code-frame](https://babeljs.io/docs/en/next/babel-code-frame.html) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/code-frame
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/code-frame --dev
|
||||
```
|
||||
Generated
Vendored
-167
@@ -1,167 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.codeFrameColumns = codeFrameColumns;
|
||||
exports.default = _default;
|
||||
|
||||
var _highlight = _interopRequireWildcard(require("@babel/highlight"));
|
||||
|
||||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
let deprecationWarningShown = false;
|
||||
|
||||
function getDefs(chalk) {
|
||||
return {
|
||||
gutter: chalk.grey,
|
||||
marker: chalk.red.bold,
|
||||
message: chalk.red.bold
|
||||
};
|
||||
}
|
||||
|
||||
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
||||
|
||||
function getMarkerLines(loc, source, opts) {
|
||||
const startLoc = Object.assign({
|
||||
column: 0,
|
||||
line: -1
|
||||
}, loc.start);
|
||||
const endLoc = Object.assign({}, startLoc, loc.end);
|
||||
const {
|
||||
linesAbove = 2,
|
||||
linesBelow = 3
|
||||
} = opts || {};
|
||||
const startLine = startLoc.line;
|
||||
const startColumn = startLoc.column;
|
||||
const endLine = endLoc.line;
|
||||
const endColumn = endLoc.column;
|
||||
let start = Math.max(startLine - (linesAbove + 1), 0);
|
||||
let end = Math.min(source.length, endLine + linesBelow);
|
||||
|
||||
if (startLine === -1) {
|
||||
start = 0;
|
||||
}
|
||||
|
||||
if (endLine === -1) {
|
||||
end = source.length;
|
||||
}
|
||||
|
||||
const lineDiff = endLine - startLine;
|
||||
const markerLines = {};
|
||||
|
||||
if (lineDiff) {
|
||||
for (let i = 0; i <= lineDiff; i++) {
|
||||
const lineNumber = i + startLine;
|
||||
|
||||
if (!startColumn) {
|
||||
markerLines[lineNumber] = true;
|
||||
} else if (i === 0) {
|
||||
const sourceLength = source[lineNumber - 1].length;
|
||||
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
|
||||
} else if (i === lineDiff) {
|
||||
markerLines[lineNumber] = [0, endColumn];
|
||||
} else {
|
||||
const sourceLength = source[lineNumber - i].length;
|
||||
markerLines[lineNumber] = [0, sourceLength];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (startColumn === endColumn) {
|
||||
if (startColumn) {
|
||||
markerLines[startLine] = [startColumn, 0];
|
||||
} else {
|
||||
markerLines[startLine] = true;
|
||||
}
|
||||
} else {
|
||||
markerLines[startLine] = [startColumn, endColumn - startColumn];
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
start,
|
||||
end,
|
||||
markerLines
|
||||
};
|
||||
}
|
||||
|
||||
function codeFrameColumns(rawLines, loc, opts = {}) {
|
||||
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
||||
const chalk = (0, _highlight.getChalk)(opts);
|
||||
const defs = getDefs(chalk);
|
||||
|
||||
const maybeHighlight = (chalkFn, string) => {
|
||||
return highlighted ? chalkFn(string) : string;
|
||||
};
|
||||
|
||||
const lines = rawLines.split(NEWLINE);
|
||||
const {
|
||||
start,
|
||||
end,
|
||||
markerLines
|
||||
} = getMarkerLines(loc, lines, opts);
|
||||
const hasColumns = loc.start && typeof loc.start.column === "number";
|
||||
const numberMaxWidth = String(end).length;
|
||||
const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines;
|
||||
let frame = highlightedLines.split(NEWLINE).slice(start, end).map((line, index) => {
|
||||
const number = start + 1 + index;
|
||||
const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
|
||||
const gutter = ` ${paddedNumber} | `;
|
||||
const hasMarker = markerLines[number];
|
||||
const lastMarkerLine = !markerLines[number + 1];
|
||||
|
||||
if (hasMarker) {
|
||||
let markerLine = "";
|
||||
|
||||
if (Array.isArray(hasMarker)) {
|
||||
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
||||
const numberOfMarkers = hasMarker[1] || 1;
|
||||
markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join("");
|
||||
|
||||
if (lastMarkerLine && opts.message) {
|
||||
markerLine += " " + maybeHighlight(defs.message, opts.message);
|
||||
}
|
||||
}
|
||||
|
||||
return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line, markerLine].join("");
|
||||
} else {
|
||||
return ` ${maybeHighlight(defs.gutter, gutter)}${line}`;
|
||||
}
|
||||
}).join("\n");
|
||||
|
||||
if (opts.message && !hasColumns) {
|
||||
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
||||
}
|
||||
|
||||
if (highlighted) {
|
||||
return chalk.reset(frame);
|
||||
} else {
|
||||
return frame;
|
||||
}
|
||||
}
|
||||
|
||||
function _default(rawLines, lineNumber, colNumber, opts = {}) {
|
||||
if (!deprecationWarningShown) {
|
||||
deprecationWarningShown = true;
|
||||
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
||||
|
||||
if (process.emitWarning) {
|
||||
process.emitWarning(message, "DeprecationWarning");
|
||||
} else {
|
||||
const deprecationError = new Error(message);
|
||||
deprecationError.name = "DeprecationWarning";
|
||||
console.warn(new Error(message));
|
||||
}
|
||||
}
|
||||
|
||||
colNumber = Math.max(colNumber, 0);
|
||||
const location = {
|
||||
start: {
|
||||
column: colNumber,
|
||||
line: lineNumber
|
||||
}
|
||||
};
|
||||
return codeFrameColumns(rawLines, location, opts);
|
||||
}
|
||||
Generated
Vendored
-25
@@ -1,25 +0,0 @@
|
||||
{
|
||||
"name": "@babel/code-frame",
|
||||
"version": "7.10.4",
|
||||
"description": "Generate errors that contain a code frame that point to source locations.",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"homepage": "https://babeljs.io/",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-code-frame"
|
||||
},
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/highlight": "^7.10.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chalk": "^2.0.0",
|
||||
"strip-ansi": "^4.0.0"
|
||||
},
|
||||
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df"
|
||||
}
|
||||
+5
-5
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@expo/json-file",
|
||||
"version": "10.0.8",
|
||||
"version": "10.0.13",
|
||||
"description": "A module for reading, writing, and manipulating JSON files",
|
||||
"main": "build/JsonFile.js",
|
||||
"scripts": {
|
||||
@@ -30,17 +30,17 @@
|
||||
"build"
|
||||
],
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "~7.10.4",
|
||||
"@babel/code-frame": "^7.20.0",
|
||||
"json5": "^2.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/babel__code-frame": "^7.0.1",
|
||||
"@types/babel__code-frame": "^7.27.0",
|
||||
"@types/json5": "^2.2.0",
|
||||
"expo-module-scripts": "^5.0.8",
|
||||
"expo-module-scripts": "^55.0.2",
|
||||
"memfs": "^3.2.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "172a69f5f70c1d0e043e1532f924de97210cabc3"
|
||||
"gitHead": "20029879d2f953a428d70197fc7e25e4d791848a"
|
||||
}
|
||||
|
||||
+19
-15
@@ -8,8 +8,8 @@ exports._createSideEffectMatcher = _createSideEffectMatcher;
|
||||
exports.isVirtualModule = isVirtualModule;
|
||||
const isResolvedDependency_1 = require("@expo/metro/metro/lib/isResolvedDependency");
|
||||
const fs_1 = __importDefault(require("fs"));
|
||||
const minimatch_1 = require("minimatch");
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const picomatch_1 = __importDefault(require("picomatch"));
|
||||
const findUpPackageJsonPath_1 = require("./findUpPackageJsonPath");
|
||||
const debug = require('debug')('expo:side-effects');
|
||||
function hasSideEffectWithDebugTrace(options, graph, value, parentTrace = [value.path], checked = new Set()) {
|
||||
@@ -61,27 +61,31 @@ const getPackageJsonMatcher = (options, dir) => {
|
||||
return isSideEffect;
|
||||
};
|
||||
function _createSideEffectMatcher(dirRoot, packageJson, packageJsonPath = '') {
|
||||
let sideEffectMatcher;
|
||||
if (Array.isArray(packageJson.sideEffects)) {
|
||||
const sideEffects = packageJson.sideEffects
|
||||
.filter((sideEffect) => typeof sideEffect === 'string')
|
||||
.map((sideEffect) => sideEffect.replace(/^\.\//, ''));
|
||||
sideEffectMatcher = (0, picomatch_1.default)(sideEffects, { matchBase: true });
|
||||
}
|
||||
else if (typeof packageJson.sideEffects === 'boolean' || !packageJson.sideEffects) {
|
||||
sideEffectMatcher = packageJson.sideEffects;
|
||||
}
|
||||
else {
|
||||
debug('Invalid sideEffects field in package.json:', packageJsonPath, packageJson.sideEffects);
|
||||
}
|
||||
return (fp) => {
|
||||
// Default is that everything is a side-effect unless explicitly marked as not.
|
||||
if (packageJson.sideEffects == null) {
|
||||
if (sideEffectMatcher == null) {
|
||||
return null;
|
||||
}
|
||||
if (typeof packageJson.sideEffects === 'boolean') {
|
||||
return packageJson.sideEffects;
|
||||
else if (typeof sideEffectMatcher === 'boolean') {
|
||||
return sideEffectMatcher;
|
||||
}
|
||||
else if (Array.isArray(packageJson.sideEffects)) {
|
||||
else {
|
||||
const relativeName = path_1.default.relative(dirRoot, fp);
|
||||
return packageJson.sideEffects.some((sideEffect) => {
|
||||
if (typeof sideEffect === 'string') {
|
||||
return (0, minimatch_1.minimatch)(relativeName, sideEffect.replace(/^\.\//, ''), {
|
||||
matchBase: true,
|
||||
});
|
||||
}
|
||||
return false;
|
||||
});
|
||||
return sideEffectMatcher(relativeName);
|
||||
}
|
||||
debug('Invalid sideEffects field in package.json:', packageJsonPath, packageJson.sideEffects);
|
||||
return null;
|
||||
};
|
||||
}
|
||||
function getShallowSideEffect(options, value) {
|
||||
|
||||
Generated
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"sideEffects.js","sourceRoot":"","sources":["../../src/serializer/sideEffects.ts"],"names":[],"mappings":";;;;;AA2BA,kEAsCC;AAmCD,4DA2BC;AAmCD,0CAEC;AAxJD,qFAAkF;AAClF,4CAAoB;AACpB,yCAAsC;AACtC,gDAAwB;AAExB,mE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;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,eAAe,CAAC,IAAY;IAC1C,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC"}
|
||||
+4
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@expo/metro-config",
|
||||
"version": "54.0.14",
|
||||
"version": "54.0.15",
|
||||
"description": "A Metro config for running React Native projects with the Metro bundler",
|
||||
"main": "build/ExpoMetroConfig.js",
|
||||
"types": "build/ExpoMetroConfig.d.ts",
|
||||
@@ -52,7 +52,7 @@
|
||||
"hermes-parser": "^0.29.1",
|
||||
"jsc-safe-url": "^0.2.4",
|
||||
"lightningcss": "^1.30.1",
|
||||
"minimatch": "^9.0.0",
|
||||
"picomatch": "^4.0.3",
|
||||
"postcss": "~8.4.32",
|
||||
"resolve-from": "^5.0.0"
|
||||
},
|
||||
@@ -67,6 +67,7 @@
|
||||
"devDependencies": {
|
||||
"@jridgewell/trace-mapping": "^0.3.20",
|
||||
"@types/babel__core": "^7.20.5",
|
||||
"@types/picomatch": "^4.0.2",
|
||||
"dedent": "^1.5.3",
|
||||
"expo-module-scripts": "^5.0.8",
|
||||
"sass": "^1.60.0"
|
||||
@@ -74,5 +75,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "a68247841f460700a3066c7bc7954a72591b26bc"
|
||||
"gitHead": "dd4e87727c4ef32ac5d8a7b5a42fd80da254140f"
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,4 @@
|
||||
import { SpawnOptions, SpawnResult } from '@expo/spawn-async';
|
||||
import { ExecAsyncOptions } from 'exec-async';
|
||||
declare function osascriptExecAsync(script: string | string[], opts?: ExecAsyncOptions): Promise<string>;
|
||||
declare function osascriptSpawnAsync(script: string | string[], opts?: SpawnOptions): Promise<SpawnResult>;
|
||||
declare function isAppRunningAsync(appName: string): Promise<boolean>;
|
||||
declare function safeIdOfAppAsync(appName: string): Promise<string | null>;
|
||||
@@ -13,4 +11,6 @@ declare function openInEditorAsync(pth: string, preferredEditor?: string): Promi
|
||||
declare function openItermToSpecificFolderAsync(dir: string): Promise<SpawnResult>;
|
||||
declare function openTerminalToSpecificFolderAsync(dir: string, inTab?: boolean): Promise<SpawnResult>;
|
||||
declare function openFolderInTerminalAppAsync(dir: string, inTab?: boolean): Promise<SpawnResult>;
|
||||
/** @deprecated */
|
||||
declare function osascriptExecAsync(script: string | string[], opts?: SpawnOptions): Promise<string>;
|
||||
export { chooseAppAsync, chooseEditorAppAsync, chooseTerminalAppAsync, osascriptExecAsync as execAsync, isAppRunningAsync, openFinderToFolderAsync, openFolderInTerminalAppAsync, openInAppAsync, openInEditorAsync, openItermToSpecificFolderAsync, openTerminalToSpecificFolderAsync, safeIdOfAppAsync, osascriptSpawnAsync as spawnAsync, };
|
||||
|
||||
+8
-8
@@ -17,7 +17,6 @@ exports.openTerminalToSpecificFolderAsync = openTerminalToSpecificFolderAsync;
|
||||
exports.safeIdOfAppAsync = safeIdOfAppAsync;
|
||||
exports.spawnAsync = osascriptSpawnAsync;
|
||||
const spawn_async_1 = __importDefault(require("@expo/spawn-async"));
|
||||
const exec_async_1 = __importDefault(require("exec-async"));
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const util_1 = __importDefault(require("util"));
|
||||
function osascriptArgs(script) {
|
||||
@@ -31,20 +30,17 @@ function osascriptArgs(script) {
|
||||
}
|
||||
return args;
|
||||
}
|
||||
async function osascriptExecAsync(script, opts) {
|
||||
const result = await (0, exec_async_1.default)('osascript', osascriptArgs(script), Object.assign({ stdio: 'inherit' }, opts));
|
||||
return result?.toString() || '';
|
||||
}
|
||||
async function osascriptSpawnAsync(script, opts) {
|
||||
return await (0, spawn_async_1.default)('osascript', osascriptArgs(script), opts);
|
||||
}
|
||||
async function isAppRunningAsync(appName) {
|
||||
const zeroMeansNo = (await osascriptExecAsync('tell app "System Events" to count processes whose name is ' + JSON.stringify(appName))).trim();
|
||||
return zeroMeansNo !== '0';
|
||||
const { stdout } = await osascriptSpawnAsync(`tell app "System Events" to count processes whose name is ${JSON.stringify(appName)}`);
|
||||
return stdout.trim() !== '0';
|
||||
}
|
||||
async function safeIdOfAppAsync(appName) {
|
||||
try {
|
||||
return (await osascriptExecAsync('id of app ' + JSON.stringify(appName))).trim();
|
||||
const { stdout } = await osascriptSpawnAsync(`id of app ${JSON.stringify(appName)}`);
|
||||
return stdout.trim();
|
||||
}
|
||||
catch {
|
||||
return null;
|
||||
@@ -181,4 +177,8 @@ async function openFolderInTerminalAppAsync(dir, inTab = false) {
|
||||
return await openTerminalToSpecificFolderAsync(dir, inTab);
|
||||
}
|
||||
}
|
||||
/** @deprecated */
|
||||
async function osascriptExecAsync(script, opts) {
|
||||
return (await osascriptSpawnAsync(script, opts)).stdout.trim();
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AA2ME,wCAAc;AACd,oDAAoB;AACpB,wDAAsB;AACA,uCAAS;AAC/B,8CAAiB;AACjB,0DAAuB;AACvB,oEAA4B;AAC5B,wCAAc;AACd,8CAAiB;AACjB,wEAA8B;AAC9B,8EAAiC;AACjC,4CAAgB;AACO,yCAAU;AAvNnC,oEAA0E;AAC1E,4DAAyD;AACzD,gDAAwB;AACxB,gDAAwB;AAExB,SAAS,aAAa,CAAC,MAAyB;IAC9C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3B,MAAM,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC;IAED,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAED,OA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IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AACjE,CAAC"}
|
||||
+5
-5
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@expo/osascript",
|
||||
"version": "2.3.8",
|
||||
"version": "2.4.2",
|
||||
"description": "Tools for running an osascripts in Node",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -37,14 +37,14 @@
|
||||
"node": ">=12"
|
||||
},
|
||||
"dependencies": {
|
||||
"@expo/spawn-async": "^1.7.2",
|
||||
"exec-async": "^2.2.0"
|
||||
"@expo/spawn-async": "^1.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"expo-module-scripts": "^5.0.8"
|
||||
"@types/node": "^22.14.0",
|
||||
"expo-module-scripts": "^55.0.2"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "172a69f5f70c1d0e043e1532f924de97210cabc3"
|
||||
"gitHead": "7d7f6762fc6907c27a329953c682134a84410dea"
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@expo/package-manager",
|
||||
"version": "1.9.10",
|
||||
"version": "1.10.4",
|
||||
"description": "A library for installing and finding packages in a project",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -37,7 +37,7 @@
|
||||
"build"
|
||||
],
|
||||
"dependencies": {
|
||||
"@expo/json-file": "^10.0.8",
|
||||
"@expo/json-file": "^10.0.13",
|
||||
"@expo/spawn-async": "^1.7.2",
|
||||
"chalk": "^4.0.0",
|
||||
"npm-package-arg": "^11.0.0",
|
||||
@@ -47,10 +47,10 @@
|
||||
"devDependencies": {
|
||||
"@types/micromatch": "^4.0.2",
|
||||
"@types/npm-package-arg": "^6.1.0",
|
||||
"expo-module-scripts": "^5.0.8"
|
||||
"expo-module-scripts": "^55.0.2"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "f8d5c76f87a35baa4f9144d848d377727817873d"
|
||||
"gitHead": "f35977db4ffc6bbc2b295d65a8d74e9fd4f24ecb"
|
||||
}
|
||||
|
||||
+4
-6
@@ -17,8 +17,7 @@ const symbols_1 = require("./utils/symbols");
|
||||
*/
|
||||
class ExpoRunFormatter extends Formatter_1.Formatter {
|
||||
static create(projectRoot, { xcodeProject, isDebug, } = {}) {
|
||||
var _a;
|
||||
const appName = ((_a = xcodeProject === null || xcodeProject === void 0 ? void 0 : xcodeProject.name.match(/.*\/(.*)\.\w+/)) === null || _a === void 0 ? void 0 : _a[1]) || '';
|
||||
const appName = xcodeProject?.name.match(/.*\/(.*)\.\w+/)?.[1] || '';
|
||||
const formatter = new ExpoRunFormatter({
|
||||
projectRoot,
|
||||
appName,
|
||||
@@ -34,14 +33,13 @@ class ExpoRunFormatter extends Formatter_1.Formatter {
|
||||
return this._parser;
|
||||
}
|
||||
constructor(props) {
|
||||
var _a;
|
||||
super(props);
|
||||
this.props = props;
|
||||
let podfile = {};
|
||||
const podfileLock = path_1.default.join(props.projectRoot, 'ios', 'Podfile.lock');
|
||||
try {
|
||||
const podfileContents = fs_1.default.readFileSync(podfileLock, 'utf8');
|
||||
podfile = (_a = (0, parsePodfileLock_1.parsePodfileLock)(podfileContents)) !== null && _a !== void 0 ? _a : {};
|
||||
podfile = (0, parsePodfileLock_1.parsePodfileLock)(podfileContents) ?? {};
|
||||
}
|
||||
catch { }
|
||||
this.podfileTracer = new PodfileTracer_1.PodfileTracer({
|
||||
@@ -74,7 +72,7 @@ class ExpoRunFormatter extends Formatter_1.Formatter {
|
||||
// Don't show warnings from cocoapods that come from non-root target pods.
|
||||
!collisions.some(({ filePath }) => {
|
||||
const nodeModule = this.podfileTracer.getNodeModuleNameForTarget(path_1.default.dirname(filePath));
|
||||
return !(nodeModule === null || nodeModule === void 0 ? void 0 : nodeModule.isRootTarget);
|
||||
return !nodeModule?.isRootTarget;
|
||||
}));
|
||||
}
|
||||
shouldShowWarningInTarget({ target }) {
|
||||
@@ -86,7 +84,7 @@ class ExpoRunFormatter extends Formatter_1.Formatter {
|
||||
}
|
||||
getNodeModuleName(filePath, target) {
|
||||
const results = this.podfileTracer.getNodeModuleName(filePath, target);
|
||||
return (results === null || results === void 0 ? void 0 : results.name) ? chalk_1.default.cyan(results.name) : null;
|
||||
return results?.name ? chalk_1.default.cyan(results.name) : null;
|
||||
}
|
||||
formatFileOperation(props) {
|
||||
const title = this.getFileOperationTitle(props.type);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+9
-10
@@ -106,6 +106,11 @@ function getAppRoot(filePath) {
|
||||
return isBuildFolder(appRoot) ? appRoot : '';
|
||||
}
|
||||
class Formatter {
|
||||
static { this.format = format; }
|
||||
static { this.formatBreadCrumb = formatBreadCrumb; }
|
||||
static { this.getAppRoot = getAppRoot; }
|
||||
static { this.highlightLastPathComponent = highlightLastPathComponent; }
|
||||
static { this.relativePath = relativePath; }
|
||||
get parser() {
|
||||
if (this._parser) {
|
||||
return this._parser;
|
||||
@@ -537,7 +542,7 @@ class Formatter {
|
||||
[
|
||||
Matchers_1.Matchers.Warnings.MISSING_ARCHITECTURE,
|
||||
([, $1, $2, $3]) => {
|
||||
return this.formatMissingArchitectureWarning($1, $2 === null || $2 === void 0 ? void 0 : $2.split(' ').map(value => value.trim()), $3 === null || $3 === void 0 ? void 0 : $3.split(' ').map(value => value.trim()));
|
||||
return this.formatMissingArchitectureWarning($1, $2?.split(' ').map(value => value.trim()), $3?.split(' ').map(value => value.trim()));
|
||||
},
|
||||
],
|
||||
[
|
||||
@@ -693,11 +698,6 @@ class Formatter {
|
||||
}
|
||||
}
|
||||
exports.Formatter = Formatter;
|
||||
Formatter.format = format;
|
||||
Formatter.formatBreadCrumb = formatBreadCrumb;
|
||||
Formatter.getAppRoot = getAppRoot;
|
||||
Formatter.highlightLastPathComponent = highlightLastPathComponent;
|
||||
Formatter.relativePath = relativePath;
|
||||
function findLastIndex(arr) {
|
||||
for (let i = arr.length - 1; i >= 0; i--) {
|
||||
if (arr[i].startsWith('Error:')) {
|
||||
@@ -737,7 +737,6 @@ function parseOptionalInt(text) {
|
||||
}
|
||||
}
|
||||
function formatWarningOrError({ projectRoot, filePath, reason, cursor, lineText, lineNumber, columnNumber, isError, maxWarningLineLength = 200, }) {
|
||||
var _a;
|
||||
const line = parseOptionalInt(lineNumber) || 0;
|
||||
const column = parseOptionalInt(columnNumber);
|
||||
const color = isError ? chalk_1.default.red : chalk_1.default.yellow;
|
||||
@@ -769,7 +768,7 @@ function formatWarningOrError({ projectRoot, filePath, reason, cursor, lineText,
|
||||
// `...transition:'fade'},k._updatePropsStack=function(){clearImmediate(k._updateImmediate),k._updateImmediate...`
|
||||
// If there is no text preview or column number, we can't do anything.
|
||||
if (lineText && column != null) {
|
||||
const rangeWindow = Math.round(Math.max((_a = displayFilePath === null || displayFilePath === void 0 ? void 0 : displayFilePath.length) !== null && _a !== void 0 ? _a : 0, 80) / 2);
|
||||
const rangeWindow = Math.round(Math.max(displayFilePath?.length ?? 0, 80) / 2);
|
||||
let minBounds = Math.max(0, column - rangeWindow);
|
||||
const maxBounds = Math.min(minBounds + rangeWindow * 2, lineText.length);
|
||||
previewLine = lineText.slice(minBounds, maxBounds);
|
||||
@@ -812,7 +811,7 @@ function formatWarningOrError({ projectRoot, filePath, reason, cursor, lineText,
|
||||
}
|
||||
}
|
||||
function fill(width) {
|
||||
return Array(width).join(' ');
|
||||
return width >= 0 ? Array(width).join(' ') : '';
|
||||
}
|
||||
// Dim values like `[-Wnullability-completeness]`
|
||||
function grayOutMatch(text, reg) {
|
||||
@@ -820,7 +819,7 @@ function grayOutMatch(text, reg) {
|
||||
}
|
||||
function replaceMatch(text, reg, callback) {
|
||||
const match = text.match(reg);
|
||||
if (match === null || match === void 0 ? void 0 : match.length) {
|
||||
if (match?.length) {
|
||||
return text.replace(reg, callback(match[0]));
|
||||
}
|
||||
return text;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+22
@@ -297,6 +297,17 @@ export declare const Matchers: {
|
||||
* `$2` target
|
||||
* `$3` project
|
||||
*/
|
||||
/**
|
||||
* Matches a Xcode project / workspace level warning like:
|
||||
* `/path/to/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 26.2.99. (in target 'SDWebImage-SDWebImage' from project 'Pods')`
|
||||
*
|
||||
* @regex Captured groups
|
||||
* `$1` = project file path
|
||||
* `$2` = warning reason (without the trailing "(in target ... from project ...)" suffix)
|
||||
* `$3` = native target
|
||||
* `$4` = native project
|
||||
*/
|
||||
XCODEPROJ_WARNING_MATCHER: RegExp;
|
||||
AMBIGUOUS_RUN_SCRIPT: RegExp;
|
||||
/**
|
||||
* @regex Captured groups
|
||||
@@ -335,6 +346,17 @@ export declare const Matchers: {
|
||||
* `$5` = native project
|
||||
*/
|
||||
UNSUPPORTED_ENTITLEMENT_MATCHER: RegExp;
|
||||
/**
|
||||
* Matches a Xcode project / workspace level error like:
|
||||
* `/path/to/MyApp.xcodeproj: error: Provisioning profile "iOS Team Provisioning Profile: *" doesn't include the App Groups capability. (in target 'MyApp' from project 'MyApp')`
|
||||
*
|
||||
* @regex Captured groups
|
||||
* `$1` = project file path
|
||||
* `$2` = error reason (without the trailing "(in target ... from project ...)" suffix)
|
||||
* `$3` = native target
|
||||
* `$4` = native project
|
||||
*/
|
||||
XCODEPROJ_ERROR_MATCHER: RegExp;
|
||||
/**
|
||||
* @regex Captured groups
|
||||
* `$1` = whole error
|
||||
|
||||
+24
-2
@@ -300,7 +300,18 @@ exports.Matchers = {
|
||||
* `$2` target
|
||||
* `$3` project
|
||||
*/
|
||||
AMBIGUOUS_RUN_SCRIPT: /^Run script build phase '(.+)' will be run during every build because it does not specify any outputs\. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase\. \(in\s.*target '([^']*)'.*project '([^']*)'/m,
|
||||
/**
|
||||
* Matches a Xcode project / workspace level warning like:
|
||||
* `/path/to/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 26.2.99. (in target 'SDWebImage-SDWebImage' from project 'Pods')`
|
||||
*
|
||||
* @regex Captured groups
|
||||
* `$1` = project file path
|
||||
* `$2` = warning reason (without the trailing "(in target ... from project ...)" suffix)
|
||||
* `$3` = native target
|
||||
* `$4` = native project
|
||||
*/
|
||||
XCODEPROJ_WARNING_MATCHER: /^(\/.+\.(?:xcodeproj|xcworkspace)):\s*warning:\s*(.+)$/m,
|
||||
AMBIGUOUS_RUN_SCRIPT: /^Run script build phase '(.+)' will be run during every build because it does not specify any outputs\. To address this (?:warning|issue), either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase\. \(in\s.*target '([^']*)'.*project '([^']*)'/m,
|
||||
/**
|
||||
* @regex Captured groups
|
||||
* `$1` = whole warning
|
||||
@@ -337,7 +348,18 @@ exports.Matchers = {
|
||||
* `$4` = native target
|
||||
* `$5` = native project
|
||||
*/
|
||||
UNSUPPORTED_ENTITLEMENT_MATCHER: /^error: Provisioning profile (.*) doesn't (?:support|include) the (.*) (capability|entitlement)\.(?:\s\(in\s.*target '([^']*)'.*project '([^']*)'\)$)?/m,
|
||||
UNSUPPORTED_ENTITLEMENT_MATCHER: /^(?:error:\s)?Provisioning profile (.*) doesn't (?:support|include) the (.*) (capability|entitlement)\.(?:\s\(in\s.*target '([^']*)'.*project '([^']*)'\)$)?/m,
|
||||
/**
|
||||
* Matches a Xcode project / workspace level error like:
|
||||
* `/path/to/MyApp.xcodeproj: error: Provisioning profile "iOS Team Provisioning Profile: *" doesn't include the App Groups capability. (in target 'MyApp' from project 'MyApp')`
|
||||
*
|
||||
* @regex Captured groups
|
||||
* `$1` = project file path
|
||||
* `$2` = error reason (without the trailing "(in target ... from project ...)" suffix)
|
||||
* `$3` = native target
|
||||
* `$4` = native project
|
||||
*/
|
||||
XCODEPROJ_ERROR_MATCHER: /^(\/.+\.(?:xcodeproj|xcworkspace)):\s*error:\s*(.+)$/m,
|
||||
/**
|
||||
* @regex Captured groups
|
||||
* `$1` = whole error
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+8
-10
@@ -123,6 +123,8 @@ class Parser {
|
||||
project: $4,
|
||||
}),
|
||||
],
|
||||
[Matchers_1.Matchers.Errors.XCODEPROJ_ERROR_MATCHER, ([, , $2]) => formatter.formatError($2)],
|
||||
[Matchers_1.Matchers.Warnings.XCODEPROJ_WARNING_MATCHER, ([, , $2]) => formatter.formatWarning($2)],
|
||||
[Matchers_1.Matchers.Errors.CHECK_DEPENDENCIES_ERRORS_MATCHER, ([, $1]) => formatter.formatError($1)],
|
||||
[
|
||||
Matchers_1.Matchers.Errors.PROVISIONING_PROFILE_REQUIRED_MATCHER,
|
||||
@@ -384,7 +386,7 @@ class Parser {
|
||||
Matchers_1.Matchers.Errors.COMPILE_ERROR_MATCHER,
|
||||
matches => {
|
||||
// Prevent matching a one-liner error.
|
||||
if (matches === null || matches === void 0 ? void 0 : matches[4]) {
|
||||
if (matches?.[4]) {
|
||||
return 'unmatched';
|
||||
}
|
||||
this.formattingError = true;
|
||||
@@ -396,7 +398,7 @@ class Parser {
|
||||
Matchers_1.Matchers.Warnings.COMPILE_WARNING_MATCHER,
|
||||
matches => {
|
||||
// Prevent matching a one-liner warning.
|
||||
if (matches === null || matches === void 0 ? void 0 : matches[4]) {
|
||||
if (matches?.[4]) {
|
||||
return 'unmatched';
|
||||
}
|
||||
this.formattingWarning = true;
|
||||
@@ -414,12 +416,11 @@ class Parser {
|
||||
[
|
||||
null,
|
||||
() => {
|
||||
var _a, _b;
|
||||
if (this.formattingError || this.formattingWarning) {
|
||||
// Framework compile errors can have formatting like babel now:
|
||||
// ' 305 | std::__construct_at(__p, std::forward<_Args>(__args)...);'
|
||||
// So we need to strip the prefix (' 305 |') portion.
|
||||
this.currentIssue.line = (_b = (_a = text.match(/^(?:[\s]+\d+ \|\s)?(.*)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : text;
|
||||
this.currentIssue.line = text.match(/^(?:[\s]+\d+ \|\s)?(.*)/)?.[1] ?? text;
|
||||
}
|
||||
return 'unmatched';
|
||||
},
|
||||
@@ -484,16 +485,13 @@ class Parser {
|
||||
return this.formattingWarning && this.errorOrWarningIsPresent();
|
||||
}
|
||||
errorOrWarningIsPresent() {
|
||||
var _a, _b, _c;
|
||||
return !!((_a = this.currentIssue) === null || _a === void 0 ? void 0 : _a.reason) && !!((_b = this.currentIssue) === null || _b === void 0 ? void 0 : _b.cursor) && !!((_c = this.currentIssue) === null || _c === void 0 ? void 0 : _c.line);
|
||||
return !!this.currentIssue?.reason && !!this.currentIssue?.cursor && !!this.currentIssue?.line;
|
||||
}
|
||||
shouldFormatUndefinedSymbols() {
|
||||
var _a, _b, _c;
|
||||
return (((_a = this.linkerFailure) === null || _a === void 0 ? void 0 : _a.message) && ((_b = this.linkerFailure) === null || _b === void 0 ? void 0 : _b.symbol) && ((_c = this.linkerFailure) === null || _c === void 0 ? void 0 : _c.reference));
|
||||
return (this.linkerFailure?.message && this.linkerFailure?.symbol && this.linkerFailure?.reference);
|
||||
}
|
||||
shouldFormatDuplicateSymbols() {
|
||||
var _a, _b, _c;
|
||||
return ((_a = this.linkerFailure) === null || _a === void 0 ? void 0 : _a.message) && ((_c = (_b = this.linkerFailure) === null || _b === void 0 ? void 0 : _b.files) === null || _c === void 0 ? void 0 : _c.length) > 1;
|
||||
return this.linkerFailure?.message && this.linkerFailure?.files?.length > 1;
|
||||
}
|
||||
formatCompileError() {
|
||||
const error = { ...this.currentIssue };
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+4
-6
@@ -15,14 +15,13 @@ const parsePodfileLock_1 = require("./parsePodfileLock");
|
||||
*/
|
||||
class PodfileTracer {
|
||||
static create(projectRoot, { xcodeProject } = {}) {
|
||||
var _a, _b;
|
||||
const podfileLock = path_1.default.join(projectRoot, 'ios', 'Podfile.lock');
|
||||
const podfileContents = fs_1.default.readFileSync(podfileLock, 'utf8');
|
||||
const rootTargetName = ((_a = xcodeProject === null || xcodeProject === void 0 ? void 0 : xcodeProject.name.match(/.*\/(.*)\.\w+/)) === null || _a === void 0 ? void 0 : _a[1]) || '';
|
||||
const rootTargetName = xcodeProject?.name.match(/.*\/(.*)\.\w+/)?.[1] || '';
|
||||
const formatter = new PodfileTracer({
|
||||
projectRoot,
|
||||
rootTargetName,
|
||||
podfile: (_b = (0, parsePodfileLock_1.parsePodfileLock)(podfileContents)) !== null && _b !== void 0 ? _b : {},
|
||||
podfile: (0, parsePodfileLock_1.parsePodfileLock)(podfileContents) ?? {},
|
||||
});
|
||||
return formatter;
|
||||
}
|
||||
@@ -63,7 +62,7 @@ class PodfileTracer {
|
||||
source = this.getExternalSourceForPod(parts[0]);
|
||||
}
|
||||
}
|
||||
if (source === null || source === void 0 ? void 0 : source.source) {
|
||||
if (source?.source) {
|
||||
// Finally attempt to trace the podspec file.
|
||||
const pkg = this.getPackageJsonAnyFilePathInModule({
|
||||
target: source.pod,
|
||||
@@ -90,13 +89,12 @@ class PodfileTracer {
|
||||
return this.getNodeModuleNameForTarget(target);
|
||||
}
|
||||
getExternalSourceForPodWithoutCache(pod) {
|
||||
var _a, _b;
|
||||
if (!pod) {
|
||||
return null;
|
||||
}
|
||||
const results = (0, getFirstExternalSourceForPod_1.getFirstExternalSourceForPod)(this.podfile, { name: pod });
|
||||
// Keep tracing until we get to a development pod with a local file reference.
|
||||
const filePath = (_b = (_a = results === null || results === void 0 ? void 0 : results.source[':podspec']) !== null && _a !== void 0 ? _a : results === null || results === void 0 ? void 0 : results.source[':path']) !== null && _b !== void 0 ? _b : null;
|
||||
const filePath = results?.source[':podspec'] ?? results?.source[':path'] ?? null;
|
||||
if (results && filePath) {
|
||||
return { pod: results.pod, source: filePath };
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -12,7 +12,7 @@ function moduleNameFromPath(modulePath) {
|
||||
const [packageName] = modulePath.split('/');
|
||||
return packageName ? packageName : modulePath;
|
||||
}
|
||||
const NODE_MODULE_PATTERN = /node_modules(\/\.(pnpm|store)\/.*\/node_modules)?\//i;
|
||||
const NODE_MODULE_PATTERN = /node_modules(\/\.(bun|pnpm|store)\/.*\/node_modules)?\//i;
|
||||
function getNodeModuleName(filePath) {
|
||||
// '/<project>/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp'
|
||||
// '/<project>/node_modules/.pnpm/react-native@0.73.1_@babel+core@7.20.2_react@18.2.0/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp'
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"getNodeModuleName.js","sourceRoot":"","sources":["../../src/utils/getNodeModuleName.ts"],"names":[],"mappings":";;AAcA,8CASC;AAvBD,SAAS,kBAAkB,CAAC,UAAkB;IAC5C,IAAI,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/B,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjD,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC;YACvB,OAAO,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,MAAM,CAAC,WAAW,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5C,OAAO,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;AAChD,CAAC;AAED,MAAM,mBAAmB,GAAG,sDAAsD,CAAC;AAEnF,SAAgB,iBAAiB,CAAC,QAAgB;IAChD,wGAAwG;IACxG,+KAA+K;IAC/K,uKAAuK;IACvK,MAAM,CAAC,EAAE,AAAD,EAAG,AAAD,EAAG,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC/D,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["function moduleNameFromPath(modulePath: string) {\n if (modulePath.startsWith('@')) {\n const [org, packageName] = modulePath.split('/');\n if (org && packageName) {\n return [org, packageName].join('/');\n }\n return modulePath;\n }\n const [packageName] = modulePath.split('/');\n return packageName ? packageName : modulePath;\n}\n\nconst NODE_MODULE_PATTERN = /node_modules(\\/\\.(pnpm|store)\\/.*\\/node_modules)?\\//i;\n\nexport function getNodeModuleName(filePath: string): string | null {\n // '/<project>/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp'\n // '/<project>/node_modules/.pnpm/react-native@0.73.1_@babel+core@7.20.2_react@18.2.0/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp'\n // '/<project>/node_modules/.store/react-native@0.73.1-OKL2xQk6utgOIuOl3VvO_g/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp'\n const [, , , modulePath] = filePath.split(NODE_MODULE_PATTERN);\n if (modulePath) {\n return moduleNameFromPath(modulePath);\n }\n return null;\n}\n"]}
|
||||
{"version":3,"file":"getNodeModuleName.js","sourceRoot":"","sources":["../../src/utils/getNodeModuleName.ts"],"names":[],"mappings":";;AAcA,8CASC;AAvBD,SAAS,kBAAkB,CAAC,UAAkB;IAC5C,IAAI,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/B,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjD,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC;YACvB,OAAO,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,MAAM,CAAC,WAAW,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5C,OAAO,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;AAChD,CAAC;AAED,MAAM,mBAAmB,GAAG,0DAA0D,CAAC;AAEvF,SAAgB,iBAAiB,CAAC,QAAgB;IAChD,wGAAwG;IACxG,+KAA+K;IAC/K,uKAAuK;IACvK,MAAM,CAAC,EAAE,AAAD,EAAG,AAAD,EAAG,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC/D,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["function moduleNameFromPath(modulePath: string) {\n if (modulePath.startsWith('@')) {\n const [org, packageName] = modulePath.split('/');\n if (org && packageName) {\n return [org, packageName].join('/');\n }\n return modulePath;\n }\n const [packageName] = modulePath.split('/');\n return packageName ? packageName : modulePath;\n}\n\nconst NODE_MODULE_PATTERN = /node_modules(\\/\\.(bun|pnpm|store)\\/.*\\/node_modules)?\\//i;\n\nexport function getNodeModuleName(filePath: string): string | null {\n // '/<project>/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp'\n // '/<project>/node_modules/.pnpm/react-native@0.73.1_@babel+core@7.20.2_react@18.2.0/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp'\n // '/<project>/node_modules/.store/react-native@0.73.1-OKL2xQk6utgOIuOl3VvO_g/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp'\n const [, , , modulePath] = filePath.split(NODE_MODULE_PATTERN);\n if (modulePath) {\n return moduleNameFromPath(modulePath);\n }\n return null;\n}\n"]}
|
||||
+6
-8
@@ -24,7 +24,7 @@ const parsePodDependency = (pod) => {
|
||||
// js-yaml fails to parse an array with a single item and instead formats it as a string divided by a `-` (hyphen).
|
||||
// Here we match if a hyphen comes after a space. We use fake-nested-Podfile to test this hack.
|
||||
const singleItemArrayBug = pod.match(/(.*)\s-\s(.*)/);
|
||||
if (singleItemArrayBug === null || singleItemArrayBug === void 0 ? void 0 : singleItemArrayBug[2]) {
|
||||
if (singleItemArrayBug?.[2]) {
|
||||
return (0, exports.parsePodDependency)({ [singleItemArrayBug[1]]: singleItemArrayBug[2] });
|
||||
}
|
||||
return [splitPodNameVersion(pod)];
|
||||
@@ -48,8 +48,8 @@ const parsePodDependency = (pod) => {
|
||||
};
|
||||
exports.parsePodDependency = parsePodDependency;
|
||||
function parsePodfileLock(fileContent) {
|
||||
var _a;
|
||||
const contents = (_a = loadPodfileLock(fileContent)) !== null && _a !== void 0 ? _a : loadPodfileLock(EXTERNAL_SOURCES_KEY + fileContent.split(EXTERNAL_SOURCES_KEY).slice(1));
|
||||
const contents = loadPodfileLock(fileContent) ??
|
||||
loadPodfileLock(EXTERNAL_SOURCES_KEY + fileContent.split(EXTERNAL_SOURCES_KEY).slice(1));
|
||||
if (!contents) {
|
||||
return null;
|
||||
}
|
||||
@@ -66,9 +66,8 @@ function parsePodfileLock(fileContent) {
|
||||
return parsed;
|
||||
}
|
||||
function splitPodNameVersion(pod) {
|
||||
var _a;
|
||||
const [name] = pod.split(' ');
|
||||
return { name, version: (_a = pod.match(/\((.*)\)/)) === null || _a === void 0 ? void 0 : _a[1] };
|
||||
return { name, version: pod.match(/\((.*)\)/)?.[1] };
|
||||
}
|
||||
function rubyCaseToKebab(str) {
|
||||
return str.toLowerCase().split(' ').join('-');
|
||||
@@ -77,8 +76,7 @@ function kebabCaseToCamelCase(str) {
|
||||
return str.replace(/-([a-z])/g, g => g[1].toUpperCase());
|
||||
}
|
||||
function getFilePathForExternalSource(podLock, pod) {
|
||||
var _a, _b, _c;
|
||||
const source = (_a = podLock.externalSources) === null || _a === void 0 ? void 0 : _a[pod];
|
||||
return (_c = (_b = source === null || source === void 0 ? void 0 : source[':podspec']) !== null && _b !== void 0 ? _b : source === null || source === void 0 ? void 0 : source[':path']) !== null && _c !== void 0 ? _c : null;
|
||||
const source = podLock.externalSources?.[pod];
|
||||
return source?.[':podspec'] ?? source?.[':path'] ?? null;
|
||||
}
|
||||
//# sourceMappingURL=parsePodfileLock.js.map
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+4
-3
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@expo/xcpretty",
|
||||
"description": "Parse and format xcodebuild logs",
|
||||
"version": "4.4.0",
|
||||
"version": "4.4.3",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
"author": "Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)",
|
||||
@@ -17,7 +17,7 @@
|
||||
"scripts": {
|
||||
"watch": "tsc --watch",
|
||||
"build": "tsc",
|
||||
"prepare": "yarn run clean && yarn build",
|
||||
"prepare": "bun run clean && bun run build",
|
||||
"clean": "rimraf build ./tsconfig.tsbuildinfo",
|
||||
"lint": "eslint . --ext .ts",
|
||||
"test": "jest"
|
||||
@@ -37,6 +37,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/babel__code-frame": "^7.27.0",
|
||||
"@types/js-yaml": "^4.0.1"
|
||||
"@types/js-yaml": "^4.0.1",
|
||||
"@types/node": "^20.16.13"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user