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

tsprogen

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

tsprogen - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

prod/template/tsconfig.json

2

package.json
{
"name": "tsprogen",
"version": "1.2.1",
"version": "1.3.0",
"description": "A CLI project generator for setting up TypeScript + Node projects.",

@@ -5,0 +5,0 @@ "main": "./prod/bin.js",

@@ -25,5 +25,7 @@ "use strict";

const targetDir = process.cwd();
const gitIgnore = `/node_modules/\n/prod/\n`;
if (!fs_extra_1.default.pathExists(targetDir)) {
yield fs_extra_1.default.mkdir(targetDir);
}
yield fs_extra_1.default.mkdir(`${targetDir}/src`);
yield fs_extra_1.default.copy(templateDir, targetDir, {

@@ -33,2 +35,14 @@ errorOnExist: true,

});
fs_extra_1.default.writeFile(`${targetDir}/.gitignore`, gitIgnore, (err) => {
if (err) {
console.error(err);
return;
}
});
fs_extra_1.default.writeFile(`${targetDir}/src/index.ts`, `console.log("index.ts works!")`, (err) => {
if (err) {
console.error(err);
return;
}
});
}

@@ -35,0 +49,0 @@ catch (err) {

# TypeScript Project
This project was generated with the `ts-pro-gen` CLI tool.
This project was generated with the `tsprogen` CLI tool.
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