expo-module-scripts 4.1.10 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/package.json +7 -4
- package/types/expo-metro-augmentations.d.ts +49 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## 5.0.0 — 2025-08-13
|
|
14
14
|
|
|
15
15
|
_This version does not introduce any user-facing changes._
|
|
16
16
|
|
|
17
|
-
## 4.1.9
|
|
17
|
+
## 4.1.9 - 2025-07-03
|
|
18
18
|
|
|
19
19
|
_This version does not introduce any user-facing changes._
|
|
20
20
|
|
|
21
|
-
## 4.1.8
|
|
21
|
+
## 4.1.8 - 2025-06-26
|
|
22
22
|
|
|
23
23
|
_This version does not introduce any user-facing changes._
|
|
24
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-module-scripts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "A private package for various tasks for Expo module packages like compiling and testing",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,16 +35,19 @@
|
|
|
35
35
|
"@tsconfig/node18": "^18.2.2",
|
|
36
36
|
"@types/jest": "^29.2.1",
|
|
37
37
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
38
|
-
"babel-preset-expo": "~
|
|
38
|
+
"babel-preset-expo": "~14.0.0",
|
|
39
39
|
"commander": "^12.1.0",
|
|
40
40
|
"eslint-config-universe": "^15.0.3",
|
|
41
41
|
"glob": "^10.4.2",
|
|
42
|
-
"jest-expo": "~
|
|
42
|
+
"jest-expo": "~54.0.0",
|
|
43
43
|
"jest-snapshot-prettier": "npm:prettier@^2",
|
|
44
44
|
"jest-watch-typeahead": "2.2.1",
|
|
45
45
|
"resolve-workspace-root": "^2.0.0",
|
|
46
46
|
"ts-jest": "~29.0.4",
|
|
47
47
|
"typescript": "^5.8.3"
|
|
48
48
|
},
|
|
49
|
-
"
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@babel/core": "^7.26.0"
|
|
51
|
+
},
|
|
52
|
+
"gitHead": "cb7062e2c17d1fb09522834aaaac0e19b766df62"
|
|
50
53
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/// <reference types="@expo/metro/metro" />
|
|
4
|
+
/// <reference types="@expo/metro/metro-babel-transformer" />
|
|
5
|
+
/// <reference types="@expo/metro/metro-source-map" />
|
|
6
|
+
|
|
7
|
+
import * as __metroDeltaBundlerTypes from '@expo/metro/metro/DeltaBundler/types.flow';
|
|
8
|
+
declare module '@expo/metro/metro/DeltaBundler/types.flow' {
|
|
9
|
+
const enum _AsyncDependencyType {
|
|
10
|
+
/** @privateRemarks Augmentation adds `asyncType: 'worker'` to possible values for worker chunk splitting */
|
|
11
|
+
worker = 'worker'
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
import * as __metroBabelTransformer from '@expo/metro/metro-babel-transformer';
|
|
16
|
+
declare module '@expo/metro/metro-babel-transformer' {
|
|
17
|
+
interface BabelTransformerOptions {
|
|
18
|
+
/** @privateRemarks Augmentation passed to the Expo Babel caller and used in `babel-preset-expo` to force `enableBabelRuntime` to `false` */
|
|
19
|
+
type?: 'script' | 'module' | 'asset';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface MetroBabelFileMetadata {
|
|
23
|
+
/** @privateRemarks Augmentation used in babel-preset-expo/src/{client-module-proxy-plugin.ts,server-actions-plugin.ts} */
|
|
24
|
+
reactServerReference?: string;
|
|
25
|
+
/** @privateRemarks Augmentation used in babel-preset-expo/src/client-module-proxy-plugin.ts */
|
|
26
|
+
reactClientReference?: string;
|
|
27
|
+
/** @privateRemarks Augmentation used in babel-preset-expo/src/use-dom-directive-plugin.ts */
|
|
28
|
+
expoDomComponentReference?: string;
|
|
29
|
+
/** @privateRemarks Augmentation used in babel-preset-expo/src/detect-dynamic-exports.ts */
|
|
30
|
+
hasCjsExports?: boolean;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
import * as __metroSourceMap from '@expo/metro/metro-source-map/source-map';
|
|
35
|
+
declare module '@expo/metro/metro-source-map/source-map' {
|
|
36
|
+
/** @privateRemarks Addition as per: https://github.com/facebook/metro/blob/3eeba3d459592aa5128995c8224933f6a23a43f1/flow-typed/npm/babel_v7.x.x.js#L23 */
|
|
37
|
+
export interface BabelSourceMapSegment extends Record<string, any> {
|
|
38
|
+
name?: null | string;
|
|
39
|
+
source?: null | string;
|
|
40
|
+
generated: { line: number; column: number };
|
|
41
|
+
original?: { line: number; column: number };
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** @privateRemarks Augmented to switch return type to `BabelSourceMapSegment[]` */
|
|
45
|
+
export function toBabelSegments(sourceMap: BasicSourceMap): BabelSourceMapSegment[];
|
|
46
|
+
/** @privateRemarks Augmented to switch argument type to `BabelSourceMapSegment` */
|
|
47
|
+
export function toSegmentTuple(mapping: BabelSourceMapSegment): MetroSourceMapSegmentTuple;
|
|
48
|
+
}
|
|
49
|
+
|