@tsed/cli-core 6.1.8 → 6.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/CliCore.js +1 -1
- package/lib/esm/packageManagers/supports/YarnBerryManager.js +1 -1
- package/lib/esm/services/CliDockerComposeYaml.js +1 -1
- package/lib/esm/services/CliFs.js +1 -1
- package/lib/esm/services/CliHttpClient.js +2 -2
- package/lib/esm/services/CliHttpLogClient.js +1 -1
- package/lib/esm/services/CliLoadFile.js +1 -1
- package/lib/esm/services/CliProxyAgent.js +1 -1
- package/lib/esm/services/NpmRegistryClient.js +1 -1
- package/lib/esm/services/ProjectPackageJson.js +1 -1
- package/lib/esm/services/Renderer.js +1 -1
- package/lib/esm/utils/getTemplateDirectory.js +1 -1
- package/lib/types/services/CliFs.d.ts +1 -1
- package/lib/types/utils/streamToObservable.d.ts +1 -1
- package/package.json +2 -2
- package/readme.md +1 -1
package/lib/esm/CliCore.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var CliCore_1;
|
|
2
2
|
import { __decorate } from "tslib";
|
|
3
|
+
import { join, resolve } from "node:path";
|
|
3
4
|
import { Type } from "@tsed/core";
|
|
4
5
|
import { inject, InjectorService, Module } from "@tsed/di";
|
|
5
6
|
import chalk from "chalk";
|
|
6
7
|
import { Command } from "commander";
|
|
7
|
-
import { join, resolve } from "path";
|
|
8
8
|
import semver from "semver";
|
|
9
9
|
import updateNotifier from "update-notifier";
|
|
10
10
|
import { CliError } from "./domains/CliError.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
+
import { join } from "node:path";
|
|
2
3
|
import { inject, Injectable } from "@tsed/di";
|
|
3
|
-
import { join } from "path";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
5
5
|
import { CliFs } from "../../services/CliFs.js";
|
|
6
6
|
import { CliYaml } from "../../services/CliYaml.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
+
import { join } from "node:path";
|
|
2
3
|
import { setValue } from "@tsed/core";
|
|
3
4
|
import { inject, Injectable } from "@tsed/di";
|
|
4
5
|
import { snakeCase } from "change-case";
|
|
5
|
-
import { join } from "path";
|
|
6
6
|
import { CliFs } from "./CliFs.js";
|
|
7
7
|
import { CliYaml } from "./CliYaml.js";
|
|
8
8
|
import { ProjectPackageJson } from "./ProjectPackageJson.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
+
import { join } from "node:path";
|
|
2
3
|
import { Injectable } from "@tsed/di";
|
|
3
4
|
import { normalizePath } from "@tsed/normalize-path";
|
|
4
5
|
import Fs, {} from "fs-extra";
|
|
5
|
-
import { join } from "path";
|
|
6
6
|
let CliFs = class CliFs {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.raw = Fs;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var CliHttpClient_1;
|
|
2
2
|
import { __decorate } from "tslib";
|
|
3
|
+
import { stringify } from "node:querystring";
|
|
4
|
+
import { URL } from "node:url";
|
|
3
5
|
import { cleanObject } from "@tsed/core";
|
|
4
6
|
import { inject, Injectable } from "@tsed/di";
|
|
5
7
|
import axios, {} from "axios";
|
|
6
|
-
import { stringify } from "querystring";
|
|
7
|
-
import { URL } from "url";
|
|
8
8
|
import { CliHttpLogClient } from "./CliHttpLogClient.js";
|
|
9
9
|
import { CliProxyAgent } from "./CliProxyAgent.js";
|
|
10
10
|
let CliHttpClient = CliHttpClient_1 = class CliHttpClient extends CliHttpLogClient {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
2
|
+
import querystring from "node:querystring";
|
|
2
3
|
import { getValue } from "@tsed/core";
|
|
3
4
|
import { inject, Opts } from "@tsed/di";
|
|
4
5
|
import { Logger } from "@tsed/logger";
|
|
5
|
-
import querystring from "querystring";
|
|
6
6
|
import { logToCurl } from "../utils/logToCurl.js";
|
|
7
7
|
let CliHttpLogClient = class CliHttpLogClient {
|
|
8
8
|
// @ts-ignore
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { extname } from "node:path";
|
|
2
3
|
import { inject, Injectable } from "@tsed/di";
|
|
3
4
|
import { default as Ajv } from "ajv";
|
|
4
|
-
import { extname } from "path";
|
|
5
5
|
import { CliFs } from "./CliFs.js";
|
|
6
6
|
import { CliYaml } from "./CliYaml.js";
|
|
7
7
|
let CliLoadFile = class CliLoadFile {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
+
import { URL } from "node:url";
|
|
2
3
|
import { Configuration, Inject, inject, Injectable, refValue } from "@tsed/di";
|
|
3
4
|
import { camelCase } from "change-case";
|
|
4
5
|
import tunnel from "tunnel";
|
|
5
|
-
import { URL } from "url";
|
|
6
6
|
import { coerce } from "../utils/coerce.js";
|
|
7
7
|
import { CliExeca } from "./CliExeca.js";
|
|
8
8
|
import { ProjectPackageJson } from "./ProjectPackageJson.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var NpmRegistryClient_1;
|
|
2
2
|
import { __decorate } from "tslib";
|
|
3
|
+
import url from "node:url";
|
|
3
4
|
import { inject, Injectable } from "@tsed/di";
|
|
4
5
|
import registry_url from "registry-url";
|
|
5
|
-
import url from "url";
|
|
6
6
|
import { CliHttpClient } from "./CliHttpClient.js";
|
|
7
7
|
const HOST = registry_url();
|
|
8
8
|
const REGEX_REGISTRY_ENFORCED_HTTPS = /^https?:\/\/([^\/]+\.)?(yarnpkg\.com|npmjs\.(org|com))(\/|$)/;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
2
3
|
import { getValue, setValue } from "@tsed/core";
|
|
3
4
|
import { configuration, constant, inject, Injectable } from "@tsed/di";
|
|
4
|
-
import { dirname, join } from "path";
|
|
5
5
|
import { readPackageUpSync } from "read-pkg-up";
|
|
6
6
|
import { isValidVersion } from "../utils/isValidVersion.js";
|
|
7
7
|
import { CliFs } from "./CliFs.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import "../utils/hbs/index.js";
|
|
3
|
+
import { basename, dirname, join, relative } from "node:path";
|
|
3
4
|
import { isString } from "@tsed/core";
|
|
4
5
|
import { constant, inject, Injectable } from "@tsed/di";
|
|
5
6
|
import { normalizePath } from "@tsed/normalize-path";
|
|
@@ -7,7 +8,6 @@ import Consolidate from "consolidate";
|
|
|
7
8
|
import fs from "fs-extra";
|
|
8
9
|
import { globby } from "globby";
|
|
9
10
|
import handlebars from "handlebars";
|
|
10
|
-
import { basename, dirname, join, relative } from "path";
|
|
11
11
|
import { Observable } from "rxjs";
|
|
12
12
|
import { insertAfter } from "../utils/renderer/insertAfter.js";
|
|
13
13
|
import { insertImport } from "../utils/renderer/insertImport.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/cli-core",
|
|
3
3
|
"description": "Build your CLI with TypeScript and Decorators",
|
|
4
|
-
"version": "6.1.
|
|
4
|
+
"version": "6.1.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/esm/index.js",
|
|
7
7
|
"source": "./src/index.ts",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"uuid": "^10.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@tsed/typescript": "6.1.
|
|
69
|
+
"@tsed/typescript": "6.1.10",
|
|
70
70
|
"@types/commander": "2.12.2",
|
|
71
71
|
"@types/consolidate": "0.14.4",
|
|
72
72
|
"@types/figures": "3.0.1",
|
package/readme.md
CHANGED
|
@@ -153,7 +153,7 @@ Create a new file according to your project name (example: `name.ts`) and add th
|
|
|
153
153
|
```typescript
|
|
154
154
|
#!/usr/bin/env node
|
|
155
155
|
import {AddCmd, CliCore} from "@tsed/cli-core";
|
|
156
|
-
import {resolve} from "path";
|
|
156
|
+
import {resolve} from "node:path";
|
|
157
157
|
|
|
158
158
|
const pkg = require("../../package.json");
|
|
159
159
|
const TEMPLATE_DIR = resolve(__dirname, "..", "..", "templates");
|