Socket
Socket
Sign inDemoInstall

ts-project-bundle

Package Overview
Dependencies
6
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.8 to 0.0.9

13

build/index.js

@@ -55,9 +55,16 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var _a, _b;
var tsConfigFilePath, tsConfigExists, _a, _b;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
tsConfigFilePath = path.join(projectPath, "tsconfig.json");
return [4 /*yield*/, fs_extra_1.pathExists(tsConfigFilePath)];
case 1:
tsConfigExists = _c.sent();
if (!tsConfigExists) {
throw new Error("Can't find tsconfig.json for project in " + projectPath + ", are sure this is a TypeScript project?");
}
_b = (_a = JSON5).parse;
return [4 /*yield*/, fs_extra_1.readFile(path.join(projectPath, "tsconfig.json"), "utf8")];
case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
return [4 /*yield*/, fs_extra_1.readFile(tsConfigFilePath, "utf8")];
case 2: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
}

@@ -64,0 +71,0 @@ });

{
"name": "ts-project-bundle",
"version": "0.0.8",
"version": "0.0.9",
"description": "A simple bundler for TypeScript projects using TypeScript project references.",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -11,4 +11,2 @@ # ts-project-bundle

**! Sorry this is a prototype and there's no graceful error handling yet. Please make sure your inputs are sane :-)**
Open a terminal and navigate to your main TypeScript project:

@@ -15,0 +13,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc