@strapi/typescript-utils 4.15.0-alpha.0 → 4.15.1

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.
@@ -2,25 +2,11 @@
2
2
 
3
3
  const path = require('path');
4
4
  const fs = require('fs-extra');
5
+ const adminTsConfig = require('../../tsconfigs/admin.json');
5
6
 
6
7
  module.exports = async (dest) => {
7
8
  const tsConfig = {
8
- compilerOptions: {
9
- lib: ['es2019', 'es2020.promise', 'es2020.bigint', 'es2020.string', 'DOM'],
10
- noImplicitAny: false,
11
- module: 'es2020',
12
- target: 'es5',
13
- jsx: 'react',
14
- allowJs: true,
15
- strict: true,
16
- moduleResolution: 'node',
17
- skipLibCheck: true,
18
- esModuleInterop: true,
19
- allowSyntheticDefaultImports: true,
20
- resolveJsonModule: true,
21
- noEmit: false,
22
- incremental: true,
23
- },
9
+ ...adminTsConfig,
24
10
  include: ['../../../src/admin/*', '../../../src/**/**/admin/src/*'],
25
11
  exclude: ['node_modules', '**/*.test.js', '*.js'],
26
12
  };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@strapi/typescript-utils",
3
- "version": "4.15.0-alpha.0",
3
+ "version": "4.15.1",
4
4
  "description": "Typescript support for Strapi",
5
+ "keywords": [
6
+ "strapi",
7
+ "generators"
8
+ ],
5
9
  "repository": {
6
10
  "type": "git",
7
11
  "url": "git://github.com/strapi/strapi.git",
8
12
  "directory": "packages/utils/typescript"
9
13
  },
10
- "keywords": [
11
- "strapi",
12
- "generators"
13
- ],
14
14
  "license": "SEE LICENSE IN LICENSE",
15
15
  "author": {
16
16
  "name": "Strapi Solutions SAS",
@@ -43,8 +43,8 @@
43
43
  "typescript": "5.2.2"
44
44
  },
45
45
  "engines": {
46
- "node": ">=16.0.0 <=20.x.x",
46
+ "node": ">=18.0.0 <=20.x.x",
47
47
  "npm": ">=6.0.0"
48
48
  },
49
- "gitHead": "682a070df9ef90f2aa6966666488e066d61831e2"
49
+ "gitHead": "b6c085052f108fcfe47d22972a664dfa85aa0358"
50
50
  }
@@ -1,23 +1,19 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
-
4
3
  "compilerOptions": {
5
4
  "target": "ESNext",
6
5
  "module": "ESNext",
7
- "lib": ["dom", "dom.iterable", "esnext"],
8
-
9
- "moduleResolution": "node",
6
+ "moduleResolution": "Bundler",
7
+ "useDefineForClassFields": true,
8
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
9
+ "allowJs": false,
10
+ "skipLibCheck": true,
11
+ "esModuleInterop": true,
10
12
  "allowSyntheticDefaultImports": true,
11
- "resolveJsonModule": true,
12
- "isolatedModules": true,
13
-
14
- "noImplicitAny": false,
15
13
  "strict": true,
16
- "allowJs": true,
17
- "sourceMap": true,
18
- "incremental": true,
19
- "skipLibCheck": true,
20
-
14
+ "forceConsistentCasingInFileNames": true,
15
+ "resolveJsonModule": true,
16
+ "noEmit": true,
21
17
  "jsx": "react-jsx"
22
18
  }
23
19
  }