@tsed/cli-plugin-mongoose
Advanced tools
Comparing version 5.3.1 to 6.0.0-alpha.1
@@ -8,3 +8,2 @@ import { __decorate, __metadata } from "tslib"; | ||
let CliPluginMongooseModule = class CliPluginMongooseModule { | ||
packageJson; | ||
install() { | ||
@@ -11,0 +10,0 @@ this.packageJson.addDependencies({ |
@@ -6,15 +6,8 @@ var MongooseGenerateHook_1; | ||
import { Injectable } from "@tsed/di"; | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
import { camelCase, paramCase } from "change-case"; | ||
// @ts-ignore | ||
import { plural } from "pluralize"; | ||
import { camelCase, paramCase } from "change-case"; | ||
import { CliMongoose } from "../services/CliMongoose.js"; | ||
import { TEMPLATE_DIR } from "../utils/templateDir.js"; | ||
let MongooseGenerateHook = MongooseGenerateHook_1 = class MongooseGenerateHook { | ||
providersInfoService; | ||
projectPackageJson; | ||
srcRenderService; | ||
cliMongoose; | ||
packages; | ||
cliDockerComposeYaml; | ||
constructor(providersInfoService) { | ||
@@ -21,0 +14,0 @@ this.providersInfoService = providersInfoService; |
@@ -6,7 +6,2 @@ import { __decorate, __metadata } from "tslib"; | ||
let MongooseInitHook = class MongooseInitHook { | ||
cliMongoose; | ||
packageJson; | ||
rootRenderer; | ||
srcRenderer; | ||
cliDockerComposeYaml; | ||
onExec(ctx) { | ||
@@ -13,0 +8,0 @@ this.addScripts(); |
import { CliPluginMongooseModule } from "./CliPluginMongooseModule.js"; | ||
export * from "./hooks/MongooseGenerateHook.js"; | ||
export * from "./hooks/MongooseInitHook.js"; | ||
export * from "./hooks/MongooseGenerateHook.js"; | ||
export * from "./services/CliMongoose.js"; | ||
@@ -5,0 +5,0 @@ export * from "./utils/templateDir.js"; |
@@ -7,4 +7,2 @@ import { __decorate, __metadata } from "tslib"; | ||
let CliMongoose = class CliMongoose { | ||
projectPackageJson; | ||
srcRenderer; | ||
async writeConfig(name, options = {}) { | ||
@@ -11,0 +9,0 @@ await this.srcRenderer.render("config.hbs", { |
@@ -1,5 +0,3 @@ | ||
import {getTemplateDirectory} from "@tsed/cli-core"; | ||
import path from "node:path"; | ||
import {fileURLToPath} from "node:url"; | ||
export const TEMPLATE_DIR = getTemplateDirectory(path.dirname(fileURLToPath(import.meta.url))); | ||
import { getTemplateDirectory } from "@tsed/cli-core"; | ||
export const TEMPLATE_DIR = getTemplateDirectory(import.meta.dirname); | ||
//# sourceMappingURL=templateDir.js.map |
import { GenerateCmdContext, ProvidersInfoService } from "@tsed/cli"; | ||
import { CliDockerComposeYaml, ProjectPackageJson, SrcRendererService, Tasks } from "@tsed/cli-core"; | ||
import { CliMongoose } from "../services/CliMongoose"; | ||
import { CliMongoose } from "../services/CliMongoose.js"; | ||
export declare class MongooseGenerateHook { | ||
@@ -5,0 +5,0 @@ private providersInfoService; |
import { InitCmdContext } from "@tsed/cli"; | ||
import { CliDockerComposeYaml, ProjectPackageJson, RootRendererService, SrcRendererService } from "@tsed/cli-core"; | ||
import { CliMongoose } from "../services/CliMongoose"; | ||
import { CliMongoose } from "../services/CliMongoose.js"; | ||
export declare class MongooseInitHook { | ||
@@ -5,0 +5,0 @@ cliMongoose: CliMongoose; |
@@ -1,6 +0,6 @@ | ||
import { CliPluginMongooseModule } from "./CliPluginMongooseModule"; | ||
export * from "./hooks/MongooseInitHook"; | ||
export * from "./hooks/MongooseGenerateHook"; | ||
export * from "./services/CliMongoose"; | ||
export * from "./utils/templateDir"; | ||
import { CliPluginMongooseModule } from "./CliPluginMongooseModule.js"; | ||
export * from "./hooks/MongooseGenerateHook.js"; | ||
export * from "./hooks/MongooseInitHook.js"; | ||
export * from "./services/CliMongoose.js"; | ||
export * from "./utils/templateDir.js"; | ||
export default CliPluginMongooseModule; |
{ | ||
"name": "@tsed/cli-plugin-mongoose", | ||
"version": "5.3.1", | ||
"description": "Ts.ED CLI plugin. Add Mongoose support", | ||
"version": "6.0.0-alpha.1", | ||
"type": "module", | ||
"main": "./lib/esm/index.js", | ||
"source": "./src/index.ts", | ||
"main": "./lib/cjs/index.js", | ||
"module": "./lib/esm/index.js", | ||
"typings": "./lib/types/index.d.ts", | ||
"exports": { | ||
"types": "./lib/types/index.d.ts", | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js", | ||
"default": "./lib/esm/index.js" | ||
".": { | ||
"types": "./lib/types/index.d.ts", | ||
"import": "./lib/esm/index.js", | ||
"default": "./lib/esm/index.js" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "yarn build:ts", | ||
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json && cp scripts/templateDir.esm.js lib/esm/utils/templateDir.js", | ||
"lint": "eslint '**/*.{ts,js}'", | ||
"lint:fix": "eslint '**/*.{ts,js}' --fix", | ||
"test": "cross-env NODE_ENV=test yarn jest --max-workers=2 --passWithNoTests && jest-coverage-thresholds-bumper" | ||
"build:ts": "tsc --build tsconfig.json", | ||
"test": "vitest run", | ||
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true" | ||
}, | ||
@@ -28,10 +29,8 @@ "dependencies": { | ||
"devDependencies": { | ||
"@tsed/cli": "5.3.1", | ||
"@tsed/cli-core": "5.3.1", | ||
"@tsed/eslint": "5.3.1", | ||
"@tsed/jest-config": "5.3.1", | ||
"@tsed/typescript": "5.3.1", | ||
"@tsed/cli": "6.0.0-alpha.1", | ||
"@tsed/cli-core": "6.0.0-alpha.1", | ||
"@tsed/typescript": "6.0.0-alpha.1", | ||
"cross-env": "7.0.3", | ||
"eslint": "8.22.0", | ||
"jest": "29.5.0" | ||
"typescript": "4.9.5", | ||
"vitest": "2.1.1" | ||
}, | ||
@@ -45,3 +44,6 @@ "peerDependencies": {}, | ||
"author": "Romain Lenzotti", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"publishConfig": { | ||
"tag": "alpha" | ||
} | ||
} |
@@ -1,5 +0,6 @@ | ||
import {getTemplateDirectory} from "@tsed/cli-core"; | ||
import path from "node:path"; | ||
import {fileURLToPath} from "node:url"; | ||
import {getTemplateDirectory} from "@tsed/cli-core"; | ||
export const TEMPLATE_DIR = getTemplateDirectory(path.dirname(fileURLToPath(import.meta.url))); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
6
Yes
22423
26
306
1