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 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 *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))
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
 
@@ -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
@@ -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: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
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.1.1",
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/node14": "^1.0.3",
32
+ "@tsconfig/node18": "^18.2.2",
33
33
  "@types/jest": "^29.2.1",
34
- "babel-preset-expo": "~9.7.0",
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": "62f76105dfb436f7144440d6e6077d4ff3263842"
44
+ "gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
45
45
  }
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "target": "esnext",
4
4
  "lib": ["dom", "esnext"],
5
- "jsx": "react",
5
+ "jsx": "react-native",
6
6
  "moduleResolution": "node",
7
7
  "esModuleInterop": true,
8
8
  "types": ["jest", "jest-require"],