expo-module-scripts 3.5.1 → 3.5.4

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,20 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 3.5.4 — 2024-11-08
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 3.5.3 — 2024-10-08
18
+
19
+ _This version does not introduce any user-facing changes._
20
+
21
+ ## 3.5.2 — 2024-05-29
22
+
23
+ ### 🎉 New features
24
+
25
+ - Add support for building scripts directory (similar to cli, utils, and plugins). ([#29099](https://github.com/expo/expo/pull/29099) by [@brentvatne](https://github.com/brentvatne))
26
+
13
27
  ## 3.5.1 — 2024-04-23
14
28
 
15
29
  _This version does not introduce any user-facing changes._
@@ -0,0 +1 @@
1
+ module.exports = require('./babel.config.cli');
@@ -8,16 +8,22 @@ args=("$@")
8
8
 
9
9
  # If the command is used like `yarn build plugin`, set the --build option to point to
10
10
  # plugin/tsconfig.json
11
- extra_module_build_types=("plugin" "cli" "utils")
11
+ extra_module_build_types=("plugin" "cli" "utils" "scripts")
12
12
  for i in "${extra_module_build_types[@]}"
13
13
  do
14
14
  if [ "$1" == "$i" ]; then
15
- # `--build` must be the first argument, so reset the array
16
- args=()
17
- args+=("--build")
18
- args+=("$(pwd)/$i")
19
- # Push the rest of the arguments minus the `plugin` arg
20
- args+=("${@:2}")
15
+ # Check if tsconfig.json exists in the directory
16
+ if [ -f "$(pwd)/$i/tsconfig.json" ]; then
17
+ # `--build` must be the first argument, so reset the array
18
+ args=()
19
+ args+=("--build")
20
+ args+=("$(pwd)/$i")
21
+ # Push the rest of the arguments minus the `plugin` arg
22
+ args+=("${@:2}")
23
+ else
24
+ echo "tsconfig.json not found in $@, skipping build for $@/"
25
+ exit
26
+ fi
21
27
  fi
22
28
  done
23
29
 
@@ -7,7 +7,7 @@ script_dir="$(dirname "$0")"
7
7
  args=()
8
8
 
9
9
  # If the command is used like `yarn lint plugin` then set the target to `plugin/src`
10
- extra_module_build_types=("plugin" "cli" "utils")
10
+ extra_module_build_types=("plugin" "cli" "utils" "scripts")
11
11
  found_target=""
12
12
  for i in "${extra_module_build_types[@]}"
13
13
  do
@@ -11,7 +11,7 @@ echo "Configuring module"
11
11
  "$script_dir/expo-module-configure"
12
12
  "$script_dir/expo-module-build"
13
13
 
14
- extra_module_build_types=("plugin" "cli" "utils")
14
+ extra_module_build_types=("plugin" "cli" "utils" "scripts")
15
15
  for i in "${extra_module_build_types[@]}"
16
16
  do
17
17
  if [[ -d "$i" ]]; then
@@ -7,7 +7,7 @@ script_dir="$(dirname "$0")"
7
7
  args=("$@")
8
8
 
9
9
  # If the command is used like `yarn test plugin`, set the --rootDir option to the `plugin` directory
10
- extra_module_build_types=("plugin" "cli" "utils")
10
+ extra_module_build_types=("plugin" "cli" "utils" "scripts")
11
11
  for i in "${extra_module_build_types[@]}"
12
12
  do
13
13
  if [ "$1" == "$i" ]; then
@@ -0,0 +1,2 @@
1
+ /** @type {import('jest').Config} */
2
+ module.exports = require('./jest-preset-cli');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-module-scripts",
3
- "version": "3.5.1",
3
+ "version": "3.5.4",
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,7 +35,7 @@
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": "~11.0.0",
38
+ "babel-preset-expo": "~11.0.15",
39
39
  "commander": "^2.19.0",
40
40
  "eslint-config-universe": "^12.0.0",
41
41
  "find-yarn-workspace-root": "^2.0.0",
@@ -46,5 +46,5 @@
46
46
  "ts-jest": "~29.0.4",
47
47
  "typescript": "^5.1.3"
48
48
  },
49
- "gitHead": "ee4f30ef3b5fa567ad1bf94794197f7683fdd481"
49
+ "gitHead": "672a1e49651614f047f5f104fa2bb65ac7fb050e"
50
50
  }