structurecc 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/install.js
CHANGED
|
@@ -4,7 +4,7 @@ const fs = require('fs');
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const os = require('os');
|
|
6
6
|
|
|
7
|
-
const VERSION = '1.0.
|
|
7
|
+
const VERSION = '1.0.1';
|
|
8
8
|
const PACKAGE_NAME = 'structurecc';
|
|
9
9
|
|
|
10
10
|
// Colors
|
|
@@ -103,7 +103,7 @@ function install() {
|
|
|
103
103
|
const agentFiles = fs.readdirSync(srcAgentsDir);
|
|
104
104
|
ensureDir(agentsDir);
|
|
105
105
|
for (const file of agentFiles) {
|
|
106
|
-
if (file.startsWith('
|
|
106
|
+
if (file.startsWith('structurecc-')) {
|
|
107
107
|
fs.copyFileSync(
|
|
108
108
|
path.join(srcAgentsDir, file),
|
|
109
109
|
path.join(agentsDir, file)
|
|
@@ -138,7 +138,7 @@ function uninstall() {
|
|
|
138
138
|
if (fs.existsSync(agentsDir)) {
|
|
139
139
|
const agentFiles = fs.readdirSync(agentsDir);
|
|
140
140
|
for (const file of agentFiles) {
|
|
141
|
-
if (file.startsWith('
|
|
141
|
+
if (file.startsWith('structurecc-')) {
|
|
142
142
|
fs.unlinkSync(path.join(agentsDir, file));
|
|
143
143
|
log(` ✓ Removed ${file}`, colors.green);
|
|
144
144
|
}
|