@strapi/typescript-utils 0.0.0-next.c8d6478ec519888ce0cd754886474c3189efc733 → 0.0.0-next.d08e60ce27fb0ebcae796c0c29862c4135d1acb8
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.
|
@@ -16,7 +16,7 @@ const { addImport } = require('../../../generators/common/imports');
|
|
|
16
16
|
// TODO: emit definition (to a string) & also check snapshots based on that. It would allow checking both the structure & the output.
|
|
17
17
|
describe('Attributes', () => {
|
|
18
18
|
afterEach(() => {
|
|
19
|
-
jest.
|
|
19
|
+
jest.clearAllMocks();
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
describe('Attribute to Property Signature', () => {
|
package/lib/generators/utils.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const assert = require('assert');
|
|
3
5
|
const ts = require('typescript');
|
|
4
6
|
const prettier = require('prettier');
|
|
5
7
|
const fse = require('fs-extra');
|
|
6
|
-
const path = require('path');
|
|
7
8
|
const chalk = require('chalk');
|
|
8
|
-
const assert = require('assert');
|
|
9
9
|
|
|
10
10
|
const { factory } = ts;
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/typescript-utils",
|
|
3
|
-
"version": "0.0.0-next.
|
|
3
|
+
"version": "0.0.0-next.d08e60ce27fb0ebcae796c0c29862c4135d1acb8",
|
|
4
4
|
"description": "Typescript support for Strapi",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git://github.com/strapi/strapi.git",
|
|
8
|
+
"directory": "packages/utils/typescript"
|
|
9
|
+
},
|
|
5
10
|
"keywords": [
|
|
6
11
|
"strapi",
|
|
7
12
|
"generators"
|
|
@@ -32,14 +37,14 @@
|
|
|
32
37
|
"dependencies": {
|
|
33
38
|
"chalk": "4.1.2",
|
|
34
39
|
"cli-table3": "0.6.2",
|
|
35
|
-
"fs-extra": "10.0.
|
|
40
|
+
"fs-extra": "10.0.0",
|
|
36
41
|
"lodash": "4.17.21",
|
|
37
42
|
"prettier": "2.8.4",
|
|
38
43
|
"typescript": "5.1.3"
|
|
39
44
|
},
|
|
40
45
|
"engines": {
|
|
41
|
-
"node": ">=
|
|
46
|
+
"node": ">=16.0.0 <=20.x.x",
|
|
42
47
|
"npm": ">=6.0.0"
|
|
43
48
|
},
|
|
44
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d08e60ce27fb0ebcae796c0c29862c4135d1acb8"
|
|
45
50
|
}
|
package/tsconfigs/admin.json
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"module": "ES2020",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"lib": ["ES2020", "DOM"],
|
|
8
|
-
"target": "ES5",
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
9
3
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"allowSyntheticDefaultImports": true,
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
|
|
14
|
+
"noImplicitAny": false,
|
|
15
|
+
"strict": true,
|
|
16
|
+
"allowJs": true,
|
|
17
|
+
"sourceMap": true,
|
|
18
|
+
"incremental": true,
|
|
19
|
+
"skipLibCheck": true,
|
|
20
|
+
|
|
21
|
+
"jsx": "react-jsx"
|
|
22
|
+
}
|
|
23
|
+
}
|