@magidoc/cli
Advanced tools
Comparing version 0.1.4 to 0.2.0
@@ -1,1 +0,1 @@ | ||
export declare const x = ""; | ||
export {}; |
@@ -1,2 +0,14 @@ | ||
export const x=""; | ||
import { Command } from 'commander'; | ||
import { readFileSync } from 'fs'; | ||
import buildGenerateCommand from './generate/command.js'; | ||
import buildInitCommand from './init/command.js'; | ||
const packageJson = JSON.parse(readFileSync('../package.json').toString()); | ||
const program = new Command() | ||
.name('Magidoc') | ||
.description('Magidoc CLI helps you to get started building GraphQL documentation websites.\n') | ||
.version(packageJson.version || 'unknown'); | ||
buildGenerateCommand(program); | ||
buildInitCommand(program); | ||
program.parse(); | ||
//# sourceMappingURL=index.js.map |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.1.4", | ||
"version": "0.2.0", | ||
"type": "module", | ||
@@ -11,12 +11,23 @@ "license": "MIT", | ||
"types": "./build/index.d.ts", | ||
"dependencies": { | ||
"@magidoc/rollup-plugin-fetch-gql-schema": "^0.2.0", | ||
"commander": "^9.1.0" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^8.3.1", | ||
"@types/jest": "^27.4.1", | ||
"esbuild": "^0.14.32", | ||
"esbuild": "^0.14.34", | ||
"jest": "^27.5.1", | ||
"jest-extended": "^2.0.0", | ||
"listr2": "^4.0.5", | ||
"rollup": "^2.70.1", | ||
"ts-jest": "^27.1.4", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.6.3" | ||
}, | ||
"scripts": { | ||
"build": "esbuild --minify --sourcemap --outdir=build ./src/*.ts && tsc --build tsconfig.build.json", | ||
"start": "pnpm build:rollup && cd build && node index.js", | ||
"build": "run-p build:*", | ||
"build:rollup": "rollup -c", | ||
"build:tsc": "tsc --build tsconfig.build.json", | ||
"test": "jest", | ||
@@ -23,0 +34,0 @@ "release": "pnpm publish --no-git-checks --access public" |
@@ -1,1 +0,20 @@ | ||
export const x = '' | ||
import { Command } from 'commander' | ||
import { readFileSync } from 'fs' | ||
import buildGenerateCommand from './generate/command' | ||
import buildInitCommand from './init/command' | ||
const packageJson = JSON.parse(readFileSync('../package.json').toString()) as { | ||
version: string | ||
} | ||
const program = new Command() | ||
.name('Magidoc') | ||
.description( | ||
'Magidoc CLI helps you to get started building GraphQL documentation websites.\n', | ||
) | ||
.version(packageJson.version || 'unknown') | ||
buildGenerateCommand(program) | ||
buildInitCommand(program) | ||
program.parse() |
@@ -0,1 +1,4 @@ | ||
// TODO - remove | ||
export {} | ||
describe('should pass', () => { | ||
@@ -2,0 +5,0 @@ it('should pass', () => { |
@@ -5,2 +5,4 @@ { | ||
"useDefineForClassFields": true, | ||
"importsNotUsedAsValues": "error", | ||
"isolatedModules": true, | ||
"module": "esnext", | ||
@@ -13,2 +15,3 @@ "moduleResolution": "node", | ||
"sourceMap": true, | ||
"outDir": "build", | ||
"resolveJsonModule": true, | ||
@@ -20,3 +23,3 @@ "esModuleInterop": true, | ||
"include": ["src/**/*.ts", "src/**/*.d.ts", "tests/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
"exclude": ["build", "node_modules"] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
15498
33
356
2
10
2
1
+ Addedcommander@^9.1.0
+ Added@magidoc/rollup-plugin-fetch-gql-schema@0.2.3(transitive)
+ Addedaxios@0.26.1(transitive)
+ Addedcommander@9.5.0(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedgraphql@16.10.0(transitive)