diff --git a/ibexa/commerce/5.0/encore/ibexa.tsconfig.custom.json b/ibexa/commerce/5.0/encore/ibexa.tsconfig.custom.json new file mode 100644 index 00000000..158a991f --- /dev/null +++ b/ibexa/commerce/5.0/encore/ibexa.tsconfig.custom.json @@ -0,0 +1,3 @@ +{ + "extends": "@ibexa/ts-config" +} diff --git a/ibexa/commerce/5.0/encore/ibexa.webpack.config.js b/ibexa/commerce/5.0/encore/ibexa.webpack.config.js index 563e4731..0012e239 100644 --- a/ibexa/commerce/5.0/encore/ibexa.webpack.config.js +++ b/ibexa/commerce/5.0/encore/ibexa.webpack.config.js @@ -16,6 +16,9 @@ module.exports = (Encore) => { 'prop-types': 'PropTypes', }) .enableSassLoader() + .enableTypeScriptLoader((tsConfig) => { + tsConfig.configFile = path.resolve(__dirname, 'ibexa.tsconfig.custom.json'); + }) .enableReactPreset() .enableSingleRuntimeChunk(); diff --git a/ibexa/commerce/5.0/encore/package.json b/ibexa/commerce/5.0/encore/package.json index 8848a124..807cf389 100644 --- a/ibexa/commerce/5.0/encore/package.json +++ b/ibexa/commerce/5.0/encore/package.json @@ -21,11 +21,16 @@ "@ckeditor/ckeditor5-widget": "^40.1.0", "@ckeditor/ckeditor5-theme-lark": "^40.1.0", "@ckeditor/ckeditor5-code-block": "^40.1.0", - "@svgr/webpack": "^8.1.0" + "@svgr/webpack": "^8.1.0", + "ts-loader": "^9.5.1", + "@types/react": "^18.3.11", + "@types/react-dom": "^18.3.1", + "typescript": "^5.6.3", + "@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa" }, "dependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "license": "UNLICENSED", "private": true, diff --git a/ibexa/experience/5.0/encore/ibexa.tsconfig.custom.json b/ibexa/experience/5.0/encore/ibexa.tsconfig.custom.json new file mode 100644 index 00000000..158a991f --- /dev/null +++ b/ibexa/experience/5.0/encore/ibexa.tsconfig.custom.json @@ -0,0 +1,3 @@ +{ + "extends": "@ibexa/ts-config" +} diff --git a/ibexa/experience/5.0/encore/ibexa.webpack.config.js b/ibexa/experience/5.0/encore/ibexa.webpack.config.js index 563e4731..0012e239 100644 --- a/ibexa/experience/5.0/encore/ibexa.webpack.config.js +++ b/ibexa/experience/5.0/encore/ibexa.webpack.config.js @@ -16,6 +16,9 @@ module.exports = (Encore) => { 'prop-types': 'PropTypes', }) .enableSassLoader() + .enableTypeScriptLoader((tsConfig) => { + tsConfig.configFile = path.resolve(__dirname, 'ibexa.tsconfig.custom.json'); + }) .enableReactPreset() .enableSingleRuntimeChunk(); diff --git a/ibexa/experience/5.0/encore/package.json b/ibexa/experience/5.0/encore/package.json index 8848a124..807cf389 100644 --- a/ibexa/experience/5.0/encore/package.json +++ b/ibexa/experience/5.0/encore/package.json @@ -21,11 +21,16 @@ "@ckeditor/ckeditor5-widget": "^40.1.0", "@ckeditor/ckeditor5-theme-lark": "^40.1.0", "@ckeditor/ckeditor5-code-block": "^40.1.0", - "@svgr/webpack": "^8.1.0" + "@svgr/webpack": "^8.1.0", + "ts-loader": "^9.5.1", + "@types/react": "^18.3.11", + "@types/react-dom": "^18.3.1", + "typescript": "^5.6.3", + "@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa" }, "dependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "license": "UNLICENSED", "private": true, diff --git a/ibexa/headless/5.0/encore/ibexa.tsconfig.custom.json b/ibexa/headless/5.0/encore/ibexa.tsconfig.custom.json new file mode 100644 index 00000000..158a991f --- /dev/null +++ b/ibexa/headless/5.0/encore/ibexa.tsconfig.custom.json @@ -0,0 +1,3 @@ +{ + "extends": "@ibexa/ts-config" +} diff --git a/ibexa/headless/5.0/encore/ibexa.webpack.config.js b/ibexa/headless/5.0/encore/ibexa.webpack.config.js index 563e4731..0012e239 100644 --- a/ibexa/headless/5.0/encore/ibexa.webpack.config.js +++ b/ibexa/headless/5.0/encore/ibexa.webpack.config.js @@ -16,6 +16,9 @@ module.exports = (Encore) => { 'prop-types': 'PropTypes', }) .enableSassLoader() + .enableTypeScriptLoader((tsConfig) => { + tsConfig.configFile = path.resolve(__dirname, 'ibexa.tsconfig.custom.json'); + }) .enableReactPreset() .enableSingleRuntimeChunk(); diff --git a/ibexa/headless/5.0/encore/package.json b/ibexa/headless/5.0/encore/package.json index 45ab3163..807cf389 100644 --- a/ibexa/headless/5.0/encore/package.json +++ b/ibexa/headless/5.0/encore/package.json @@ -21,7 +21,16 @@ "@ckeditor/ckeditor5-widget": "^40.1.0", "@ckeditor/ckeditor5-theme-lark": "^40.1.0", "@ckeditor/ckeditor5-code-block": "^40.1.0", - "@svgr/webpack": "^8.1.0" + "@svgr/webpack": "^8.1.0", + "ts-loader": "^9.5.1", + "@types/react": "^18.3.11", + "@types/react-dom": "^18.3.1", + "typescript": "^5.6.3", + "@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa" + }, + "dependencies": { + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "license": "UNLICENSED", "private": true, diff --git a/ibexa/oss/5.0/encore/ibexa.tsconfig.custom.json b/ibexa/oss/5.0/encore/ibexa.tsconfig.custom.json new file mode 100644 index 00000000..158a991f --- /dev/null +++ b/ibexa/oss/5.0/encore/ibexa.tsconfig.custom.json @@ -0,0 +1,3 @@ +{ + "extends": "@ibexa/ts-config" +} diff --git a/ibexa/oss/5.0/encore/ibexa.webpack.config.js b/ibexa/oss/5.0/encore/ibexa.webpack.config.js index 563e4731..0012e239 100644 --- a/ibexa/oss/5.0/encore/ibexa.webpack.config.js +++ b/ibexa/oss/5.0/encore/ibexa.webpack.config.js @@ -16,6 +16,9 @@ module.exports = (Encore) => { 'prop-types': 'PropTypes', }) .enableSassLoader() + .enableTypeScriptLoader((tsConfig) => { + tsConfig.configFile = path.resolve(__dirname, 'ibexa.tsconfig.custom.json'); + }) .enableReactPreset() .enableSingleRuntimeChunk(); diff --git a/ibexa/oss/5.0/encore/package.json b/ibexa/oss/5.0/encore/package.json index 8f805b68..fa86a4b3 100644 --- a/ibexa/oss/5.0/encore/package.json +++ b/ibexa/oss/5.0/encore/package.json @@ -20,7 +20,16 @@ "@ckeditor/ckeditor5-widget": "^40.1.0", "@ckeditor/ckeditor5-theme-lark": "^40.1.0", "@ckeditor/ckeditor5-code-block": "^40.1.0", - "@svgr/webpack": "^8.1.0" + "@svgr/webpack": "^8.1.0", + "ts-loader": "^9.5.1", + "@types/react": "^18.3.11", + "@types/react-dom": "^18.3.1", + "typescript": "^5.6.3", + "@ibexa/ts-config": "https://github.com/ibexa/ts-config-ibexa" + }, + "dependencies": { + "react": "^18.3.1", + "react-dom": "^18.3.1" }, "license": "UNLICENSED", "private": true,