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

concat-ts

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concat-ts - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

6

dist/index.js

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

function findExports(filePath) {
const sourceFile = ts.createSourceFile(filePath, fs.readFileSync(filePath, "utf8"), ts.ScriptTarget.ES2015);
const currentDir = process.cwd();
const absoluteFilePath = path.resolve(currentDir, filePath);
const sourceFile = ts.createSourceFile(absoluteFilePath, fs.readFileSync(absoluteFilePath, "utf8"), ts.ScriptTarget.ES2015);
const exports = [];

@@ -38,3 +40,3 @@ sourceFile.forEachChild((node) => {

if (moduleSpecifier && ts.isStringLiteral(moduleSpecifier)) {
const importedFilePath = path.resolve(path.dirname(filePath), moduleSpecifier.text + ".ts");
const importedFilePath = path.resolve(path.dirname(absoluteFilePath), moduleSpecifier.text + ".ts");
exports.push(importedFilePath);

@@ -41,0 +43,0 @@ }

{
"name": "concat-ts",
"private": false,
"version": "0.0.6",
"version": "0.0.7",
"description": "Simple CLI tool to concats exported typescript files.",

@@ -6,0 +6,0 @@ "keywords": [

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