Comparing version 1.2.1 to 1.3.0
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
56975
17
173
1