@strapi/typescript-utils 0.0.0-next.d2c02ba7d58eb81b8c45c3d12076d6413ecde204 → 0.0.0-next.d482633e774699cc8d4e05531deaeb6001e791cd

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
  };
@@ -87,6 +87,9 @@ module.exports = {
87
87
  json() {
88
88
  return [withAttributeNamespace('JSON')];
89
89
  },
90
+ blocks() {
91
+ return [withAttributeNamespace('Blocks')];
92
+ },
90
93
  media() {
91
94
  return [withAttributeNamespace('Media')];
92
95
  },
@@ -92,7 +92,7 @@ const generateSharedExtensionDefinition = (registry, definitions) => {
92
92
 
93
93
  return factory.createModuleDeclaration(
94
94
  [factory.createModifier(ts.SyntaxKind.DeclareKeyword)],
95
- factory.createStringLiteral('@strapi/strapi', true),
95
+ factory.createStringLiteral('@strapi/types', true),
96
96
  factory.createModuleBlock([
97
97
  factory.createModuleDeclaration(
98
98
  [factory.createModifier(ts.SyntaxKind.ExportKeyword)],
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@strapi/typescript-utils",
3
- "version": "0.0.0-next.d2c02ba7d58eb81b8c45c3d12076d6413ecde204",
3
+ "version": "0.0.0-next.d482633e774699cc8d4e05531deaeb6001e791cd",
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": "d2c02ba7d58eb81b8c45c3d12076d6413ecde204"
49
+ "gitHead": "d482633e774699cc8d4e05531deaeb6001e791cd"
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
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
-
3
+
4
4
  "compilerOptions": {
5
5
  "module": "CommonJS",
6
6
  "moduleResolution": "Node",
@@ -14,6 +14,7 @@
14
14
  "incremental": true,
15
15
  "esModuleInterop": true,
16
16
  "resolveJsonModule": true,
17
- "noEmitOnError": true
17
+ "noEmitOnError": true,
18
+ "noImplicitThis": true
18
19
  }
19
- }
20
+ }