@tolgee/cli
Advanced tools
Comparing version 2.3.3 to 2.3.4
import { extname, join } from 'path'; | ||
import { readdir, readFile, stat } from 'fs/promises'; | ||
import { Command, Option } from 'commander'; | ||
import { glob } from 'glob'; | ||
import { loading, success, error, warn, exitWithError, } from '../utils/logger.js'; | ||
@@ -9,5 +8,6 @@ import { askString } from '../utils/ask.js'; | ||
import { handleLoadableError } from '../client/TolgeeClient.js'; | ||
import { windowsCompatibleGlob } from '../utils/windowsCompatibleGlob.js'; | ||
async function allInPattern(pattern) { | ||
const files = []; | ||
const items = await glob(pattern); | ||
const items = await windowsCompatibleGlob(pattern); | ||
for (const item of items) { | ||
@@ -14,0 +14,0 @@ if ((await stat(item)).isDirectory()) { |
@@ -47,2 +47,3 @@ import { cosmiconfig, defaultLoaders } from 'cosmiconfig'; | ||
} | ||
// convert relative paths in config to absolute | ||
if (rc.pull?.path !== undefined) { | ||
@@ -49,0 +50,0 @@ rc.pull.path = resolve(configDir, rc.pull.path); |
@@ -1,5 +0,5 @@ | ||
import { glob } from 'glob'; | ||
import { extname } from 'path'; | ||
import { callWorker } from './worker.js'; | ||
import { exitWithError } from '../utils/logger.js'; | ||
import { windowsCompatibleGlob } from '../utils/windowsCompatibleGlob.js'; | ||
export const NullNamespace = Symbol('namespace.null'); | ||
@@ -57,5 +57,4 @@ function parseVerbose(v) { | ||
} | ||
const files = await glob(opts.patterns, { | ||
const files = await windowsCompatibleGlob(opts.patterns, { | ||
nodir: true, | ||
windowsPathsNoEscape: process.platform === 'win32', | ||
}); | ||
@@ -62,0 +61,0 @@ if (files.length === 0) { |
{ | ||
"name": "@tolgee/cli", | ||
"version": "2.3.3", | ||
"version": "2.3.4", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A tool to interact with the Tolgee Platform through CLI", |
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
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
906132
130
4994