@idealyst/cli 1.0.96 → 1.0.98

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idealyst/cli",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "CLI tool for generating Idealyst Framework projects",
5
5
  "readme": "README.md",
6
6
  "main": "dist/index.js",
@@ -17,6 +17,15 @@ const config = {
17
17
  ],
18
18
  // Important for Idealyst to use .native extensions for React Native (eg: @idealyst/components/src/Button/Button.native.tsx)
19
19
  sourceExts: ['native.tsx', 'native.ts', 'tsx', 'ts', 'native.jsx', 'native.js', 'jsx', 'js', 'json', 'cjs'],
20
+ extraNodeModules: {
21
+ // Redirect react and react-native imports to the local node_modules
22
+ react: path.resolve(__dirname, 'node_modules/react'),
23
+ 'react-native': path.resolve(__dirname, 'node_modules/react-native'),
24
+ // Ensure Idealyst packages use mobile's node_modules
25
+ '@idealyst/components': path.resolve(__dirname, 'node_modules/@idealyst/components'),
26
+ '@idealyst/navigation': path.resolve(__dirname, 'node_modules/@idealyst/navigation'),
27
+ '@idealyst/theme': path.resolve(__dirname, 'node_modules/@idealyst/theme'),
28
+ },
20
29
  },
21
30
  watcher: {
22
31
  // When configuring custom components with .native extensions, make sure the watcher looks for them