Skip to content

Commit

Permalink
chore: Use better-sqlite3 for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Oct 16, 2020
1 parent 55b00b2 commit 6204acf
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"@types/node": "^10.12.18",
"@types/progress": "^2.0.3",
"@types/prompts": "^2.0.9",
"better-sqlite3": "^7.1.1",
"gulp": "^4.0.2",
"mysql": "^2.18.1",
"pg": "^8.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-server/dev-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function getDbConfig(): ConnectionOptions {
console.log('Using sqlite connection');
return {
synchronize: false,
type: 'sqlite',
type: 'better-sqlite3',
database: path.join(__dirname, 'vendure.sqlite'),
};
case 'sqljs':
Expand Down
33 changes: 32 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5404,6 +5404,15 @@ better-assert@~1.0.0:
dependencies:
callsite "1.0.0"

better-sqlite3@^7.1.1:
version "7.1.1"
resolved "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-7.1.1.tgz#107457a8b770cfb16be646e347c17b42bc204dd3"
integrity sha512-AkvGGyhAVZhRBOul2WT+5CB2EuveM3ZkebEKe1wxMqDZUy1XB/1RBgM66t0ybHC4DIni8+pr7NaLqEX87NUTwg==
dependencies:
bindings "^1.5.0"
prebuild-install "^5.3.3"
tar "4.4.10"

big.js@^5.2.2:
version "5.2.2"
resolved "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328"
Expand Down Expand Up @@ -13548,14 +13557,23 @@ [email protected], npm-package-arg@^8.0.0:
semver "^5.6.0"
validate-npm-package-name "^3.0.0"

npm-packlist@1.1.12, npm-packlist@^1.1.12, npm-packlist@^1.1.6, npm-packlist@^1.4.4:
npm-packlist@^1.1.12, npm-packlist@^1.1.6:
version "1.1.12"
resolved "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.1.12.tgz#22bde2ebc12e72ca482abd67afc51eb49377243a"
integrity sha512-WJKFOVMeAlsU/pjXuqVdzU0WfgtIBCupkEVwn+1Y0ERAbUfWw8R4GjgVbaKnUjRoD2FoQbHOCbOyT5Mbs9Lw4g==
dependencies:
ignore-walk "^3.0.1"
npm-bundled "^1.0.1"

npm-packlist@^1.4.4:
version "1.4.8"
resolved "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.8.tgz#56ee6cc135b9f98ad3d51c1c95da22bbb9b2ef3e"
integrity sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A==
dependencies:
ignore-walk "^3.0.1"
npm-bundled "^1.0.1"
npm-normalize-package-bin "^1.0.1"

[email protected]:
version "6.1.0"
resolved "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-6.1.0.tgz#2befed87b0fce956790f62d32afb56d7539c022a"
Expand Down Expand Up @@ -17369,6 +17387,19 @@ tar-stream@^2.0.0:
inherits "^2.0.3"
readable-stream "^3.1.1"

[email protected]:
version "4.4.10"
resolved "https://registry.npmjs.org/tar/-/tar-4.4.10.tgz#946b2810b9a5e0b26140cf78bea6b0b0d689eba1"
integrity sha512-g2SVs5QIxvo6OLp0GudTqEf05maawKUxXru104iaayWA09551tFCTI8f1Asb4lPfkBr91k07iL4c11XO3/b0tA==
dependencies:
chownr "^1.1.1"
fs-minipass "^1.2.5"
minipass "^2.3.5"
minizlib "^1.2.1"
mkdirp "^0.5.0"
safe-buffer "^5.1.2"
yallist "^3.0.3"

tar@^2.0.0:
version "2.2.2"
resolved "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz#0ca8848562c7299b8b446ff6a4d60cdbb23edc40"
Expand Down

0 comments on commit 6204acf

Please sign in to comment.