ai-news-writer-ci / test (pull_request) Successful in 36s
CI lint job has no eslint-plugin-import installed, so the inline disable-next-line for that rule itself raises an "unknown rule" error on `tools/seed-smoke-verification-article.js`. Drop the import-related token from the disable comment and keep only the still-valid `global-require` disable for the lazy require of `dotenv`. No behaviour change; the file still tries dotenv and silently continues without it. Paperclip-Issue: BIT-21924 Paperclip-Run: bb6e49a5-4f6d-4a8e-a4dd-ee75d961b36f
21 lines
491 B
JavaScript
21 lines
491 B
JavaScript
#!/usr/bin/env node
|
|
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
try {
|
|
// eslint-disable-next-line global-require
|
|
require('dotenv').config({ path: path.join(__dirname, '..', '.env') });
|
|
} catch (_err) {
|
|
/* optional */
|
|
}
|
|
|
|
const { seedSmokeVerificationArticle } = require('../src/store/smoke-verification-seed');
|
|
|
|
const r = seedSmokeVerificationArticle();
|
|
if (r.seeded) {
|
|
console.log(`Seeded article slug=${r.slug}`);
|
|
} else {
|
|
console.log(`Skip: slug ${r.slug} already present`);
|
|
}
|