@jungvonmatt/contentful-typings 4.0.1 → 4.0.3
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.
- package/dist/cli.js +0 -4
- package/dist/cli.js.map +1 -1
- package/package.json +4 -5
- package/src/cli.ts +0 -5
package/dist/cli.js
CHANGED
|
@@ -4,11 +4,7 @@ import pico from 'picocolors';
|
|
|
4
4
|
import { logError } from '@jungvonmatt/contentful-ssg/lib/ui';
|
|
5
5
|
import { gracefulExit } from 'exit-hook';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
|
-
import dotenv from 'dotenv';
|
|
8
|
-
import { expand } from 'dotenv-expand';
|
|
9
7
|
import { generateTypings } from './index.js';
|
|
10
|
-
const env = dotenv.config();
|
|
11
|
-
expand(env);
|
|
12
8
|
const errorHandler = (error, silence) => {
|
|
13
9
|
if (!silence) {
|
|
14
10
|
const { errors } = error;
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WA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,EAAE;IACtC,MAAM,MAAM,GAAW,GAAG,EAAE,MAAM,IAAI,EAAE,CAAC;IACzC,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC;QACpC,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE;QAC9B,UAAU,EAAE,GAAG,EAAE,MAAM,IAAI,SAAS;KACrC,CAAC,CAAC;IAEH,MAAM,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,MAAM,EAAE,CAAC,CAAC,CAAC;AAChD,CAAC,CAAC,CACH,CAAC;AAEJ,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jungvonmatt/contentful-typings",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -39,14 +39,13 @@
|
|
|
39
39
|
"homepage": "https://github.com/jungvonmatt/contentful-ssg#readme",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@faker-js/faker": "^8.3.1",
|
|
42
|
-
"@jungvonmatt/contentful-
|
|
42
|
+
"@jungvonmatt/contentful-config": "^4.0.3",
|
|
43
|
+
"@jungvonmatt/contentful-ssg": "^4.0.3",
|
|
43
44
|
"cf-content-types-generator": "^2.16.0",
|
|
44
45
|
"change-case": "^5.4.2",
|
|
45
46
|
"commander": "^11.1.0",
|
|
46
47
|
"contentful": "^11.7.15",
|
|
47
48
|
"contentful-management": "^11.54.4",
|
|
48
|
-
"dotenv": "^16.3.1",
|
|
49
|
-
"dotenv-expand": "^10.0.0",
|
|
50
49
|
"exit-hook": "^4.0.0",
|
|
51
50
|
"fs-extra": "^11.1.0",
|
|
52
51
|
"picocolors": "^1.0.0",
|
|
@@ -58,5 +57,5 @@
|
|
|
58
57
|
"@types/chance": "^1.1.6",
|
|
59
58
|
"ts-morph": "^23.0.0"
|
|
60
59
|
},
|
|
61
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "2eef04a7b29ca4bb2ebfb3192c7f2d0c986ea4ff"
|
|
62
61
|
}
|
package/src/cli.ts
CHANGED
|
@@ -6,13 +6,8 @@ import pico from 'picocolors';
|
|
|
6
6
|
import { logError } from '@jungvonmatt/contentful-ssg/lib/ui';
|
|
7
7
|
import { gracefulExit } from 'exit-hook';
|
|
8
8
|
import { Command } from 'commander';
|
|
9
|
-
import dotenv from 'dotenv';
|
|
10
|
-
import { expand } from 'dotenv-expand';
|
|
11
9
|
import { generateTypings } from './index.js';
|
|
12
10
|
|
|
13
|
-
const env = dotenv.config();
|
|
14
|
-
expand(env);
|
|
15
|
-
|
|
16
11
|
type CommandArgs = {
|
|
17
12
|
output: string;
|
|
18
13
|
typeguard?: boolean;
|