Skip to content

Commit c377153

Browse files
author
Corentin Mors
committed
Bump version to 6.2421.0
1 parent b8a5270 commit c377153

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dashlane/cli",
3-
"version": "6.2416.0",
3+
"version": "6.2421.0",
44
"description": "Manage your Dashlane vault through a CLI tool",
55
"type": "module",
66
"main": "dist/index.cjs",
@@ -28,7 +28,7 @@
2828
"pkg:macos-arm": "pkg . -t node18-macos-arm64 -o bundle/dcli-macos-arm -C GZip --public --public-packages tslib,thirty-two,node-hkdf-sync,vows --no-bytecode",
2929
"pkg:win": "pkg . -t node18-win-x64 -o bundle/dcli-win.exe -C GZip --public --public-packages tslib,thirty-two,node-hkdf-sync,vows --no-bytecode",
3030
"pkg": "yarn run build && yarn run pkg:linux && yarn run pkg:macos && yarn run pkg:win",
31-
"version:bump": "ts-node src/bumpVersion.ts",
31+
"version:bump": "yarn run build && node ./build/bumpVersion.js",
3232
"prepare": "husky",
3333
"test": "mocha"
3434
},

src/bumpVersion.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Command } from 'commander';
2-
import * as fs from 'fs';
3-
import { CliVersion } from './types';
2+
import fs from 'fs';
3+
import { CliVersion } from './types.js';
44

55
const DEFAULT_MAJOR = 6;
66

7-
const bumbProjectVersion = () => {
7+
const bumpProjectVersion = () => {
88
allUpdates(computeNewVersion());
99
};
1010

@@ -78,8 +78,8 @@ const computeWeekOfYear = (date: Date) => {
7878
return 1 + Math.round(((dateCopy.getTime() - week1.getTime()) / 86400000 - 3 + ((week1.getDay() + 6) % 7)) / 7);
7979
};
8080

81-
if (require.main === module) {
81+
if (import.meta.url === `file://${process.argv[1]}`) {
8282
const commander = new Command();
8383
commander.version('0.0.1');
84-
bumbProjectVersion();
84+
bumpProjectVersion();
8585
}

src/cliVersion.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CliVersion } from './types';
22

3-
export const CLI_VERSION: CliVersion = { major: 6, minor: 2416, patch: 0 };
3+
export const CLI_VERSION: CliVersion = { major: 6, minor: 2421, patch: 0 };
44
export const breakingChangesVersions: CliVersion[] = [];
55

66
export const cliVersionToString = (version: CliVersion): string => {

0 commit comments

Comments
 (0)