Skip to content

Commit

Permalink
use correct package.json for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
BastianGanze committed Jul 12, 2023
1 parent 799f9cb commit f8f9fd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weebsync",
"version": "0.6.0",
"version": "0.6.1",
"description": "A small tool to automatically sync files from an ftp server.",
"license": "MIT",
"private": true,
Expand All @@ -23,7 +23,8 @@
"server:build": "cd server && yarn build",
"build": "yarn run client:build && yarn run server:build && rollup -c --bundleConfigAsCjs && rm build/index.mjs",
"start": "node build/index.js",
"lint": "eslint -c .eslintrc --ext .ts ./src"
"lint": "eslint -c .eslintrc --ext .ts ./src",
"publish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
},
"author": "Bastian Ganze",
"workspaces": {
Expand Down
2 changes: 1 addition & 1 deletion server/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import tsconfigPaths from "vite-tsconfig-paths";
import { VitePluginNode } from "vite-plugin-node";
const resolve = (dir: string) => join(__dirname, dir);
// @ts-ignore
import {version} from './package.json';
import {version} from '../package.json';

const config: UserConfig = {
resolve: {
Expand Down

0 comments on commit f8f9fd9

Please sign in to comment.