From b17cb00c96aefaf32861a5773cafc99dc85754ff Mon Sep 17 00:00:00 2001 From: Damian Krzeminski Date: Tue, 2 Apr 2024 15:52:06 +0200 Subject: [PATCH] upgrade commander to ~12 --- lib/cli/fetch.js | 2 +- lib/cli/generate.js | 2 +- lib/cli/noaa.js | 2 +- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/cli/fetch.js b/lib/cli/fetch.js index 35603b2f..1e7717b8 100644 --- a/lib/cli/fetch.js +++ b/lib/cli/fetch.js @@ -1,4 +1,4 @@ -const program = require('commander'); +const { program } = require('commander'); const curl = require('./curl'); let done; diff --git a/lib/cli/generate.js b/lib/cli/generate.js index bc036c37..a861398d 100644 --- a/lib/cli/generate.js +++ b/lib/cli/generate.js @@ -1,4 +1,4 @@ -const program = require('commander'); +const { program } = require('commander'); const prompt = require('prompt'); const url = require('node:url'); const fs = require('node:fs'); diff --git a/lib/cli/noaa.js b/lib/cli/noaa.js index 386e0e0f..df26e95c 100644 --- a/lib/cli/noaa.js +++ b/lib/cli/noaa.js @@ -1,4 +1,4 @@ -const program = require('commander'); +const { program } = require('commander'); const { writeFileSync } = require('node:fs'); const { resolve } = require('node:path'); const superagent = require('superagent'); diff --git a/package.json b/package.json index 3085bb55..9160d2b8 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "@biomejs/biome": "^1.5.1", "@pirxpilot/replay": "^2.2.1", "clean-css-cli": "^5.1.0", - "commander": "~11.1.0", + "commander": "~12.0.0", "postcss": "~8", "postcss-cachify": "^4.0.0", "postcss-cli-simple": "~4.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 15e2209c..87960252 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -95,8 +95,8 @@ devDependencies: specifier: ^5.1.0 version: 5.6.3 commander: - specifier: ~11.1.0 - version: 11.1.0 + specifier: ~12.0.0 + version: 12.0.0 postcss: specifier: ~8 version: 8.4.38 @@ -653,9 +653,9 @@ packages: delayed-stream: 1.0.0 dev: false - /commander@11.1.0: - resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} - engines: {node: '>=16'} + /commander@12.0.0: + resolution: {integrity: sha512-MwVNWlYjDTtOjX5PiD7o5pK0UrFU/OYgcJfjjK4RaHZETNtjJqrZa9Y9ds88+A+f+d5lv+561eZ+yCKoS3gbAA==} + engines: {node: '>=18'} dev: true /commander@7.2.0: