@yesness/dbcodegen-tools
Advanced tools
+7
-0
@@ -10,2 +10,3 @@ #! /usr/bin/env node | ||
| const fs_extra_1 = __importDefault(require("fs-extra")); | ||
| const fs_1 = __importDefault(require("fs")); | ||
| const EXAMPLE_DIR = path_1.default.resolve(__dirname, '../example'); | ||
@@ -29,2 +30,8 @@ class Main { | ||
| await fs_extra_1.default.copy(EXAMPLE_DIR, outDir); | ||
| const npmIgnore = path_1.default.join(outDir, '.npmignore'); | ||
| if (fs_1.default.existsSync(npmIgnore)) { | ||
| fs_1.default.renameSync(npmIgnore, path_1.default.join(outDir, '.gitignore')); | ||
| } | ||
| const packageJson = path_1.default.join(outDir, 'package.json'); | ||
| fs_1.default.writeFileSync(packageJson, fs_1.default.readFileSync(packageJson, 'utf-8').replace('file:..', '^1.0.0')); | ||
| } | ||
@@ -31,0 +38,0 @@ } |
+1
-1
| { | ||
| "name": "@yesness/dbcodegen-tools", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "bin": { |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
9572
5.19%215
3.37%2
100%