You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* An extension of `packages/powersync-sdk-common` which provides React Native specific implementations of abstracted features.
15
15
16
-
-`packages/journeyapps-react-native-quick-sqlite`
17
-
* A Git submodule for a fork of `react-native-quick-sqlite` this module now automatically loads the shared PowerSync Rust SQLite extension.
18
-
19
16
# Development
20
17
21
18
## Git Submodules
@@ -42,7 +39,7 @@ yarn build:packages
42
39
43
40
44
41
### Development Packages
45
-
Development packages can be published by manually triggering the `dev-packages` workflow. Development packages are versioned as `0.0.0-dev.{short-sha}`.
42
+
Development packages can be published by manually triggering the `dev-packages` workflow. Development packages are versioned as `0.0.0-{tag}-DATETIMESTAMP`.
46
43
47
44
### Production Packages
48
45
Pull requests should contain Changesets for changed packages.
@@ -52,10 +49,25 @@ Add changesets with
52
49
yarn changeset add
53
50
```
54
51
55
-
Submodule production packages should be versioned, tagged and published from their own repository. Any dependencies should be updated here (if applicable) before merging pull requests.
52
+
Merging a PR with Changesets will automatically create a PR with version bumps. That PR will be merged when releasing.
53
+
54
+
## React Native Quick SQLite Development
56
55
56
+
Testing live development changes to `@journeyapps/react-native-quick-sqlite` will not with with standard `yarn link` commands. Metro does not work well with symlinks https://github.com/facebook/metro/issues/286.
57
+
58
+
The process of releasing development packages for `@journeyapps/react-native-quick-sqlite` for each change can be tedious and slow. A faster (and hackier) method is to use [mtsl](https://www.npmjs.com/package/mtsl) which will watch and copy the package into this workspace's `node_modules`.
59
+
60
+
```bash
61
+
npm install -g mtsl
62
+
```
63
+
```bash
64
+
mtsl add -s "[source path to your react-native-quick-sqlite repo folder]" -d "[this workspaces root node_modules folder]"/@journeyapps/react-native-quick-sqlite
65
+
```
66
+
67
+
```bash
68
+
mtsl start "[the id returned from step above]"
69
+
```
57
70
58
-
Merging a PR with Changesets will automatically create a PR with version bumps. That PR will be merged when releasing.
0 commit comments