@tsed/cli-plugin-passport
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -1,6 +0,2 @@ | ||
import { IGenerateCmdContext } from "@tsed/cli"; | ||
export interface IPassportGenerationOptions extends IGenerateCmdContext { | ||
passportPackage: string; | ||
} | ||
export declare class CliPluginPassportModule { | ||
} |
@@ -5,5 +5,3 @@ "use strict"; | ||
const cli_core_1 = require("@tsed/cli-core"); | ||
const path_1 = require("path"); | ||
const PassportGenerateHook_1 = require("./hooks/PassportGenerateHook"); | ||
const TEMPLATE_DIR = path_1.resolve(__dirname, "..", "templates"); | ||
let CliPluginPassportModule = class CliPluginPassportModule { | ||
@@ -10,0 +8,0 @@ }; |
@@ -48,10 +48,10 @@ "use strict"; | ||
if (this.providersInfoService.isMyProvider(ctx.type, PassportGenerateHook_1)) { | ||
const _a = this.mapOptions(ctx), { outputFile } = _a, data = tslib_1.__rest(_a, ["outputFile"]); | ||
const { passportPackage } = ctx; | ||
ctx = this.mapOptions(ctx); | ||
const { passportPackage, symbolPath } = ctx; | ||
this.projectPackageJson.addDependency(ctx.passportPackage, this.getPassportPackageVersion(passportPackage)); | ||
return [ | ||
{ | ||
title: `Generate ${ctx.type} file to '${outputFile}'`, | ||
task: () => this.srcRenderService.render(this.getTemplate(passportPackage), data, { | ||
output: outputFile, | ||
title: `Generate ${ctx.type} file to '${symbolPath}.ts'`, | ||
task: () => this.srcRenderService.render(this.getTemplate(passportPackage), ctx, { | ||
output: `${symbolPath}.ts`, | ||
templateDir: templateDir_1.TEMPLATE_DIR | ||
@@ -58,0 +58,0 @@ }) |
{ | ||
"name": "@tsed/cli-plugin-passport", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"main": "lib/index.js", | ||
@@ -11,4 +11,4 @@ "typings": "lib/index.d.ts", | ||
"devDependencies": { | ||
"@tsed/cli": "1.3.2", | ||
"@tsed/cli-core": "1.3.2", | ||
"@tsed/cli": "1.4.0", | ||
"@tsed/cli-core": "1.4.0", | ||
"@types/change-case": "^2.3.1" | ||
@@ -15,0 +15,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18950
182