Skip to content

Commit 7726e93

Browse files
author
naman-contentstack
committed
updated description and deps
1 parent 2ef043b commit 7726e93

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

jest.config.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
module.exports = {
2-
"roots": [
3-
"<rootDir>"
4-
],
5-
"testMatch": [
6-
"**/tests/**/*.+(ts|tsx)",
7-
"**/?(*.)+(spec|test).+(ts|tsx)"
8-
],
9-
"transform": {
10-
"^.+\\.(ts|tsx)$": "ts-jest"
2+
preset: "ts-jest",
3+
testEnvironment: "node",
4+
roots: ["<rootDir>"],
5+
testMatch: ["**/tests/**/*.+(ts|tsx)", "**/?(*.)+(spec|test).+(ts|tsx)"],
6+
transform: {
7+
"^.+\\.(ts|tsx)$": "ts-jest",
118
},
12-
}
9+
};

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "contentstack-cli-tsgen",
33
"description": "Generate TypeScript typings from a Stack.",
4-
"version": "4.4.0",
4+
"version": "4.5.0",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {
@@ -14,7 +14,7 @@
1414
"@oclif/plugin-help": "^6.2.27",
1515
"@oclif/test": "^4.1.12",
1616
"@types/jest": "^29.5.14",
17-
"@types/node": "^22.14.0",
17+
"@types/node": "^22.17.1",
1818
"@typescript-eslint/eslint-plugin": "^8.29.1",
1919
"@typescript-eslint/parser": "^8.29.1",
2020
"eslint": "^8.57.0",

src/commands/tsgen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
9494
}),
9595

9696
"include-referenced-entry": flags.boolean({
97-
description: "include ReferencedEntry interface in generated types",
97+
description:
98+
"Includes the ReferencedEntry interface in generated types. Use this option to add a generic interface for handling referenced entries when the exact content type is unknown or when you need a flexible reference type",
9899
default: false,
99100
allowNo: true,
100101
}),

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
"declaration": true,
44
"importHelpers": true,
55
"module": "commonjs",
6+
"moduleResolution": "node",
67
"outDir": "lib",
7-
"rootDir": "src",
88
"strict": true,
99
"target": "es2017",
1010
"skipLibCheck": true,
1111
"resolveJsonModule": true,
12+
"types": ["node", "jest"]
1213
},
1314
"include": [
14-
"src/**/*"
15+
"src/**/*",
16+
"tests/**/*"
1517
]
1618
}

0 commit comments

Comments
 (0)