@commercelayer/cli-dev
Advanced tools
Comparing version 2.0.5 to 2.1.1
@@ -1,2 +0,2 @@ | ||
import { Command, Interfaces } from '@oclif/core'; | ||
import { Command, type Interfaces } from '@oclif/core'; | ||
export default class Readme extends Command { | ||
@@ -3,0 +3,0 @@ static description: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// tslint:disable no-implicit-dependencies | ||
const tslib_1 = require("tslib"); | ||
const core_1 = require("@oclif/core"); | ||
const fs = require("fs-extra"); | ||
const _ = require("lodash"); | ||
const path = require("path"); | ||
const fs = tslib_1.__importStar(require("fs-extra")); | ||
const _ = tslib_1.__importStar(require("lodash")); | ||
const path = tslib_1.__importStar(require("path")); | ||
const url_1 = require("url"); | ||
@@ -252,3 +252,2 @@ const util_1 = require("../util"); | ||
} | ||
exports.default = Readme; | ||
Readme.description = `adds commands to README.md in current directory | ||
@@ -269,1 +268,2 @@ The readme must have any of the following tags inside of it for it to be replaced or else it will do nothing: | ||
}; | ||
exports.default = Readme; |
@@ -1,2 +0,2 @@ | ||
import { HelpBase, Command } from '@oclif/core'; | ||
import type { HelpBase, Command } from '@oclif/core'; | ||
interface MaybeCompatibleHelp extends HelpBase { | ||
@@ -3,0 +3,0 @@ formatCommand?: (command: Command.Cached) => string; |
@@ -8,3 +8,3 @@ export declare function castArray<T>(input?: T | T[]): T[]; | ||
} | ||
export declare const template: (context: any) => (t: string | undefined) => string; | ||
export declare const template: (context: object) => (t: string | undefined) => string; | ||
interface VersionsObject { | ||
@@ -11,0 +11,0 @@ [key: string]: string; |
@@ -43,3 +43,2 @@ "use strict"; | ||
exports.sortBy = sortBy; | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
const template = (context) => (t) => _.template(t || '')(context); | ||
@@ -46,0 +45,0 @@ exports.template = template; |
{ | ||
"version": "2.0.5", | ||
"commands": { | ||
"readme": { | ||
"id": "readme", | ||
"description": "adds commands to README.md in current directory\nThe readme must have any of the following tags inside of it for it to be replaced or else it will do nothing:\n## Usage\n<!-- usage -->\n## Commands\n<!-- commands -->\n\nCustomize the code URL prefix by setting oclif.repositoryPrefix in package.json.\n", | ||
"strict": true, | ||
"noc": { | ||
"aliases": [], | ||
"args": {}, | ||
"flags": {}, | ||
"hasDynamicHelp": false, | ||
"hidden": true, | ||
"hiddenAliases": [], | ||
"id": "noc", | ||
"pluginAlias": "@commercelayer/cli-dev", | ||
"pluginName": "@commercelayer/cli-dev", | ||
"pluginAlias": "@commercelayer/cli-dev", | ||
"pluginType": "core", | ||
"strict": true, | ||
"isESM": false, | ||
"relativePath": [ | ||
"lib", | ||
"commands", | ||
"noc.js" | ||
] | ||
}, | ||
"readme": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "adds commands to README.md in current directory\nThe readme must have any of the following tags inside of it for it to be replaced or else it will do nothing:\n## Usage\n<!-- usage -->\n## Commands\n<!-- commands -->\n\nCustomize the code URL prefix by setting oclif.repositoryPrefix in package.json.\n", | ||
"flags": { | ||
"dir": { | ||
"description": "output directory for multi docs", | ||
"name": "dir", | ||
"type": "option", | ||
"description": "output directory for multi docs", | ||
"required": true, | ||
"default": "docs", | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"default": "docs" | ||
"type": "option" | ||
}, | ||
"multi": { | ||
"description": "create a different markdown page for each topic", | ||
"name": "multi", | ||
"type": "boolean", | ||
"description": "create a different markdown page for each topic", | ||
"allowNo": false | ||
"allowNo": false, | ||
"type": "boolean" | ||
}, | ||
"plugin": { | ||
"description": "create a plugin readme doc", | ||
"name": "plugin", | ||
"type": "boolean", | ||
"description": "create a plugin readme doc", | ||
"allowNo": false | ||
"allowNo": false, | ||
"type": "boolean" | ||
}, | ||
"bin": { | ||
"dependsOn": [ | ||
"plugin" | ||
], | ||
"description": "optional main cli command", | ||
"name": "bin", | ||
"type": "option", | ||
"description": "optional main cli command", | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"dependsOn": [ | ||
"plugin" | ||
] | ||
"type": "option" | ||
} | ||
}, | ||
"args": {} | ||
"hasDynamicHelp": false, | ||
"hiddenAliases": [], | ||
"id": "readme", | ||
"pluginAlias": "@commercelayer/cli-dev", | ||
"pluginName": "@commercelayer/cli-dev", | ||
"pluginType": "core", | ||
"strict": true, | ||
"isESM": false, | ||
"relativePath": [ | ||
"lib", | ||
"commands", | ||
"readme.js" | ||
] | ||
} | ||
} | ||
}, | ||
"version": "2.1.1" | ||
} |
{ | ||
"name": "@commercelayer/cli-dev", | ||
"description": "Commerce Layer CLI development tools and helpers", | ||
"version": "2.0.5", | ||
"version": "2.1.1", | ||
"author": "Pierluigi Viti <pierluigi@commercelayer.io>", | ||
@@ -11,3 +11,3 @@ "bugs": "https://github.com/commercelayer/commercelayer-cli-dev/issues", | ||
"engines": { | ||
"node": ">=16" | ||
"node": ">=18" | ||
}, | ||
@@ -42,14 +42,28 @@ "files": [ | ||
"repository": "commercelayer/commercelayer-cli-dev", | ||
"scripts": { | ||
"pretest": "npm run build --noEmit && echo 'Skipping test dir compile check in CI for now (3rd party type error) but you should compile it locally'", | ||
"posttest": "npx lint", | ||
"build": "rm -rf lib && tsc", | ||
"prepack": "npm run build && oclif manifest && npm run readme", | ||
"postpack": "rm -f oclif.manifest.json", | ||
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"", | ||
"readme": "./bin/run readme && git add README.md", | ||
"lint": "eslint . --ext .ts --config .eslintrc", | ||
"lintspec": "eslint ./specs/ --ext .spec.ts", | ||
"lint:fix": "eslint src --fix" | ||
}, | ||
"types": "lib/index.d.ts", | ||
"devDependencies": { | ||
"@commercelayer/eslint-config-ts": "^0.1.4", | ||
"@oclif/plugin-help": "^5.2.8", | ||
"@oclif/test": "^2.3.10", | ||
"@types/chai": "^4.3.4", | ||
"@commercelayer/eslint-config-ts": "^1.3.0", | ||
"@oclif/plugin-help": "^5.2.20", | ||
"@oclif/test": "^2.5.6", | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
"@types/chai": "^4.3.11", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/lodash": "^4.14.191", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.15.3", | ||
"chai": "^4.3.7", | ||
"eslint": "^8.36.0", | ||
"@types/lodash": "^4.14.202", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^20.10.5", | ||
"chai": "^4.3.10", | ||
"eslint": "^8.56.0", | ||
"globby": "^10.0.2", | ||
@@ -59,25 +73,18 @@ "lodash": "^4.17.21", | ||
"nyc": "^15.1.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.5" | ||
"oclif": "^4.1.0", | ||
"pnpm": "^8.12.1", | ||
"semantic-release": "^22.0.12", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.3.3" | ||
}, | ||
"dependencies": { | ||
"@oclif/core": "^2.6.3", | ||
"@oclif/core": "^2.15.0", | ||
"fs-extra": "^10.1.0", | ||
"github-slugger": "^1.5.0", | ||
"normalize-package-data": "^5.0.0", | ||
"tslib": "^2.5.0" | ||
"tslib": "^2.6.2" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"pretest": "npm run build --noEmit && echo 'Skipping test dir compile check in CI for now (3rd party type error) but you should compile it locally'", | ||
"posttest": "npx lint", | ||
"build": "rm -rf lib && tsc", | ||
"test": "mocha --forbid-only \"test/**/*.test.ts\"", | ||
"readme": "./bin/run readme && git add README.md", | ||
"lint": "eslint . --ext .ts --config .eslintrc", | ||
"lintspec": "eslint ./specs/ --ext .spec.ts", | ||
"lint:fix": "eslint src --fix" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25643
16
510
21
1
Updated@oclif/core@^2.15.0
Updatedtslib@^2.6.2