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

resolve-tspaths

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolve-tspaths - npm Package Compare versions

Comparing version 0.8.7 to 0.8.8

2

dist/index.d.ts

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

import { ProgramOptions } from "~/types";
import { ProgramOptions } from "./types";
export type ResolveTsPathOptions = Omit<Partial<ProgramOptions>, "verbose" | "noEmit">;

@@ -3,0 +3,0 @@ /**

@@ -13,9 +13,9 @@ "use strict";

exports.resolveTsPaths = void 0;
const constants_1 = require("~/constants");
const loadTSConfig_1 = require("~/steps/loadTSConfig");
const resolvePaths_1 = require("~/steps/resolvePaths");
const computeAliases_1 = require("~/steps/computeAliases");
const getFilesToProcess_1 = require("~/steps/getFilesToProcess");
const generateChanges_1 = require("~/steps/generateChanges");
const applyChanges_1 = require("~/steps/applyChanges");
const constants_1 = require("./constants");
const loadTSConfig_1 = require("./steps/loadTSConfig");
const resolvePaths_1 = require("./steps/resolvePaths");
const computeAliases_1 = require("./steps/computeAliases");
const getFilesToProcess_1 = require("./steps/getFilesToProcess");
const generateChanges_1 = require("./steps/generateChanges");
const applyChanges_1 = require("./steps/applyChanges");
/**

@@ -22,0 +22,0 @@ * Convert Typescript path aliases to proper relative paths

@@ -5,11 +5,11 @@ #! /usr/bin/env node

const ansi_colors_1 = require("ansi-colors");
const logger_1 = require("~/utils/logger");
const errors_1 = require("~/utils/errors");
const createProgram_1 = require("~/steps/createProgram");
const loadTSConfig_1 = require("~/steps/loadTSConfig");
const resolvePaths_1 = require("~/steps/resolvePaths");
const computeAliases_1 = require("~/steps/computeAliases");
const getFilesToProcess_1 = require("~/steps/getFilesToProcess");
const generateChanges_1 = require("~/steps/generateChanges");
const applyChanges_1 = require("~/steps/applyChanges");
const logger_1 = require("./utils/logger");
const errors_1 = require("./utils/errors");
const createProgram_1 = require("./steps/createProgram");
const loadTSConfig_1 = require("./steps/loadTSConfig");
const resolvePaths_1 = require("./steps/resolvePaths");
const computeAliases_1 = require("./steps/computeAliases");
const getFilesToProcess_1 = require("./steps/getFilesToProcess");
const generateChanges_1 = require("./steps/generateChanges");
const applyChanges_1 = require("./steps/applyChanges");
function main() {

@@ -16,0 +16,0 @@ var _a, _b, _c;

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

import type { Change } from "~/types";
import type { Change } from "../types";
/**

@@ -3,0 +3,0 @@ * Apply the file changes.

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

import type { Alias } from "~/types";
import type { Alias } from "../types";
/**

@@ -3,0 +3,0 @@ * Compute the alias paths provided by the tsconfig.

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

const path_1 = require("path");
const errors_1 = require("~/utils/errors");
const errors_1 = require("../utils/errors");
/**

@@ -8,0 +8,0 @@ * Compute the alias paths provided by the tsconfig.

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

const commander_1 = require("commander");
const constants_1 = require("~/constants");
const version_json_1 = require("~/version.json");
const constants_1 = require("../constants");
const version_json_1 = require("../version.json");
const example = `

@@ -9,0 +9,0 @@ Example:

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

import type { Alias, Change, ProgramPaths, TextChange } from "~/types";
import type { Alias, Change, ProgramPaths, TextChange } from "../types";
export declare const IMPORT_EXPORT_REGEX: RegExp;

@@ -3,0 +3,0 @@ export declare const ESM_IMPORT_EXPORT_REGEX: RegExp;

@@ -6,4 +6,4 @@ "use strict";

const path_1 = require("path");
const errors_1 = require("~/utils/errors");
const path_2 = require("~/utils/path");
const errors_1 = require("../utils/errors");
const path_2 = require("../utils/path");
exports.IMPORT_EXPORT_REGEX = /((?:require\(|require\.resolve\(|import\()|(?:import|export) (?:.*from )?)['"]([^'"]*)['"]\)?/g;

@@ -10,0 +10,0 @@ exports.ESM_IMPORT_EXPORT_REGEX = /(?:(?:import\()|(?:import|export)\s+(?:.*from\s+)?)['"]([^'"]*)['"]\)?/g;

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

const fast_glob_1 = require("fast-glob");
const path_2 = require("~/utils/path");
const path_2 = require("../utils/path");
/**

@@ -9,0 +9,0 @@ * Get the files in the output directory that should be processed.

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

import type { TSConfig } from "~/types";
import type { TSConfig } from "../types";
/**

@@ -3,0 +3,0 @@ * Load the tsconfig file using Typescript's built-in config file loader.

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

const typescript_1 = require("typescript");
const errors_1 = require("~/utils/errors");
const errors_1 = require("../utils/errors");
/**

@@ -8,0 +8,0 @@ * Load the tsconfig file using Typescript's built-in config file loader.

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

import type { ProgramOptions, ProgramPaths, TSConfig } from "~/types";
import type { ProgramOptions, ProgramPaths, TSConfig } from "../types";
/**

@@ -3,0 +3,0 @@ * Resolve paths provided to the program to absolute paths.

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

const path_1 = require("path");
const errors_1 = require("~/utils/errors");
const errors_1 = require("../utils/errors");
/**

@@ -8,0 +8,0 @@ * Resolve paths provided to the program to absolute paths.

{
"version": "0.8.7"
"version": "0.8.8"
}
{
"name": "resolve-tspaths",
"version": "0.8.7",
"version": "0.8.8",
"description": "Transform path mappings in your compiled Typescript code",

@@ -58,4 +58,3 @@ "author": "Ben Yap <contact@benyap.com>",

"prebuild": "pnpm clean",
"build": "tsc -p tsconfig.build.json",
"postbuild": "pnpm dev -p tsconfig.build.json --verbose",
"build": "tsc -p tsconfig.build.json && pnpm dev -p tsconfig.build.json",
"format": "prettier --write './src/**/*.ts'",

@@ -62,0 +61,0 @@ "dev": "ts-node -r tsconfig-paths/register src/main.ts",

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