@quiltdata/benchling-webhook 0.6.1-20251104T051705Z → 0.6.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.
Files changed (46) hide show
  1. package/dist/bin/check-logs.d.ts +7 -0
  2. package/dist/bin/check-logs.d.ts.map +1 -0
  3. package/dist/bin/check-logs.js +51 -60
  4. package/dist/bin/check-logs.js.map +1 -0
  5. package/dist/bin/dev-deploy.d.ts +20 -0
  6. package/dist/bin/dev-deploy.d.ts.map +1 -0
  7. package/dist/bin/dev-deploy.js +289 -0
  8. package/dist/bin/dev-deploy.js.map +1 -0
  9. package/dist/bin/get-env.d.ts +16 -0
  10. package/dist/bin/get-env.d.ts.map +1 -0
  11. package/dist/bin/get-env.js +61 -31
  12. package/dist/bin/get-env.js.map +1 -0
  13. package/dist/bin/publish.d.ts +20 -0
  14. package/dist/bin/publish.d.ts.map +1 -0
  15. package/dist/bin/publish.js +280 -280
  16. package/dist/bin/publish.js.map +1 -0
  17. package/dist/bin/release.d.ts +11 -0
  18. package/dist/bin/release.d.ts.map +1 -0
  19. package/dist/bin/release.js +125 -102
  20. package/dist/bin/release.js.map +1 -0
  21. package/dist/bin/send-event.d.ts +6 -0
  22. package/dist/bin/send-event.d.ts.map +1 -0
  23. package/dist/bin/send-event.js +73 -59
  24. package/dist/bin/send-event.js.map +1 -0
  25. package/dist/bin/test-invalid-signature.d.ts +3 -0
  26. package/dist/bin/test-invalid-signature.d.ts.map +1 -0
  27. package/dist/bin/test-invalid-signature.js +64 -74
  28. package/dist/bin/test-invalid-signature.js.map +1 -0
  29. package/dist/bin/version.d.ts +13 -0
  30. package/dist/bin/version.d.ts.map +1 -0
  31. package/dist/bin/version.js +194 -181
  32. package/dist/bin/version.js.map +1 -0
  33. package/dist/lib/utils/secrets.d.ts +14 -0
  34. package/dist/lib/utils/secrets.d.ts.map +1 -1
  35. package/dist/lib/utils/secrets.js +19 -0
  36. package/dist/lib/utils/secrets.js.map +1 -1
  37. package/dist/package.json +7 -7
  38. package/dist/scripts/config-health-check.d.ts +1 -1
  39. package/dist/scripts/config-health-check.d.ts.map +1 -1
  40. package/dist/scripts/config-health-check.js +33 -43
  41. package/dist/scripts/config-health-check.js.map +1 -1
  42. package/dist/scripts/sync-secrets.d.ts.map +1 -1
  43. package/dist/scripts/sync-secrets.js +2 -16
  44. package/dist/scripts/sync-secrets.js.map +1 -1
  45. package/package.json +7 -7
  46. package/dist/bin/cdk-dev.js +0 -308
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
-
2
+ "use strict";
3
3
  /**
4
4
  * NPM publish script with dev/prod modes
5
5
  *
@@ -17,311 +17,311 @@
17
17
  * npm run publish -- --check # Check package status only
18
18
  * npm run publish -- --dry-run # Test without publishing
19
19
  */
20
-
21
- const fs = require('fs');
22
- const path = require('path');
23
- const { execSync } = require('child_process');
24
-
25
- const NPMRC_PATH = path.join(__dirname, '..', '.npmrc');
26
- const NPMRC_BACKUP_PATH = path.join(__dirname, '..', '.npmrc.backup');
27
-
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
33
+ }) : function(o, v) {
34
+ o["default"] = v;
35
+ });
36
+ var __importStar = (this && this.__importStar) || (function () {
37
+ var ownKeys = function(o) {
38
+ ownKeys = Object.getOwnPropertyNames || function (o) {
39
+ var ar = [];
40
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
41
+ return ar;
42
+ };
43
+ return ownKeys(o);
44
+ };
45
+ return function (mod) {
46
+ if (mod && mod.__esModule) return mod;
47
+ var result = {};
48
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
49
+ __setModuleDefault(result, mod);
50
+ return result;
51
+ };
52
+ })();
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ const fs = __importStar(require("fs"));
55
+ const path = __importStar(require("path"));
56
+ const child_process_1 = require("child_process");
57
+ const readline = __importStar(require("readline"));
58
+ const NPMRC_PATH = path.join(__dirname, "..", ".npmrc");
59
+ const NPMRC_BACKUP_PATH = path.join(__dirname, "..", ".npmrc.backup");
28
60
  function getPackageInfo() {
29
- const packagePath = path.join(__dirname, '..', 'package.json');
30
- return JSON.parse(fs.readFileSync(packagePath, 'utf8'));
61
+ const packagePath = path.join(__dirname, "..", "package.json");
62
+ return JSON.parse(fs.readFileSync(packagePath, "utf8"));
31
63
  }
32
-
33
64
  function checkPackageStatus() {
34
- const pkg = getPackageInfo();
35
-
36
- console.log('📦 Package Status');
37
- console.log('═'.repeat(50));
38
- console.log('Name: ', pkg.name);
39
- console.log('Version: ', pkg.version);
40
- console.log('');
41
-
42
- try {
43
- console.log('Checking npm registry...');
44
- const registryInfo = execSync(`npm view ${pkg.name} --json`, {
45
- encoding: 'utf8',
46
- stdio: ['pipe', 'pipe', 'pipe']
47
- });
48
-
49
- const registryData = JSON.parse(registryInfo);
50
- const versions = Array.isArray(registryData.versions) ? registryData.versions : [registryData.version];
51
- const latestVersion = registryData['dist-tags']?.latest || 'unknown';
52
- const devVersion = registryData['dist-tags']?.dev || 'none';
53
-
54
- console.log('');
55
- console.log('Published Versions:', versions.length);
56
- console.log('Latest (prod): ', latestVersion);
57
- console.log('Dev (prerelease): ', devVersion);
58
- console.log('');
59
-
60
- if (versions.includes(pkg.version)) {
61
- console.log(`⚠️ Version ${pkg.version} is already published`);
62
- } else {
63
- console.log(`✅ Version ${pkg.version} is ready to publish`);
65
+ const pkg = getPackageInfo();
66
+ console.log("📦 Package Status");
67
+ console.log("═".repeat(50));
68
+ console.log("Name: ", pkg.name);
69
+ console.log("Version: ", pkg.version);
70
+ console.log("");
71
+ try {
72
+ console.log("Checking npm registry...");
73
+ const registryInfo = (0, child_process_1.execSync)(`npm view ${pkg.name} --json`, {
74
+ encoding: "utf8",
75
+ stdio: ["pipe", "pipe", "pipe"],
76
+ });
77
+ const registryData = JSON.parse(registryInfo);
78
+ const versions = Array.isArray(registryData.versions) ? registryData.versions : [registryData.version || ""];
79
+ const latestVersion = registryData["dist-tags"]?.latest || "unknown";
80
+ const devVersion = registryData["dist-tags"]?.dev || "none";
81
+ console.log("");
82
+ console.log("Published Versions:", versions.length);
83
+ console.log("Latest (prod): ", latestVersion);
84
+ console.log("Dev (prerelease): ", devVersion);
85
+ console.log("");
86
+ if (versions.includes(pkg.version)) {
87
+ console.log(`⚠️ Version ${pkg.version} is already published`);
88
+ }
89
+ else {
90
+ console.log(`✅ Version ${pkg.version} is ready to publish`);
91
+ }
92
+ console.log("");
93
+ console.log(`View at: https://www.npmjs.com/package/${pkg.name}`);
64
94
  }
65
-
66
- console.log('');
67
- console.log(`View at: https://www.npmjs.com/package/${pkg.name}`);
68
-
69
- } catch (error) {
70
- if (error.message.includes('E404')) {
71
- console.log('');
72
- console.log('📭 Package not yet published to npm');
73
- console.log(' Run without --check to publish');
74
- } else {
75
- console.error('');
76
- console.error('❌ Error checking registry:', error.message);
95
+ catch (error) {
96
+ const errorMessage = error instanceof Error ? error.message : String(error);
97
+ if (errorMessage.includes("E404")) {
98
+ console.log("");
99
+ console.log("📭 Package not yet published to npm");
100
+ console.log(" Run without --check to publish");
101
+ }
102
+ else {
103
+ console.error("");
104
+ console.error("❌ Error checking registry:", errorMessage);
105
+ }
77
106
  }
78
- }
79
107
  }
80
-
81
108
  function validateToken() {
82
- const token = process.env.NPM_TOKEN;
83
-
84
- if (!token) {
85
- console.error('❌ Error: NPM_TOKEN environment variable is not set');
86
- console.error('');
87
- console.error('Usage:');
88
- console.error(' NPM_TOKEN=your_token_here npm run publish');
89
- console.error('');
90
- console.error('To get an NPM access token:');
91
- console.error(' 1. Go to https://www.npmjs.com/settings/[your-username]/tokens');
92
- console.error(' 2. Click "Generate New Token"');
93
- console.error(' 3. Select "Automation" type for CI/CD or "Publish" for manual use');
94
- console.error(' 4. Copy the token and use it with this script');
95
- process.exit(1);
96
- }
97
-
98
- return token;
109
+ const token = process.env.NPM_TOKEN;
110
+ if (!token) {
111
+ console.error("❌ Error: NPM_TOKEN environment variable is not set");
112
+ console.error("");
113
+ console.error("Usage:");
114
+ console.error(" NPM_TOKEN=your_token_here npm run publish");
115
+ console.error("");
116
+ console.error("To get an NPM access token:");
117
+ console.error(" 1. Go to https://www.npmjs.com/settings/[your-username]/tokens");
118
+ console.error(" 2. Click \"Generate New Token\"");
119
+ console.error(" 3. Select \"Automation\" type for CI/CD or \"Publish\" for manual use");
120
+ console.error(" 4. Copy the token and use it with this script");
121
+ process.exit(1);
122
+ }
123
+ return token;
99
124
  }
100
-
101
125
  function validateGitState(isDryRun) {
102
- // Check for uncommitted changes
103
- try {
104
- execSync('git diff-index --quiet HEAD --', { stdio: 'ignore' });
105
- } catch (e) {
106
- console.error('⚠️ Warning: You have uncommitted changes');
107
- console.error(' It is recommended to commit changes before publishing');
108
- console.error('');
109
-
110
- // Skip prompt in dry-run mode
111
- if (isDryRun) {
112
- console.log(' Continuing with dry-run...');
113
- console.log('');
114
- return Promise.resolve();
126
+ // Check for uncommitted changes
127
+ try {
128
+ (0, child_process_1.execSync)("git diff-index --quiet HEAD --", { stdio: "ignore" });
115
129
  }
116
-
117
- const readline = require('readline').createInterface({
118
- input: process.stdin,
119
- output: process.stdout
120
- });
121
-
122
- return new Promise((resolve) => {
123
- readline.question('Continue anyway? (y/N): ', (answer) => {
124
- readline.close();
125
- if (answer.toLowerCase() !== 'y') {
126
- console.log('Aborted');
127
- process.exit(1);
130
+ catch (_e) {
131
+ console.error("⚠️ Warning: You have uncommitted changes");
132
+ console.error(" It is recommended to commit changes before publishing");
133
+ console.error("");
134
+ // Skip prompt in dry-run mode
135
+ if (isDryRun) {
136
+ console.log(" Continuing with dry-run...");
137
+ console.log("");
138
+ return Promise.resolve();
128
139
  }
129
- resolve();
130
- });
131
- });
132
- }
140
+ const rl = readline.createInterface({
141
+ input: process.stdin,
142
+ output: process.stdout,
143
+ });
144
+ return new Promise((resolve) => {
145
+ rl.question("Continue anyway? (y/N): ", (answer) => {
146
+ rl.close();
147
+ if (answer.toLowerCase() !== "y") {
148
+ console.log("Aborted");
149
+ process.exit(1);
150
+ }
151
+ resolve();
152
+ });
153
+ });
154
+ }
155
+ return Promise.resolve();
133
156
  }
134
-
135
157
  function createNpmrc(token) {
136
- // Backup existing .npmrc if it exists
137
- if (fs.existsSync(NPMRC_PATH)) {
138
- console.log('📋 Backing up existing .npmrc');
139
- fs.copyFileSync(NPMRC_PATH, NPMRC_BACKUP_PATH);
140
- }
141
-
142
- // Create .npmrc with token
143
- const npmrcContent = `//registry.npmjs.org/:_authToken=${token}\nregistry=https://registry.npmjs.org/\n`;
144
- fs.writeFileSync(NPMRC_PATH, npmrcContent, { mode: 0o600 });
145
- console.log('✅ Created .npmrc with authentication token');
158
+ // Backup existing .npmrc if it exists
159
+ if (fs.existsSync(NPMRC_PATH)) {
160
+ console.log("📋 Backing up existing .npmrc");
161
+ fs.copyFileSync(NPMRC_PATH, NPMRC_BACKUP_PATH);
162
+ }
163
+ // Create .npmrc with token
164
+ const npmrcContent = `//registry.npmjs.org/:_authToken=${token}\nregistry=https://registry.npmjs.org/\n`;
165
+ fs.writeFileSync(NPMRC_PATH, npmrcContent, { mode: 0o600 });
166
+ console.log("✅ Created .npmrc with authentication token");
146
167
  }
147
-
148
168
  function restoreNpmrc() {
149
- // Remove the temporary .npmrc
150
- if (fs.existsSync(NPMRC_PATH)) {
151
- fs.unlinkSync(NPMRC_PATH);
152
- }
153
-
154
- // Restore backup if it exists
155
- if (fs.existsSync(NPMRC_BACKUP_PATH)) {
156
- console.log('📋 Restoring original .npmrc');
157
- fs.renameSync(NPMRC_BACKUP_PATH, NPMRC_PATH);
158
- }
169
+ // Remove the temporary .npmrc
170
+ if (fs.existsSync(NPMRC_PATH)) {
171
+ fs.unlinkSync(NPMRC_PATH);
172
+ }
173
+ // Restore backup if it exists
174
+ if (fs.existsSync(NPMRC_BACKUP_PATH)) {
175
+ console.log("📋 Restoring original .npmrc");
176
+ fs.renameSync(NPMRC_BACKUP_PATH, NPMRC_PATH);
177
+ }
159
178
  }
160
-
161
179
  function buildPackage() {
162
- const rootDir = path.join(__dirname, '..');
163
- const distDir = path.join(rootDir, 'dist');
164
-
165
- console.log('🔨 Building package...');
166
- console.log('');
167
-
168
- // Clean dist directory
169
- if (fs.existsSync(distDir)) {
170
- console.log(' Cleaning dist/');
171
- fs.rmSync(distDir, { recursive: true, force: true });
172
- }
173
-
174
- // Compile TypeScript
175
- console.log(' Compiling TypeScript...');
176
- try {
177
- execSync('npx tsc --outDir dist --declaration --declarationMap --sourceMap --noEmit false --inlineSourceMap false', {
178
- cwd: rootDir,
179
- stdio: 'inherit'
180
- });
181
- console.log('');
182
- console.log('✅ Build completed successfully');
183
- console.log('');
184
- } catch (error) {
185
- console.error('');
186
- console.error('❌ Build failed');
187
- throw error;
188
- }
180
+ const rootDir = path.join(__dirname, "..");
181
+ const distDir = path.join(rootDir, "dist");
182
+ console.log("🔨 Building package...");
183
+ console.log("");
184
+ // Clean dist directory
185
+ if (fs.existsSync(distDir)) {
186
+ console.log(" Cleaning dist/");
187
+ fs.rmSync(distDir, { recursive: true, force: true });
188
+ }
189
+ // Compile TypeScript
190
+ console.log(" Compiling TypeScript...");
191
+ try {
192
+ (0, child_process_1.execSync)("npx tsc --outDir dist --declaration --declarationMap --sourceMap --noEmit false --inlineSourceMap false", {
193
+ cwd: rootDir,
194
+ stdio: "inherit",
195
+ });
196
+ console.log("");
197
+ console.log("✅ Build completed successfully");
198
+ console.log("");
199
+ }
200
+ catch (error) {
201
+ console.error("");
202
+ console.error("❌ Build failed");
203
+ throw error;
204
+ }
189
205
  }
190
-
191
206
  function cleanBuildArtifacts() {
192
- const distDir = path.join(__dirname, '..', 'dist');
193
- if (fs.existsSync(distDir)) {
194
- console.log('🧹 Cleaning build artifacts...');
195
- fs.rmSync(distDir, { recursive: true, force: true });
196
- }
207
+ const distDir = path.join(__dirname, "..", "dist");
208
+ if (fs.existsSync(distDir)) {
209
+ console.log("🧹 Cleaning build artifacts...");
210
+ fs.rmSync(distDir, { recursive: true, force: true });
211
+ }
197
212
  }
198
-
199
213
  function publishPackage(isDryRun, isProd) {
200
- const pkg = getPackageInfo();
201
- const tag = isProd ? 'latest' : 'dev';
202
-
203
- console.log('📦 Publishing package: ' + pkg.name);
204
- console.log('📌 Version: ' + pkg.version);
205
- console.log('🏷️ Tag: ' + tag + (isProd ? ' (production)' : ' (prerelease)'));
206
- console.log('');
207
-
208
- let publishCmd = 'npm publish --access public';
209
-
210
- if (isDryRun) {
211
- publishCmd += ' --dry-run';
212
- console.log('🔍 Running in dry-run mode (no actual publish)');
213
- console.log('');
214
- }
215
-
216
- publishCmd += ` --tag ${tag}`;
217
-
218
- try {
219
- execSync(publishCmd, { stdio: 'inherit', cwd: path.join(__dirname, '..') });
220
-
214
+ const pkg = getPackageInfo();
215
+ const tag = isProd ? "latest" : "dev";
216
+ console.log("📦 Publishing package: " + pkg.name);
217
+ console.log("📌 Version: " + pkg.version);
218
+ console.log("🏷️ Tag: " + tag + (isProd ? " (production)" : " (prerelease)"));
219
+ console.log("");
220
+ let publishCmd = "npm publish --access public";
221
221
  if (isDryRun) {
222
- console.log('');
223
- console.log('✅ Dry run completed successfully');
224
- console.log(' Remove --dry-run to publish for real');
225
- } else {
226
- console.log('');
227
- console.log('✅ Package published successfully!');
228
- console.log(` View at: https://www.npmjs.com/package/${pkg.name}/v/${pkg.version}`);
229
- console.log('');
230
- if (!isProd) {
231
- console.log(' 📝 Note: Published as prerelease (dev tag)');
232
- console.log(' To install: npm install ' + pkg.name + '@dev');
233
- console.log(' To publish as production: npm run publish -- --prod');
234
- }
222
+ publishCmd += " --dry-run";
223
+ console.log("🔍 Running in dry-run mode (no actual publish)");
224
+ console.log("");
225
+ }
226
+ publishCmd += ` --tag ${tag}`;
227
+ try {
228
+ (0, child_process_1.execSync)(publishCmd, { stdio: "inherit", cwd: path.join(__dirname, "..") });
229
+ if (isDryRun) {
230
+ console.log("");
231
+ console.log("✅ Dry run completed successfully");
232
+ console.log(" Remove --dry-run to publish for real");
233
+ }
234
+ else {
235
+ console.log("");
236
+ console.log("✅ Package published successfully!");
237
+ console.log(` View at: https://www.npmjs.com/package/${pkg.name}/v/${pkg.version}`);
238
+ console.log("");
239
+ if (!isProd) {
240
+ console.log(" 📝 Note: Published as prerelease (dev tag)");
241
+ console.log(" To install: npm install " + pkg.name + "@dev");
242
+ console.log(" To publish as production: npm run publish -- --prod");
243
+ }
244
+ }
245
+ }
246
+ catch (error) {
247
+ console.error("");
248
+ console.error("❌ Failed to publish package");
249
+ throw error;
235
250
  }
236
- } catch (error) {
237
- console.error('');
238
- console.error('❌ Failed to publish package');
239
- throw error;
240
- }
241
251
  }
242
-
243
252
  async function main() {
244
- const args = process.argv.slice(2);
245
-
246
- if (args.includes('--help') || args.includes('-h')) {
247
- const pkg = getPackageInfo();
248
-
249
- console.log('📦 NPM Publish');
250
- console.log('');
251
- console.log('Current package:', pkg.name);
252
- console.log('Current version:', pkg.version);
253
- console.log('');
254
- console.log('Usage:');
255
- console.log(' npm run publish [options]');
256
- console.log('');
257
- console.log('Options:');
258
- console.log(' --check Check current package status on npm (no publish)');
259
- console.log(' --prod Publish as production (tag: latest)');
260
- console.log(' --dry-run Test the publish process without actually publishing');
261
- console.log(' --help, -h Show this help message');
262
- console.log('');
263
- console.log('Default Behavior:');
264
- console.log(' Without --prod, publishes with "dev" tag (prerelease)');
265
- console.log('');
266
- console.log('Examples:');
267
- console.log(' npm run publish # Publish as dev (prerelease)');
268
- console.log(' npm run publish -- --prod # Publish as latest (production)');
269
- console.log(' npm run publish -- --check # Check status only');
270
- console.log(' npm run publish -- --dry-run # Test without publishing');
271
- console.log(' npm run publish -- --prod --dry-run # Test prod publish');
272
- console.log('');
273
- console.log('Getting an NPM token:');
274
- console.log(' 1. Visit: https://www.npmjs.com/settings/[your-username]/tokens');
275
- console.log(' 2. Click "Generate New Token"');
276
- console.log(' 3. Choose "Automation" (for CI/CD) or "Publish" (for manual use)');
277
- console.log(' 4. Set as environment variable: export NPM_TOKEN=npm_xxxxx');
278
- process.exit(0);
279
- }
280
-
281
- // Handle --check flag (no auth needed)
282
- if (args.includes('--check')) {
283
- checkPackageStatus();
284
- return;
285
- }
286
-
287
- const isDryRun = args.includes('--dry-run');
288
- const isProd = args.includes('--prod');
289
-
290
- console.log('🚀 NPM Publish Script');
291
- console.log('═'.repeat(50));
292
-
293
- // Validate token
294
- const token = validateToken();
295
-
296
- // Validate git state
297
- await validateGitState(isDryRun);
298
-
299
- try {
300
- // Build package
301
- buildPackage();
302
-
303
- // Create .npmrc with token
304
- createNpmrc(token);
305
-
306
- // Publish package
307
- publishPackage(isDryRun, isProd);
308
- } catch (error) {
309
- console.error('');
310
- console.error('Publishing failed');
311
- process.exit(1);
312
- } finally {
313
- // Always restore the original .npmrc
314
- restoreNpmrc();
315
-
316
- // Clean build artifacts (keep repo clean) unless --keep-dist is specified
317
- if (!args.includes('--keep-dist')) {
318
- cleanBuildArtifacts();
253
+ const args = process.argv.slice(2);
254
+ if (args.includes("--help") || args.includes("-h")) {
255
+ const pkg = getPackageInfo();
256
+ console.log("📦 NPM Publish");
257
+ console.log("");
258
+ console.log("Current package:", pkg.name);
259
+ console.log("Current version:", pkg.version);
260
+ console.log("");
261
+ console.log("Usage:");
262
+ console.log(" npm run publish [options]");
263
+ console.log("");
264
+ console.log("Options:");
265
+ console.log(" --check Check current package status on npm (no publish)");
266
+ console.log(" --prod Publish as production (tag: latest)");
267
+ console.log(" --dry-run Test the publish process without actually publishing");
268
+ console.log(" --help, -h Show this help message");
269
+ console.log("");
270
+ console.log("Default Behavior:");
271
+ console.log(" Without --prod, publishes with \"dev\" tag (prerelease)");
272
+ console.log("");
273
+ console.log("Examples:");
274
+ console.log(" npm run publish # Publish as dev (prerelease)");
275
+ console.log(" npm run publish -- --prod # Publish as latest (production)");
276
+ console.log(" npm run publish -- --check # Check status only");
277
+ console.log(" npm run publish -- --dry-run # Test without publishing");
278
+ console.log(" npm run publish -- --prod --dry-run # Test prod publish");
279
+ console.log("");
280
+ console.log("Getting an NPM token:");
281
+ console.log(" 1. Visit: https://www.npmjs.com/settings/[your-username]/tokens");
282
+ console.log(" 2. Click \"Generate New Token\"");
283
+ console.log(" 3. Choose \"Automation\" (for CI/CD) or \"Publish\" (for manual use)");
284
+ console.log(" 4. Set as environment variable: export NPM_TOKEN=npm_xxxxx");
285
+ process.exit(0);
286
+ }
287
+ // Handle --check flag (no auth needed)
288
+ if (args.includes("--check")) {
289
+ checkPackageStatus();
290
+ return;
291
+ }
292
+ const isDryRun = args.includes("--dry-run");
293
+ const isProd = args.includes("--prod");
294
+ console.log("🚀 NPM Publish Script");
295
+ console.log("═".repeat(50));
296
+ // Validate token
297
+ const token = validateToken();
298
+ // Validate git state
299
+ await validateGitState(isDryRun);
300
+ try {
301
+ // Build package
302
+ buildPackage();
303
+ // Create .npmrc with token
304
+ createNpmrc(token);
305
+ // Publish package
306
+ publishPackage(isDryRun, isProd);
307
+ }
308
+ catch (_error) {
309
+ console.error("");
310
+ console.error("Publishing failed");
311
+ process.exit(1);
312
+ }
313
+ finally {
314
+ // Always restore the original .npmrc
315
+ restoreNpmrc();
316
+ // Clean build artifacts (keep repo clean) unless --keep-dist is specified
317
+ if (!args.includes("--keep-dist")) {
318
+ cleanBuildArtifacts();
319
+ }
319
320
  }
320
- }
321
321
  }
322
-
323
322
  main().catch((error) => {
324
- console.error('Unexpected error:', error);
325
- restoreNpmrc();
326
- process.exit(1);
323
+ console.error("Unexpected error:", error);
324
+ restoreNpmrc();
325
+ process.exit(1);
327
326
  });
327
+ //# sourceMappingURL=publish.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish.js","sourceRoot":"","sources":["../../bin/publish.ts"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2CAA6B;AAC7B,iDAAyC;AACzC,mDAAqC;AAErC,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AACxD,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC;AAiBtE,SAAS,cAAc;IACnB,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAgB,CAAC;AAC3E,CAAC;AAED,SAAS,kBAAkB;IACvB,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;IAE7B,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACjC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5B,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACtC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEhB,IAAI,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QACxC,MAAM,YAAY,GAAG,IAAA,wBAAQ,EAAC,Y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AAE,CAAC,CAAC,CAAC;IAE5B,iBAAiB;IACjB,MAAM,KAAK,GAAG,aAAa,EAAE,CAAC;IAE9B,qBAAqB;IACrB,MAAM,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAEjC,IAAI,CAAC;QACD,gBAAgB;QAChB,YAAY,EAAE,CAAC;QAEf,2BAA2B;QAC3B,WAAW,CAAC,KAAK,CAAC,CAAC;QAEnB,kBAAkB;QAClB,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACrC,CAAC;IAAC,OAAO,MAAe,EAAE,CAAC;QACvB,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAClB,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;QACnC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;YAAS,CAAC;QACP,qCAAqC;QACrC,YAAY,EAAE,CAAC;QAEf,0EAA0E;QAC1E,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;YAChC,mBAAmB,EAAE,CAAC;QAC1B,CAAC;IACL,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC5B,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;IAC1C,YAAY,EAAE,CAAC;IACf,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Release management script - creates and pushes git tags
4
+ *
5
+ * Usage:
6
+ * node bin/release.js # Create production release from current version
7
+ * node bin/release.js dev # Create dev release with timestamp from current version
8
+ * node bin/release.js --no-push # Create tag but don't push
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=release.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../bin/release.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG"}