From c5899942dfdff0762b37bb5943f39816ff3e0dae Mon Sep 17 00:00:00 2001 From: xhyrom Date: Tue, 4 Jan 2022 22:59:52 +0100 Subject: [PATCH] nodejs v16 --- .github/workflows/release.yml | 5 +++-- src/cli.ts | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1effb5..e294cc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,10 +9,11 @@ jobs: steps: - name: checkout uses: actions/checkout@v2 - - name: node + + - name: Install Node v16 uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 16 registry-url: https://registry.npmjs.org/ - name: Install diff --git a/src/cli.ts b/src/cli.ts index 9a38563..3370002 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -10,10 +10,10 @@ import generateCommand from './commands/generateCommand'; const gcommands = new Command('gcommands'); -/*const packajeJson = new URL('../package.json', import.meta.url); +const packajeJson = new URL('../package.json', import.meta.url); const version = JSON.parse(await readFile(packajeJson, 'utf-8')).version; -gcommands.version(version);*/ +gcommands.version(version); gcommands .command('new')