Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit eb6589f

Browse files
committed
SampleApp: support cross-platform cp.
1 parent e8f2a76 commit eb6589f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SampleApp/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"main": "node_modules/expo/AppEntry.js",
33
"scripts": {
44
"start": "expo start",
5-
"postinstall": "cp -f ../*.js node_modules/react-native-modal-selector/",
5+
"postinstall": "npm run cp",
6+
"cp": "cpx \"../*.js\" node_modules/react-native-modal-selector/ -u",
67
"nodemon": "nodemon nodemon.json",
78
"android": "expo start --android",
89
"ios": "expo start --ios",
@@ -20,6 +21,7 @@
2021
"devDependencies": {
2122
"babel-preset-expo": "~8.0.0",
2223
"@babel/core": "^7.0.0",
24+
"@deboxsoft/cpx": "^1.5.0",
2325
"nodemon": "^1.18.10"
2426
},
2527
"private": true

0 commit comments

Comments
 (0)