Socket
Socket
Sign inDemoInstall

vite-tsconfig-paths

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-tsconfig-paths - npm Package Compare versions

Comparing version 3.3.6 to 3.3.7

dist/path.d.ts

13

dist/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
var path_1 = require("path");
var path_1 = require("./path");
var vite_1 = require("vite");

@@ -46,3 +46,2 @@ var tsconfig_paths_1 = require("tsconfig-paths");

var config_1 = require("./config");
var join = path_1.posix.join, resolve = path_1.posix.resolve;
var debug = require('debug')('vite-tsconfig-paths');

@@ -117,3 +116,3 @@ exports.default = (function (opts) {

var resolveId = function (id, importer) {
return viteResolve(join(baseUrl, id), importer);
return viteResolve(path_1.join(baseUrl, id), importer);
};

@@ -154,2 +153,3 @@ if (paths) {

case 0:
importer = vite_1.normalizePath(importer);
// Ignore importers with unsupported extensions.

@@ -214,7 +214,8 @@ if (!importerExtRE.test(importer))

var root = opts.root
? resolve(viteRoot, vite_1.normalizePath(opts.root))
? path_1.resolve(viteRoot, vite_1.normalizePath(opts.root))
: viteRoot;
var projects = opts.projects;
if (!projects) {
projects = recrawl_sync_1.crawl(root || viteRoot, {
debug("crawling \"" + root + "\"");
projects = recrawl_sync_1.crawl(root, {
only: ['tsconfig.json'],

@@ -227,3 +228,3 @@ skip: ['node_modules', '.git'],

projects = projects.map(function (projectPath) {
projectPath = resolve(root, vite_1.normalizePath(projectPath));
projectPath = path_1.resolve(root, vite_1.normalizePath(projectPath));
depthMap[projectPath] =

@@ -230,0 +231,0 @@ projectPath.split('/').length - (projectPath.endsWith('.json') ? 1 : 0);

{
"name": "vite-tsconfig-paths",
"version": "3.3.6",
"version": "3.3.7",
"description": "Vite resolver for TypeScript compilerOptions.paths",

@@ -27,3 +27,5 @@ "main": "dist/index.js",

"jest": "^26.6.3",
"klona": "^2.0.4",
"prettier": "^2.0.5",
"rollup": "^2.45.2",
"typescript": "^3.9.7",

@@ -30,0 +32,0 @@ "vite": "latest",

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

import { dirname, posix, isAbsolute } from 'path'
import { dirname, isAbsolute, join, resolve } from './path'
import { normalizePath, Plugin } from 'vite'

@@ -9,4 +9,2 @@ import { createMatchPathAsync } from 'tsconfig-paths'

const { join, resolve } = posix
const debug = require('debug')('vite-tsconfig-paths')

@@ -102,2 +100,3 @@

return async (id, importer) => {
importer = normalizePath(importer)
// Ignore importers with unsupported extensions.

@@ -169,3 +168,4 @@ if (!importerExtRE.test(importer)) return

if (!projects) {
projects = crawl(root || viteRoot, {
debug(`crawling "${root}"`)
projects = crawl(root, {
only: ['tsconfig.json'],

@@ -172,0 +172,0 @@ skip: ['node_modules', '.git'],

Sorry, the diff of this file is not supported yet

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