diff --git a/dist/run-scripts.d.ts b/dist/run-scripts.d.ts index d48fa35..c6e0873 100644 --- a/dist/run-scripts.d.ts +++ b/dist/run-scripts.d.ts @@ -1,4 +1,4 @@ -//! run-scripts-util v1.2.5 ~~ https://github.com/center-key/run-scripts-util ~~ MIT License +//! run-scripts-util v1.2.6 ~~ https://github.com/center-key/run-scripts-util ~~ MIT License export type Settings = { only: number | null; diff --git a/dist/run-scripts.js b/dist/run-scripts.js index 4d88288..f5dce6c 100644 --- a/dist/run-scripts.js +++ b/dist/run-scripts.js @@ -1,4 +1,4 @@ -//! run-scripts-util v1.2.5 ~~ https://github.com/center-key/run-scripts-util ~~ MIT License +//! run-scripts-util v1.2.6 ~~ https://github.com/center-key/run-scripts-util ~~ MIT License import { spawn, spawnSync } from 'node:child_process'; import chalk from 'chalk'; @@ -35,7 +35,7 @@ const runScripts = { }; const skip = (step, command) => { const active = settings.only === null || step === settings.only; - const commentedOut = command.startsWith('//') || command.startsWith('-'); + const commentedOut = command.startsWith('//'); if (commentedOut) logger(chalk.yellow('skipping:'), command); return !active || commentedOut; diff --git a/package.json b/package.json index 5e74a0c..9a139a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "run-scripts-util", - "version": "1.2.5", + "version": "1.2.6", "description": "Organize npm package.json scripts into named groups of easy to manage commands (CLI tool designed for use in npm package.json scripts)", "license": "MIT", "type": "module", @@ -110,19 +110,19 @@ "fancy-log": "~2.0" }, "devDependencies": { - "@eslint/js": "~9.3", + "@eslint/js": "~9.6", "@types/fancy-log": "~2.0", - "@types/node": "~20.12", + "@types/node": "~20.14", "add-dist-header": "~1.4", "assert-deep-strict-equal": "~1.2", "copy-file-util": "~1.2", "copy-folder-util": "~1.1", "eslint": "8.57.0", "jshint": "~2.13", - "mocha": "~10.4", + "mocha": "~10.5", "npm-run-all2": "~6.2", "rimraf": "~5.0", - "typescript": "~5.4", - "typescript-eslint": "~7.11" + "typescript": "~5.5", + "typescript-eslint": "~7.15" } } diff --git a/run-scripts.ts b/run-scripts.ts index 42011c8..ccb2a4d 100644 --- a/run-scripts.ts +++ b/run-scripts.ts @@ -75,7 +75,7 @@ const runScripts = { }; const skip = (step: number, command: string) => { const active = settings.only === null || step === settings.only; - const commentedOut = command.startsWith('//') || command.startsWith('-'); //DEPRECATED: single dash comments + const commentedOut = command.startsWith('//'); if (commentedOut) logger(chalk.yellow('skipping:'), command); return !active || commentedOut;