expo-module-scripts 3.5.1 → 3.5.2
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 +6 -0
- package/babel.config.scripts.js +1 -0
- package/bin/expo-module-build +13 -7
- package/bin/expo-module-lint +1 -1
- package/bin/expo-module-prepare +1 -1
- package/bin/expo-module-test +1 -1
- package/jest-preset-scripts.js +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 3.5.2 — 2024-05-29
|
|
14
|
+
|
|
15
|
+
### 🎉 New features
|
|
16
|
+
|
|
17
|
+
- 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))
|
|
18
|
+
|
|
13
19
|
## 3.5.1 — 2024-04-23
|
|
14
20
|
|
|
15
21
|
_This version does not introduce any user-facing changes._
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./babel.config.cli');
|
package/bin/expo-module-build
CHANGED
|
@@ -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
|
-
#
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
package/bin/expo-module-lint
CHANGED
|
@@ -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
|
package/bin/expo-module-prepare
CHANGED
|
@@ -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
|
package/bin/expo-module-test
CHANGED
|
@@ -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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-module-scripts",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
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": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"ts-jest": "~29.0.4",
|
|
47
47
|
"typescript": "^5.1.3"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "979e9f1fc3cfa9c827700dcf99992e671cfdf63e"
|
|
50
50
|
}
|