Skip to content

Commit 8fc628a

Browse files
committed
chore: updrate hydratation script
1 parent 2e78a80 commit 8fc628a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"start": "node index.js",
88
"prepublishOnly": "pkg-ok",
9+
"hydrate": "node scripts/hydrate.js",
910
"test": "cross-env psp && node test/test.js",
1011
"doc": "jsdoc -c ./jsdoc.json -r -R ./README.md -P ./package.json --verbose",
1112
"coverage": "nyc npm test",

scripts/hydrate.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,12 @@ async function main() {
7575
await tables.Addons.create({
7676
name: cleanName,
7777
description,
78-
version,
78+
latest: version,
79+
version: {
80+
version,
81+
git: `https://github.com/${fullName}.git`
82+
},
7983
authorId: user.id,
80-
git: `https://github.com/${fullName}.git`,
8184
organisationId: org.id
8285
});
8386
}

0 commit comments

Comments
 (0)