Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typescript-cp

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-cp - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.1.3](https://github.com/body-builder/typescript-cp/compare/v0.1.2...v0.1.3) (2021-08-26)
### Bug Fixes
* Windows backslash-issue in `get_target_path()` ([2da4758](https://github.com/body-builder/typescript-cp/commit/2da4758b1cf81282fdeb2389521982e12b9f77f1))
### [0.1.2](https://github.com/body-builder/typescript-cp/compare/v0.1.1...v0.1.2) (2021-06-14)

@@ -7,0 +14,0 @@

2

dist/actions.d.ts

@@ -1,2 +0,2 @@

import { Config, TsProjectWithFiles, TsProject } from './types';
import { Config, TsProject, TsProjectWithFiles } from './types';
/**

@@ -3,0 +3,0 @@ * Returns an extended TsProject array, containing also the paths of all files in the project that will be processed

@@ -74,5 +74,5 @@ "use strict";

var path = __importStar(require("path"));
var globby_1 = __importDefault(require("globby"));
var chokidar_1 = __importDefault(require("chokidar"));
var helpers_1 = require("./helpers");
var globby_1 = __importDefault(require("globby"));
/**

@@ -289,9 +289,10 @@ * Returns an extended TsProject array, containing also the paths of all files in the project that will be processed

}); })
.on('add', function (source_path) { return __awaiter(_this, void 0, void 0, function () {
var _a, target_path, project_name, filename;
.on('add', function (unsafe_source_path) { return __awaiter(_this, void 0, void 0, function () {
var source_path, _a, target_path, project_name, filename;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
source_path = helpers_1.definitely_posix(unsafe_source_path);
_a = get_target_path(source_path), target_path = _a.target_path, project_name = _a.project_name, filename = _a.filename;
return [4 /*yield*/, helpers_1.copy_file_or_directory(source_path, target_path, config)];
return [4 /*yield*/, helpers_1.copy_file_or_directory(unsafe_source_path, target_path, config)];
case 1:

@@ -309,7 +310,8 @@ _b.sent();

}); })
.on('change', function (source_path) { return __awaiter(_this, void 0, void 0, function () {
var _a, target_path, project_name, filename;
.on('change', function (unsafe_source_path) { return __awaiter(_this, void 0, void 0, function () {
var source_path, _a, target_path, project_name, filename;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
source_path = helpers_1.definitely_posix(unsafe_source_path);
_a = get_target_path(source_path), target_path = _a.target_path, project_name = _a.project_name, filename = _a.filename;

@@ -327,7 +329,8 @@ return [4 /*yield*/, helpers_1.copy_file_or_directory(source_path, target_path, config)];

}); })
.on('unlink', function (source_path) { return __awaiter(_this, void 0, void 0, function () {
var _a, target_path, project_name, filename;
.on('unlink', function (unsafe_source_path) { return __awaiter(_this, void 0, void 0, function () {
var source_path, _a, target_path, project_name, filename;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
source_path = helpers_1.definitely_posix(unsafe_source_path);
_a = get_target_path(source_path), target_path = _a.target_path, project_name = _a.project_name, filename = _a.filename;

@@ -334,0 +337,0 @@ return [4 /*yield*/, helpers_1.remove_file_or_directory(target_path)];

#!/usr/bin/env node
export {};

@@ -0,0 +0,0 @@ #!/usr/bin/env node

@@ -10,43 +10,43 @@ /// <reference types="node" />

};
declare const console_colors: {
readonly Reset: "\u001B[0m";
readonly Bright: "\u001B[1m";
readonly Dim: "\u001B[2m";
readonly Underscore: "\u001B[4m";
readonly Blink: "\u001B[5m";
readonly Reverse: "\u001B[7m";
readonly Hidden: "\u001B[8m";
readonly FgBlack: "\u001B[30m";
readonly FgRed: "\u001B[31m";
readonly FgGreen: "\u001B[32m";
readonly FgYellow: "\u001B[33m";
readonly FgBlue: "\u001B[34m";
readonly FgMagenta: "\u001B[35m";
readonly FgCyan: "\u001B[36m";
readonly FgWhite: "\u001B[37m";
readonly BgBlack: "\u001B[40m";
readonly BgRed: "\u001B[41m";
readonly BgGreen: "\u001B[42m";
readonly BgYellow: "\u001B[43m";
readonly BgBlue: "\u001B[44m";
readonly BgMagenta: "\u001B[45m";
readonly BgCyan: "\u001B[46m";
readonly BgWhite: "\u001B[47m";
readonly FgBrightBlack: "\u001B[90m";
readonly FgBrightRed: "\u001B[91m";
readonly FgBrightGreen: "\u001B[92m";
readonly FgBrightYellow: "\u001B[93m";
readonly FgBrightBlue: "\u001B[94m";
readonly FgBrightMagenta: "\u001B[95m";
readonly FgBrightCyan: "\u001B[96m";
readonly FgBrightWhite: "\u001B[97m";
readonly BgBrightBlack: "\u001B[100m";
readonly BgBrightRed: "\u001B[101m";
readonly BgBrightGreen: "\u001B[102m";
readonly BgBrightYellow: "\u001B[103m";
readonly BgBrightBlue: "\u001B[104m";
readonly BgBrightMagenta: "\u001B[105m";
readonly BgBrightCyan: "\u001B[106m";
readonly BgBrightWhite: "\u001B[107m";
};
declare enum console_colors {
Reset = "\u001B[0m",
Bright = "\u001B[1m",
Dim = "\u001B[2m",
Underscore = "\u001B[4m",
Blink = "\u001B[5m",
Reverse = "\u001B[7m",
Hidden = "\u001B[8m",
FgBlack = "\u001B[30m",
FgRed = "\u001B[31m",
FgGreen = "\u001B[32m",
FgYellow = "\u001B[33m",
FgBlue = "\u001B[34m",
FgMagenta = "\u001B[35m",
FgCyan = "\u001B[36m",
FgWhite = "\u001B[37m",
BgBlack = "\u001B[40m",
BgRed = "\u001B[41m",
BgGreen = "\u001B[42m",
BgYellow = "\u001B[43m",
BgBlue = "\u001B[44m",
BgMagenta = "\u001B[45m",
BgCyan = "\u001B[46m",
BgWhite = "\u001B[47m",
FgBrightBlack = "\u001B[90m",
FgBrightRed = "\u001B[91m",
FgBrightGreen = "\u001B[92m",
FgBrightYellow = "\u001B[93m",
FgBrightBlue = "\u001B[94m",
FgBrightMagenta = "\u001B[95m",
FgBrightCyan = "\u001B[96m",
FgBrightWhite = "\u001B[97m",
BgBrightBlack = "\u001B[100m",
BgBrightRed = "\u001B[101m",
BgBrightGreen = "\u001B[102m",
BgBrightYellow = "\u001B[103m",
BgBrightBlue = "\u001B[104m",
BgBrightMagenta = "\u001B[105m",
BgBrightCyan = "\u001B[106m",
BgBrightWhite = "\u001B[107m"
}
/**

@@ -105,2 +105,8 @@ * Returns the complete, resolved configuration object

declare function sleep(ms: any): Promise<unknown>;
export { get_config, get_ts_config, get_ts_project_paths, get_ts_projects_paths, validate_path, get_file_stats, remove_file_or_directory, copy_file_or_directory, sleep, promisified, console_colors, color_log, };
/**
* Converts your path `p` to POSIX format irrespective of whether you're already on POSIX platforms, or on win32
* @param p path string
* @see https://stackoverflow.com/a/63251716/3111787
*/
declare function definitely_posix(p: any): any;
export { get_config, get_ts_config, get_ts_project_paths, get_ts_projects_paths, validate_path, get_file_stats, remove_file_or_directory, copy_file_or_directory, sleep, definitely_posix, promisified, console_colors, color_log, };

@@ -93,3 +93,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.color_log = exports.console_colors = exports.promisified = exports.sleep = exports.copy_file_or_directory = exports.remove_file_or_directory = exports.get_file_stats = exports.validate_path = exports.get_ts_projects_paths = exports.get_ts_project_paths = exports.get_ts_config = exports.get_config = void 0;
exports.color_log = exports.console_colors = exports.promisified = exports.definitely_posix = exports.sleep = exports.copy_file_or_directory = exports.remove_file_or_directory = exports.get_file_stats = exports.validate_path = exports.get_ts_projects_paths = exports.get_ts_project_paths = exports.get_ts_config = exports.get_config = void 0;
var path = __importStar(require("path"));

@@ -111,43 +111,44 @@ var fs = __importStar(require("fs"));

// https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
var console_colors = {
Reset: '\x1b[0m',
Bright: '\x1b[1m',
Dim: '\x1b[2m',
Underscore: '\x1b[4m',
Blink: '\x1b[5m',
Reverse: '\x1b[7m',
Hidden: '\x1b[8m',
FgBlack: '\x1b[30m',
FgRed: '\x1b[31m',
FgGreen: '\x1b[32m',
FgYellow: '\x1b[33m',
FgBlue: '\x1b[34m',
FgMagenta: '\x1b[35m',
FgCyan: '\x1b[36m',
FgWhite: '\x1b[37m',
BgBlack: '\x1b[40m',
BgRed: '\x1b[41m',
BgGreen: '\x1b[42m',
BgYellow: '\x1b[43m',
BgBlue: '\x1b[44m',
BgMagenta: '\x1b[45m',
BgCyan: '\x1b[46m',
BgWhite: '\x1b[47m',
FgBrightBlack: '\x1b[90m',
FgBrightRed: '\x1b[91m',
FgBrightGreen: '\x1b[92m',
FgBrightYellow: '\x1b[93m',
FgBrightBlue: '\x1b[94m',
FgBrightMagenta: '\x1b[95m',
FgBrightCyan: '\x1b[96m',
FgBrightWhite: '\x1b[97m',
BgBrightBlack: '\x1b[100m',
BgBrightRed: '\x1b[101m',
BgBrightGreen: '\x1b[102m',
BgBrightYellow: '\x1b[103m',
BgBrightBlue: '\x1b[104m',
BgBrightMagenta: '\x1b[105m',
BgBrightCyan: '\x1b[106m',
BgBrightWhite: '\x1b[107m',
};
var console_colors;
(function (console_colors) {
console_colors["Reset"] = "\u001B[0m";
console_colors["Bright"] = "\u001B[1m";
console_colors["Dim"] = "\u001B[2m";
console_colors["Underscore"] = "\u001B[4m";
console_colors["Blink"] = "\u001B[5m";
console_colors["Reverse"] = "\u001B[7m";
console_colors["Hidden"] = "\u001B[8m";
console_colors["FgBlack"] = "\u001B[30m";
console_colors["FgRed"] = "\u001B[31m";
console_colors["FgGreen"] = "\u001B[32m";
console_colors["FgYellow"] = "\u001B[33m";
console_colors["FgBlue"] = "\u001B[34m";
console_colors["FgMagenta"] = "\u001B[35m";
console_colors["FgCyan"] = "\u001B[36m";
console_colors["FgWhite"] = "\u001B[37m";
console_colors["BgBlack"] = "\u001B[40m";
console_colors["BgRed"] = "\u001B[41m";
console_colors["BgGreen"] = "\u001B[42m";
console_colors["BgYellow"] = "\u001B[43m";
console_colors["BgBlue"] = "\u001B[44m";
console_colors["BgMagenta"] = "\u001B[45m";
console_colors["BgCyan"] = "\u001B[46m";
console_colors["BgWhite"] = "\u001B[47m";
console_colors["FgBrightBlack"] = "\u001B[90m";
console_colors["FgBrightRed"] = "\u001B[91m";
console_colors["FgBrightGreen"] = "\u001B[92m";
console_colors["FgBrightYellow"] = "\u001B[93m";
console_colors["FgBrightBlue"] = "\u001B[94m";
console_colors["FgBrightMagenta"] = "\u001B[95m";
console_colors["FgBrightCyan"] = "\u001B[96m";
console_colors["FgBrightWhite"] = "\u001B[97m";
console_colors["BgBrightBlack"] = "\u001B[100m";
console_colors["BgBrightRed"] = "\u001B[101m";
console_colors["BgBrightGreen"] = "\u001B[102m";
console_colors["BgBrightYellow"] = "\u001B[103m";
console_colors["BgBrightBlue"] = "\u001B[104m";
console_colors["BgBrightMagenta"] = "\u001B[105m";
console_colors["BgBrightCyan"] = "\u001B[106m";
console_colors["BgBrightWhite"] = "\u001B[107m";
})(console_colors || (console_colors = {}));
exports.console_colors = console_colors;

@@ -488,1 +489,10 @@ var version = require('../package.json').version;

exports.sleep = sleep;
/**
* Converts your path `p` to POSIX format irrespective of whether you're already on POSIX platforms, or on win32
* @param p path string
* @see https://stackoverflow.com/a/63251716/3111787
*/
function definitely_posix(p) {
return p.split(path.sep).join(path.posix.sep);
}
exports.definitely_posix = definitely_posix;

@@ -0,0 +0,0 @@ import { ParsedCommandLine } from 'typescript';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
{
"name": "typescript-cp",
"version": "0.1.2",
"version": "0.1.3",
"description": "Copy non-typescript files to outDir",

@@ -35,3 +35,3 @@ "homepage": "https://github.com/body-builder/typescript-cp#readme",

"chokidar": "^3.5.1",
"commander": "^7.2.0",
"commander": "^8.1.0",
"cosmiconfig": "^7.0.0",

@@ -49,6 +49,7 @@ "fs-extra": "^10.0.0",

"devDependencies": {
"@types/node": "^15.12.2",
"@types/node": "^16.7.1",
"@types/rimraf": "^3.0.0",
"standard-version": "^9.3.1",
"typescript": "^4.2.3"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc