Skip to content

Commit 462141e

Browse files
committed
Expand prerelease support
1 parent bd3fecd commit 462141e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

gitpkg.config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
const { execSync } = require("child_process");
1+
import { execSync } from "child_process";
22

3-
module.exports = () => ({
4-
getTagName: (pkg) => `${pkg.name}-v${pkg.version}-gitpkg-${execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).trim()}`,
5-
});
3+
export default () => ({
4+
getTagName: (pkg) =>
5+
`${pkg.name}-v${pkg.version}-gitpkg-${execSync(
6+
'git rev-parse --short HEAD',
7+
{ encoding: 'utf-8' }
8+
).trim()}`
9+
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thumbdrive",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "An OPFS wrapper offering sync access and multi-tab support",
55
"type": "module",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)