Skip to content

Commit e524abd

Browse files
test(smoke): scope README guard to fenced blocks and restore historical changelog
1 parent e5f85e3 commit e524abd

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to json2sql will be documented in this file.
88

99
- CLI integration tests with comprehensive coverage (#8, #9, #10)
1010
- Standalone dialect tests and converter edge cases (#10)
11+
- npm wrapper (`package.json` + `cli.js`) for npm publishing
1112
- GitHub Actions: PyPI publish workflow (release or manual dispatch)
1213
- GitHub Actions: GitHub Pages deployment workflow
1314
- GitHub Actions: npm publish workflow (release or manual dispatch)
@@ -44,14 +45,13 @@ All notable changes to json2sql will be documented in this file.
4445
- README rewritten with unified pricing tables, Revenue Holdings branding
4546
- README expanded with CI/CD integration examples and alternatives comparison
4647
- README tool count and DevForge URLs updated
47-
- README install instructions limited to pip, Homebrew, and Scoop (no npm package)
48+
- npm install instructions added to README
4849

4950
## [0.1.0] — 2026-05-14
5051

5152
### Added
5253

5354
- Initial release
54-
- PyPI package publishing (json2sql-cli) and local Node.js CLI wrapper
5555
- JSON to SQL INSERT conversion
5656
- Nested JSON auto-flattening into relational tables
5757
- Multi-dialect output: PostgreSQL, MySQL, SQLite

‎tests/smoke.test.js‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,21 @@ test("smoke: README documents supported install paths only", () => {
6464
].map((match) => match[1]);
6565

6666
const forbiddenNpmUsage = [
67-
[/\bnpm\s+(?:install|i|add|exec|x|dlx)\b[^\n]*\bjson2sql(?:-cli)?(?![\w.-])/i, "npm"],
67+
[
68+
/\bnpm\s+(?:-{1,2}[A-Za-z][\w-]*\s+)*(?:install|i|add|exec|x|dlx)\b[^\n]*\bjson2sql(?:-cli)?(?![\w.-])/i,
69+
"npm",
70+
],
6871
[/\bnpx\b[^\n]*\bjson2sql(?:-cli)?(?![\w.-])/i, "npx"],
6972
[
70-
/\b(?:pnpm|yarn)\s+(?:add|global\s+add|dlx)\b[^\n]*\bjson2sql(?:-cli)?(?![\w.-])/i,
73+
/\b(?:pnpm|yarn)\s+(?:-{1,2}[A-Za-z][\w-]*\s+)*(?:add|global\s+add|dlx)\b[^\n]*\bjson2sql(?:-cli)?(?![\w.-])/i,
7174
"pnpm/yarn",
7275
],
7376
];
7477

75-
const sources = [
76-
["README.md", readme],
77-
...fencedBlocks.map((block, index) => [`README.md fenced code block ${index + 1}`, block]),
78-
];
78+
const sources = fencedBlocks.map((block, index) => [
79+
`README.md fenced code block ${index + 1}`,
80+
block,
81+
]);
7982
for (const [sourceName, source] of sources) {
8083
for (const [pattern, runner] of forbiddenNpmUsage) {
8184
assert.ok(

0 commit comments

Comments
 (0)