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

tscpaths

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

tscpaths - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

cjs/index.js

@@ -76,3 +76,3 @@ #! /usr/bin/env node

};
const requireRegex = /require\(['"]([^'"]*)['"]\)/g;
const requireRegex = /(?:import|require)\(['"]([^'"]*)['"]\)/g;
const importRegex = /from ['"]([^'"]*)['"]/g;

@@ -79,0 +79,0 @@ const replaceImportStatement = (orig, matched, outFile) => {

@@ -5,11 +5,15 @@ module.exports = {

tsConfigFile: 'tsconfig.json',
skipBabel: true,
},
},
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
moduleNameMapper: {
'src/(.*)': '<rootDir>/src/$1',
},
testEnvironment: 'node',
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(js|jsx)$': 'babel-jest',
},
transformIgnorePatterns: ['/node_modules/'],
};

@@ -74,3 +74,3 @@ #! /usr/bin/env node

};
const requireRegex = /require\(['"]([^'"]*)['"]\)/g;
const requireRegex = /(?:import|require)\(['"]([^'"]*)['"]\)/g;
const importRegex = /from ['"]([^'"]*)['"]/g;

@@ -77,0 +77,0 @@ const replaceImportStatement = (orig, matched, outFile) => {

{
"name": "tscpaths",
"version": "0.0.1",
"version": "0.0.2",
"description": "Replace absolute paths to relative paths after typescript compilation",

@@ -16,3 +16,3 @@ "main": "cjs/index.js",

"clear": "rm -rf ./lib ./cjs ./coverage",
"format": "prettier --write \"./src/**/*.{js,jsx,ts,tsx}\"",
"format": "prettier --write \"./*.{js,jsx,ts,tsx}\" \"./src/**/*.{js,jsx,ts,tsx}\"",
"lint": "tslint -c ./tslint.json \"src/**/*\"",

@@ -19,0 +19,0 @@ "lint:fix": "tslint --fix -c ./tslint.json \"src/**/*\"",

@@ -6,3 +6,3 @@ module.exports = {

singleQuote: true,
trailingComma: 'es5'
trailingComma: 'es5',
};

@@ -118,3 +118,3 @@ #! /usr/bin/env node

const requireRegex = /require\(['"]([^'"]*)['"]\)/g;
const requireRegex = /(?:import|require)\(['"]([^'"]*)['"]\)/g;
const importRegex = /from ['"]([^'"]*)['"]/g;

@@ -121,0 +121,0 @@

{
"compilerOptions": {
"allowJs": false,
"allowSyntheticDefaultImports": true,
"allowSyntheticDefaultImports": false,
"alwaysStrict": true,

@@ -6,0 +6,0 @@ "baseUrl": ".",

{
"compilerOptions": {
"allowJs": false,
"allowSyntheticDefaultImports": true,
"allowSyntheticDefaultImports": false,
"alwaysStrict": true,

@@ -6,0 +6,0 @@ "baseUrl": ".",

{
"compilerOptions": {
"allowJs": false,
"allowSyntheticDefaultImports": true,
"allowSyntheticDefaultImports": false,
"alwaysStrict": true,

@@ -6,0 +6,0 @@ "baseUrl": ".",

Sorry, the diff of this file is not supported yet

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