Skip to content

Commit a295fe8

Browse files
committed
feat: Naming changes
1 parent 04fa4cb commit a295fe8

2 files changed

Lines changed: 43 additions & 41 deletions

File tree

bin/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function sendMessageAndAwaitResponse(process, message) {
7474
});
7575
}
7676

77-
async function buildDocumentation() {
77+
async function findDocumentation() {
7878
console.log('Building documentation...');
7979

8080
const results = new Map();
@@ -210,7 +210,7 @@ async function main() {
210210

211211
console.log('Successfully wrote schema to ./dist/schemas.json');
212212

213-
const documentationMap = await buildDocumentation();
213+
const documentationMap = await findDocumentation();
214214
console.log('Documentation Map:', documentationMap);
215215

216216
// Build reverse map for resource type -> documentation path

bin/publish.js

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -68,40 +68,42 @@ async function publish() {
6868
console.log(` 3. Major (${suggestedMajor}) - Breaking changes`);
6969
console.log(' 4. Custom version');
7070

71-
const versionChoice = await rl.question('\n🔢 Select version increment (1-4): ');
72-
let newVersion;
73-
74-
switch (versionChoice.trim()) {
75-
case '1': {
76-
newVersion = suggestedPatch;
77-
break;
78-
}
79-
80-
case '2': {
81-
newVersion = suggestedMinor;
82-
break;
83-
}
84-
85-
case '3': {
86-
newVersion = suggestedMajor;
87-
break;
88-
}
89-
90-
case '4': {
91-
newVersion = await rl.question('Enter custom version (e.g., 1.0.0-beta.1): ');
92-
if (!semver.valid(newVersion)) {
93-
console.error('❌ Invalid semantic version. Aborting.');
94-
process.exit(1);
95-
}
96-
97-
break;
98-
}
99-
100-
default: {
101-
console.error('❌ Invalid choice. Aborting.');
102-
process.exit(1);
103-
}
104-
}
71+
const newVersion = currentVersion;
72+
73+
// const versionChoice = await rl.question('\n🔢 Select version increment (1-4): ');
74+
// let newVersion;
75+
//
76+
// switch (versionChoice.trim()) {
77+
// case '1': {
78+
// newVersion = suggestedPatch;
79+
// break;
80+
// }
81+
//
82+
// case '2': {
83+
// newVersion = suggestedMinor;
84+
// break;
85+
// }
86+
//
87+
// case '3': {
88+
// newVersion = suggestedMajor;
89+
// break;
90+
// }
91+
//
92+
// case '4': {
93+
// newVersion = await rl.question('Enter custom version (e.g., 1.0.0-beta.1): ');
94+
// if (!semver.valid(newVersion)) {
95+
// console.error('❌ Invalid semantic version. Aborting.');
96+
// process.exit(1);
97+
// }
98+
//
99+
// break;
100+
// }
101+
//
102+
// default: {
103+
// console.error('❌ Invalid choice. Aborting.');
104+
// process.exit(1);
105+
// }
106+
// }
105107

106108
console.log(`\n✅ Publishing version: ${newVersion}\n`);
107109

@@ -131,11 +133,11 @@ async function publish() {
131133
console.warn('⚠️ Warning: No README.md found. Consider adding one.');
132134
}
133135

134-
// Check for /docs folder
136+
// Check for /dist/docs folder
135137
let docsFiles = [];
136-
if (fs.existsSync('./docs')) {
137-
console.log('📚 /docs folder found');
138-
docsFiles = scanDocsFolder('./docs');
138+
if (fs.existsSync('./dist/docs')) {
139+
console.log('📚 /dist/docs folder found');
140+
docsFiles = scanDocsFolder('./dist/docs');
139141
console.log(` Found ${docsFiles.length} documentation files`);
140142
}
141143

@@ -236,7 +238,7 @@ function getApiToken() {
236238
}
237239

238240
const credentials = JSON.parse(fs.readFileSync(CREDENTIALS_PATH, 'utf8'));
239-
return credentials.apiToken;
241+
return credentials.accessToken;
240242
} catch {
241243
return null;
242244
}

0 commit comments

Comments
 (0)