@spytecgps/nova-orm 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -1 +1,7 @@
1
1
  # Hapn ORM for Planet Scale
2
+
3
+ # SYNC the entities definition with Planet Scale schema:
4
+
5
+ 1- Modify the url value for the data source in the file data-source.ts to use the dev branch connection string
6
+
7
+ 2- Run the command npm run schema-sync
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -38,7 +38,8 @@
38
38
  "lint": "eslint \"./src/**\"",
39
39
  "lint-fix": "eslint \"./src/**\" --fix",
40
40
  "build-dev": "webpack --mode=development",
41
- "build": "webpack --mode=production"
41
+ "build": "webpack --mode=production",
42
+ "schema-sync": "yarn typeorm schema:drop --dataSource ./data-source.ts & yarn typeorm schema:sync --dataSource ./data-source.ts"
42
43
  },
43
44
  "author": "Spytec",
44
45
  "license": "ISC",