Skip to content

Commit 1c00c82

Browse files
cs-rajclaude
andcommitted
fix: correct esModuleInterop imports and tsconfig for regex-validate
- Add esModuleInterop: true and composite: true to tsconfig.json (were missing from v1 branch) - Fix generate-output.ts: import jsonexport/cli-table3 as default imports instead of namespace imports — with esModuleInterop, CJS default-export modules require `import X from 'X'` not `import * as X from 'X'` (fixes TS2349/TS2351/TS1259) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a69c382 commit 1c00c82

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

packages/contentstack-cli-cm-regex-validate/src/utils/generate-output.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as jsonexport from 'jsonexport'
2-
import * as Table from 'cli-table3'
1+
import jsonexport from 'jsonexport'
2+
import Table from 'cli-table3'
33
import * as path from 'path'
44
import * as fs from 'fs'
55
import {cliux, sanitizePath} from '@contentstack/cli-utilities'

packages/contentstack-cli-cm-regex-validate/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"rootDir": "src",
88
"strict": true,
99
"target": "es2017",
10-
"skipLibCheck": true
10+
"skipLibCheck": true,
11+
"esModuleInterop": true,
12+
"composite": true
1113
},
1214
"include": [
1315
"src/**/*"

0 commit comments

Comments
 (0)