spec-up-t 1.1.8 → 1.1.10
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/package.json +1 -1
- package/src/install-from-boilerplate/add-gitignore-entries.js +2 -2
- package/src/install-from-boilerplate/add-scripts-keys.js +5 -5
- package/src/install-from-boilerplate/copy-boilerplate.js +1 -1
- package/src/install-from-boilerplate/copy-system-files.js +1 -1
- package/src/install-from-boilerplate/custom-update.js +1 -1
- package/src/install-from-boilerplate/postinstall-message.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "Technical specification drafting tool that generates rich specification documents from markdown. Forked from https://github.com/decentralized-identity/spec-up by Daniel Buchner (https://github.com/csuwildcat)",
|
|
5
5
|
"main": "./index",
|
|
6
6
|
"repository": {
|
|
@@ -42,9 +42,9 @@ async function updateGitignore(gitignorePath, filesToAdd) {
|
|
|
42
42
|
// Write the updated content back to the .gitignore file
|
|
43
43
|
await fs.writeFile(gitignorePath, updatedGitignoreContent, 'utf8');
|
|
44
44
|
|
|
45
|
-
console.log('Updated .gitignore file');
|
|
45
|
+
console.log('✅ Updated .gitignore file');
|
|
46
46
|
} catch (error) {
|
|
47
|
-
console.error('Error updating .gitignore:', error.message);
|
|
47
|
+
console.error('❌ Error updating .gitignore:', error.message);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -8,12 +8,12 @@ const path = require('path');
|
|
|
8
8
|
* @param {Object} [overwriteKeys={}] - An object specifying which scripts to overwrite if they already exist.
|
|
9
9
|
*/
|
|
10
10
|
function addScriptsKeys(scriptKeys, overwriteKeys = {}) {
|
|
11
|
-
const packageJsonPath = path.resolve(
|
|
11
|
+
const packageJsonPath = path.resolve(__dirname, '../../../../', 'package.json');
|
|
12
12
|
|
|
13
13
|
// Read the package.json file
|
|
14
14
|
fs.readFile(packageJsonPath, 'utf8', (err, data) => {
|
|
15
15
|
if (err) {
|
|
16
|
-
console.error('Error reading package.json:', err);
|
|
16
|
+
console.error('❌ Error reading package.json:', err);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -36,13 +36,13 @@ function addScriptsKeys(scriptKeys, overwriteKeys = {}) {
|
|
|
36
36
|
// Write the updated package.json back to disk
|
|
37
37
|
fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf8', (err) => {
|
|
38
38
|
if (err) {
|
|
39
|
-
console.error('Error writing package.json:', err);
|
|
39
|
+
console.error('❌ Error writing package.json:', err);
|
|
40
40
|
} else {
|
|
41
|
-
console.log('Scripts added to package.json successfully!');
|
|
41
|
+
console.log('✅ Scripts added to package.json successfully!');
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
} catch (parseError) {
|
|
45
|
-
console.error('Error parsing package.json:', parseError);
|
|
45
|
+
console.error('❌ Error parsing package.json:', parseError);
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
@@ -16,7 +16,7 @@ function copyBoilerplate() {
|
|
|
16
16
|
const gitignoreDestPath = path.join(__dirname, '../../../../', '.gitignore');
|
|
17
17
|
fs.renameSync(gitignorePath, gitignoreDestPath);
|
|
18
18
|
|
|
19
|
-
console.log('✅ Copied spec-up-t-boilerplate to current directory
|
|
19
|
+
console.log('✅ Copied spec-up-t-boilerplate to current directory');
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
module.exports = copyBoilerplate;
|
|
@@ -8,8 +8,8 @@ process.nextTick(() => {
|
|
|
8
8
|
console.log(`
|
|
9
9
|
*************
|
|
10
10
|
Next:
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
👉 1: Type the following and press ENTER: cd ${dirName}
|
|
12
|
+
👉 2: Type the following and press ENTER: npm run menu
|
|
13
13
|
*************
|
|
14
14
|
`);
|
|
15
15
|
});
|