diff --git a/bin/dev.js b/bin/dev.js new file mode 100755 index 0000000..5ba3954 --- /dev/null +++ b/bin/dev.js @@ -0,0 +1,5 @@ +#!/usr/bin/env node +(async () => { + const { execute } = require("@contentstack/cli-utilities"); + await execute({ type: "cjs", development: true, dir: __dirname }); +})(); diff --git a/bin/run.js b/bin/run.js new file mode 100755 index 0000000..d06447d --- /dev/null +++ b/bin/run.js @@ -0,0 +1,6 @@ +#!/usr/bin/env node + +(async () => { + const {execute} = require('@contentstack/cli-utilities') + await execute({ type: 'cjs', dir: __dirname }) +})() \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 76dd966..8bb8dd8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@contentstack/cli-command": "^1.2.17", - "@contentstack/cli-utilities": "^1.5.10", + "@contentstack/cli-utilities": "^1.6.1", "@gql2ts/from-schema": "^2.0.0-4", "async": "^3.2.5", "graphql": "^14.7.0", @@ -34,7 +34,7 @@ "globby": "^10.0.2", "jest": "^26.5.3", "mocha": "^10.2.0", - "oclif": "^3.7.0", + "oclif": "^3.10.0", "ts-jest": "^26.4.1", "ts-node": "^10.9.1", "typescript": "^4.8.4" @@ -682,13 +682,13 @@ } }, "node_modules/@contentstack/cli-utilities": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@contentstack/cli-utilities/-/cli-utilities-1.6.0.tgz", - "integrity": "sha512-hKaMNouQ/FN+H2jJLHvZJwTHLeoPvUnhHEiUVLq4m3oQ08aG7K81adWFc1O4CR1UR3yR3DzOD47XsmzWWRO0hA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@contentstack/cli-utilities/-/cli-utilities-1.6.1.tgz", + "integrity": "sha512-vrzL1t3csYEvwOWcoKnWWsrUfWEi9/PRaPuY7vR9d5kt7Yc3o+oT3AE/rbzUY5WndVwu0Bf10lQtffHgUJSyjQ==", "dependencies": { "@contentstack/management": "~1.15.3", "@contentstack/marketplace-sdk": "^1.0.1", - "@oclif/core": "^2.9.3", + "@oclif/core": "^3.26.5", "axios": "^1.6.4", "chalk": "^4.0.0", "cli-cursor": "^3.1.0", @@ -712,6 +712,105 @@ "xdg-basedir": "^4.0.0" } }, + "node_modules/@contentstack/cli-utilities/node_modules/@oclif/core": { + "version": "3.26.6", + "resolved": "https://registry.npmjs.org/@oclif/core/-/core-3.26.6.tgz", + "integrity": "sha512-+FiTw1IPuJTF9tSAlTsY8bGK4sgthehjz7c2SvYdgQncTkxI2xvUch/8QpjNYGLEmUneNygvYMRBax2KJcLccA==", + "dependencies": { + "@types/cli-progress": "^3.11.5", + "ansi-escapes": "^4.3.2", + "ansi-styles": "^4.3.0", + "cardinal": "^2.1.1", + "chalk": "^4.1.2", + "clean-stack": "^3.0.1", + "cli-progress": "^3.12.0", + "color": "^4.2.3", + "debug": "^4.3.4", + "ejs": "^3.1.10", + "get-package-type": "^0.1.0", + "globby": "^11.1.0", + "hyperlinker": "^1.0.0", + "indent-string": "^4.0.0", + "is-wsl": "^2.2.0", + "js-yaml": "^3.14.1", + "minimatch": "^9.0.4", + "natural-orderby": "^2.0.3", + "object-treeify": "^1.1.33", + "password-prompt": "^1.1.3", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "supports-color": "^8.1.1", + "supports-hyperlinks": "^2.2.0", + "widest-line": "^3.1.0", + "wordwrap": "^1.0.0", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@contentstack/cli-utilities/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@contentstack/cli-utilities/node_modules/color": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", + "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", + "dependencies": { + "color-convert": "^2.0.1", + "color-string": "^1.9.0" + }, + "engines": { + "node": ">=12.5.0" + } + }, + "node_modules/@contentstack/cli-utilities/node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@contentstack/cli-utilities/node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@contentstack/cli-utilities/node_modules/minimatch": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", + "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@contentstack/management": { "version": "1.15.4", "resolved": "https://registry.npmjs.org/@contentstack/management/-/management-1.15.4.tgz", diff --git a/package.json b/package.json index 7eb56ff..75b0223 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues", "dependencies": { "@contentstack/cli-command": "^1.2.17", - "@contentstack/cli-utilities": "^1.5.10", + "@contentstack/cli-utilities": "^1.6.1", "@gql2ts/from-schema": "^2.0.0-4", "async": "^3.2.5", "graphql": "^14.7.0", @@ -30,7 +30,7 @@ "globby": "^10.0.2", "jest": "^26.5.3", "mocha": "^10.2.0", - "oclif": "^3.7.0", + "oclif": "^3.10.0", "ts-jest": "^26.4.1", "ts-node": "^10.9.1", "typescript": "^4.8.4"