@startupjs/cli 0.45.4 → 0.46.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/index.js +22 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -28,6 +28,19 @@ try {
|
|
|
28
28
|
PATCHES_DIR = './patches'
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
let PATCHES_GESTURE_HANDLER_DIR
|
|
32
|
+
try {
|
|
33
|
+
PATCHES_GESTURE_HANDLER_DIR = path.join(
|
|
34
|
+
path.dirname(require.resolve('@startupjs/patches')),
|
|
35
|
+
'patches_gestureHandler'
|
|
36
|
+
)
|
|
37
|
+
// patch-package requires the path to be relative
|
|
38
|
+
PATCHES_GESTURE_HANDLER_DIR = path.relative(process.cwd(), PATCHES_GESTURE_HANDLER_DIR)
|
|
39
|
+
} catch (err) {
|
|
40
|
+
console.error(err)
|
|
41
|
+
console.error('ERROR!!! Gesture handler patches not found.')
|
|
42
|
+
}
|
|
43
|
+
|
|
31
44
|
const LINK = !!process.env.LINK
|
|
32
45
|
const LOCAL_DIR = process.env.LOCAL_DIR || '.'
|
|
33
46
|
|
|
@@ -48,7 +61,7 @@ const DEV_DEPENDENCIES = [
|
|
|
48
61
|
'eslint-config-standard-react',
|
|
49
62
|
'eslint-plugin-import',
|
|
50
63
|
'eslint-plugin-import-helpers',
|
|
51
|
-
'eslint-plugin-
|
|
64
|
+
'eslint-plugin-n',
|
|
52
65
|
'eslint-plugin-promise',
|
|
53
66
|
'eslint-plugin-react',
|
|
54
67
|
'eslint-plugin-react-pug',
|
|
@@ -288,12 +301,18 @@ SCRIPTS_ORIG.patchPackage = () => oneLine(`
|
|
|
288
301
|
npx patch-package --patch-dir ${PATCHES_DIR}
|
|
289
302
|
`)
|
|
290
303
|
|
|
304
|
+
SCRIPTS_ORIG.patchGestureHandler = () => PATCHES_GESTURE_HANDLER_DIR
|
|
305
|
+
? oneLine(`
|
|
306
|
+
(cat package.json | grep -q react-native-gesture-handler && npx patch-package --patch-dir ${PATCHES_GESTURE_HANDLER_DIR} || true)
|
|
307
|
+
`)
|
|
308
|
+
: 'true'
|
|
309
|
+
|
|
291
310
|
SCRIPTS_ORIG.fonts = () => oneLine(`
|
|
292
311
|
react-native-asset
|
|
293
312
|
`)
|
|
294
313
|
|
|
295
314
|
SCRIPTS_ORIG.postinstall = () => oneLine(`
|
|
296
|
-
${SCRIPTS_ORIG.patchPackage()} && ${SCRIPTS_ORIG.fonts()}
|
|
315
|
+
${SCRIPTS_ORIG.patchPackage()} && ${SCRIPTS_ORIG.fonts()} && ${SCRIPTS_ORIG.patchGestureHandler()}
|
|
297
316
|
`)
|
|
298
317
|
|
|
299
318
|
const SCRIPTS = {
|
|
@@ -339,7 +358,7 @@ const TEMPLATES = {
|
|
|
339
358
|
'@react-native-picker/picker@^1.16.1',
|
|
340
359
|
'react-native-collapsible@^1.6.0',
|
|
341
360
|
'react-native-color-picker@^0.6.0',
|
|
342
|
-
'react-native-gesture-handler
|
|
361
|
+
'react-native-gesture-handler@1.10.3',
|
|
343
362
|
'react-native-pager-view@^5.1.2',
|
|
344
363
|
'react-native-tab-view@^3.0.0'
|
|
345
364
|
// === END UI PEER DEPS ===
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"description": "start, watch and build startupjs project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"webpack-cli": "^4.9.1",
|
|
27
27
|
"webpack-dev-server": "^4.4.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ed6ce68f7d673bb2dbcc986d49eb7eebcf6f3180"
|
|
30
30
|
}
|