@softeria/ms-365-mcp-server 0.11.4 → 0.12.0
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/.releaserc.json +12 -0
- package/README.md +2 -1
- package/bin/modules/simplified-openapi.mjs +465 -274
- package/dist/auth-tools.js +181 -173
- package/dist/auth.js +402 -415
- package/dist/cli.js +35 -36
- package/dist/generated/client.js +6976 -14312
- package/dist/generated/endpoint-types.js +0 -1
- package/dist/generated/hack.js +39 -33
- package/dist/graph-client.js +426 -473
- package/dist/graph-tools.js +217 -228
- package/dist/index.js +76 -79
- package/dist/lib/microsoft-auth.js +62 -72
- package/dist/logger.js +36 -27
- package/dist/oauth-provider.js +48 -47
- package/dist/server.js +277 -264
- package/dist/version.js +9 -6
- package/package.json +13 -3
- package/tsup.config.ts +30 -0
- package/bin/release.mjs +0 -69
package/bin/release.mjs
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { execSync } from 'child_process';
|
|
4
|
-
import fs from 'fs';
|
|
5
|
-
|
|
6
|
-
try {
|
|
7
|
-
const currentBranch = execSync('git rev-parse --abbrev-ref HEAD').toString().trim();
|
|
8
|
-
if (currentBranch !== 'main') {
|
|
9
|
-
console.error(
|
|
10
|
-
`Error: You must be on the 'main' branch to create a release. Current branch: ${currentBranch}`
|
|
11
|
-
);
|
|
12
|
-
process.exit(1);
|
|
13
|
-
}
|
|
14
|
-
} catch (error) {
|
|
15
|
-
console.error('Failed to determine current git branch:', error.message);
|
|
16
|
-
process.exit(1);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
try {
|
|
20
|
-
const changes = execSync('git status --porcelain').toString();
|
|
21
|
-
if (changes.length > 0) {
|
|
22
|
-
console.error(
|
|
23
|
-
'Error: You have uncommitted changes. Please commit or stash them before creating a release.'
|
|
24
|
-
);
|
|
25
|
-
console.error(changes);
|
|
26
|
-
process.exit(1);
|
|
27
|
-
}
|
|
28
|
-
} catch (error) {
|
|
29
|
-
console.error('Failed to check git status:', error.message);
|
|
30
|
-
process.exit(1);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const args = process.argv.slice(2);
|
|
34
|
-
const releaseType = args[0] || 'patch';
|
|
35
|
-
|
|
36
|
-
if (!['major', 'minor', 'patch'].includes(releaseType)) {
|
|
37
|
-
console.error('Invalid release type. Must be one of: major, minor, patch');
|
|
38
|
-
process.exit(1);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
console.log(`Release type: ${releaseType}`);
|
|
42
|
-
|
|
43
|
-
console.log('Running tests...');
|
|
44
|
-
try {
|
|
45
|
-
execSync('npm test', { stdio: 'inherit' });
|
|
46
|
-
} catch (error) {
|
|
47
|
-
console.error('Tests failed! Aborting release.');
|
|
48
|
-
process.exit(1);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
console.log(`Bumping ${releaseType} version...`);
|
|
52
|
-
execSync(`npm version --no-git-tag-version ${releaseType}`);
|
|
53
|
-
|
|
54
|
-
const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
|
|
55
|
-
const version = packageJson.version;
|
|
56
|
-
|
|
57
|
-
console.log('Committing version change...');
|
|
58
|
-
execSync('git add package.json package-lock.json');
|
|
59
|
-
execSync(`git commit -m "Bump version to ${version}"`);
|
|
60
|
-
|
|
61
|
-
console.log('Pushing to remote...');
|
|
62
|
-
execSync('git push');
|
|
63
|
-
|
|
64
|
-
console.log(`Creating GitHub release for v${version}...`);
|
|
65
|
-
execSync(`gh release create v${version} --title 'v${version}' --notes 'Version ${version}'`, {
|
|
66
|
-
stdio: 'inherit',
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
console.log(`Release v${version} created successfully!`);
|