expo-module-scripts 3.1.1 → 3.3.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 +18 -1
- package/bin/expo-module-test +3 -0
- package/jest-preset-plugin.js +4 -1
- package/jest-preset.js +2 -1
- package/package.json +4 -4
- package/tsconfig.base.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,23 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 3.3.0 — 2023-11-14
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Remove watchPlugins from sub-projects when using multi-project runner. ([#25302](https://github.com/expo/expo/pull/25302) by [@EvanBacon](https://github.com/EvanBacon))
|
|
18
|
+
- Default to using jest-preset-plugin when running `yarn test plugin` with no `plugin/jest.config.js` file. ([#25302](https://github.com/expo/expo/pull/25302) by [@EvanBacon](https://github.com/EvanBacon))
|
|
19
|
+
|
|
20
|
+
## 3.2.0 — 2023-10-17
|
|
21
|
+
|
|
22
|
+
### 🎉 New features
|
|
23
|
+
|
|
24
|
+
- Preserve JSX in production exports to support jsx/createElement interception. ([#24889](https://github.com/expo/expo/pull/24889) by [@EvanBacon](https://github.com/EvanBacon))
|
|
25
|
+
|
|
26
|
+
### 💡 Others
|
|
27
|
+
|
|
28
|
+
- Transpile for Node 18 (LTS). ([#24471](https://github.com/expo/expo/pull/24471) by [@EvanBacon](https://github.com/EvanBacon))
|
|
29
|
+
|
|
13
30
|
## 3.1.1 — 2023-09-18
|
|
14
31
|
|
|
15
32
|
_This version does not introduce any user-facing changes._
|
|
@@ -78,7 +95,7 @@ _This version does not introduce any user-facing changes._
|
|
|
78
95
|
|
|
79
96
|
### 🐛 Bug fixes
|
|
80
97
|
|
|
81
|
-
- Fixed
|
|
98
|
+
- Fixed _with-node.sh_ doesn't keep quotes when passing arguments to Node.js and caused build errors when there are spaces in target name. ([#18741](https://github.com/expo/expo/pull/18741) by [@kudo](https://github.com/kudo))
|
|
82
99
|
|
|
83
100
|
## 2.1.0 — 2022-08-04
|
|
84
101
|
|
package/bin/expo-module-test
CHANGED
|
@@ -15,6 +15,9 @@ if [ "$1" == "plugin" ]; then
|
|
|
15
15
|
if [[ -f plugin/jest.config.js ]]; then
|
|
16
16
|
args+=("--config")
|
|
17
17
|
args+=("plugin/jest.config.js")
|
|
18
|
+
else
|
|
19
|
+
args+=("--config")
|
|
20
|
+
args+=("$(node --print "require.resolve('expo-module-scripts/jest-preset-plugin.js')")")
|
|
18
21
|
fi
|
|
19
22
|
|
|
20
23
|
# Push the rest of the arguments minus the `plugin` arg
|
package/jest-preset-plugin.js
CHANGED
|
@@ -4,7 +4,10 @@ const nodePreset = {
|
|
|
4
4
|
transform: {
|
|
5
5
|
'^.+\\.[jt]sx?$': ['babel-jest', { configFile: require.resolve('./babel.config.base.js') }],
|
|
6
6
|
},
|
|
7
|
-
watchPlugins: [
|
|
7
|
+
watchPlugins: [
|
|
8
|
+
require.resolve('jest-watch-typeahead/filename'),
|
|
9
|
+
require.resolve('jest-watch-typeahead/testname'),
|
|
10
|
+
],
|
|
8
11
|
};
|
|
9
12
|
|
|
10
13
|
module.exports = nodePreset;
|
package/jest-preset.js
CHANGED
|
@@ -6,5 +6,6 @@ module.exports = withWatchPlugins({
|
|
|
6
6
|
createJestPreset(require('jest-expo/android/jest-preset')),
|
|
7
7
|
createJestPreset(require('jest-expo/web/jest-preset')),
|
|
8
8
|
createJestPreset(require('jest-expo/node/jest-preset')),
|
|
9
|
-
|
|
9
|
+
// Remove sub-watch-plugins from the preset when using multi-project runner.
|
|
10
|
+
].map(({ watchPlugins, ...config }) => config),
|
|
10
11
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-module-scripts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.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": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"@babel/cli": "^7.1.2",
|
|
30
30
|
"@expo/npm-proofread": "^1.0.1",
|
|
31
31
|
"@testing-library/react-hooks": "^7.0.1",
|
|
32
|
-
"@tsconfig/
|
|
32
|
+
"@tsconfig/node18": "^18.2.2",
|
|
33
33
|
"@types/jest": "^29.2.1",
|
|
34
|
-
"babel-preset-expo": "~9.
|
|
34
|
+
"babel-preset-expo": "~9.9.0",
|
|
35
35
|
"commander": "^2.19.0",
|
|
36
36
|
"eslint-config-universe": "^12.0.0",
|
|
37
37
|
"find-yarn-workspace-root": "^2.0.0",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"ts-jest": "~29.0.4",
|
|
42
42
|
"typescript": "^5.1.3"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
|
|
45
45
|
}
|