diff --git a/packages/blueprints/package.json b/packages/blueprints/package.json index d4302ac10..c07fb9d8b 100644 --- a/packages/blueprints/package.json +++ b/packages/blueprints/package.json @@ -38,7 +38,7 @@ "prettier": "^2.1.2", "ts-node": "^9.0.0", "tslib": "^2.1.0", - "typescript": "4.1.2" + "typescript": "4.9.5" }, "dependencies": { "pro-gallery-lib": "5.0.43", diff --git a/packages/gallery/package.json b/packages/gallery/package.json index b4f9b9526..e7c25f2e3 100644 --- a/packages/gallery/package.json +++ b/packages/gallery/package.json @@ -75,7 +75,7 @@ "sinon": "^6.0.0", "ts-jest": "^26.4.4", "tslib": "^2.1.0", - "typescript": "4.1.2" + "typescript": "4.9.5" }, "publishConfig": { "registry": "https://registry.npmjs.org/" diff --git a/packages/gallery/src/components/gallery/index.tsx b/packages/gallery/src/components/gallery/index.tsx index 6d8bccaff..3d0a2bc8e 100644 --- a/packages/gallery/src/components/gallery/index.tsx +++ b/packages/gallery/src/components/gallery/index.tsx @@ -102,17 +102,17 @@ class Gallery extends React.Component { } async componentDidMount() { - if (shouldValidate(this.props, utils.isSSR()) === false) { - return; - } - const validateTypesModule = await import( - /* webpackChunkName: "proGallery_validateTypes" */ './typeValidator/validateTypes' - ); - const { validate, typeErrorsUI } = validateTypesModule; - const typeErrors = validate(this.state.blueprint.options); - if (typeErrors.length > 0) { - this.setState({ typeErrors: typeErrorsUI(typeErrors) }); - } + // if (shouldValidate(this.props, utils.isSSR()) === false) { + // return; + // } + // const validateTypesModule = await import( + // /* webpackChunkName: "proGallery_validateTypes" */ './typeValidator/validateTypes' + // ); + // const { validate, typeErrorsUI } = validateTypesModule; + // const typeErrors = validate(this.state.blueprint.options); + // if (typeErrors.length > 0) { + // this.setState({ typeErrors: typeErrorsUI(typeErrors) }); + // } } } diff --git a/packages/layouts/package.json b/packages/layouts/package.json index d0285425e..102aeac97 100644 --- a/packages/layouts/package.json +++ b/packages/layouts/package.json @@ -37,7 +37,7 @@ "prettier": "^2.1.2", "ts-node": "^9.0.0", "tslib": "^2.1.0", - "typescript": "4.1.2" + "typescript": "4.9.5" }, "publishConfig": { "registry": "https://registry.npmjs.org/" diff --git a/packages/lib/package.json b/packages/lib/package.json index ef53375a8..202e63ca7 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -20,7 +20,7 @@ "scripts": { "watch": "tsc -w", "start": "tsc -w -p tsconfig-dev.json", - "build": "npm run generateValidationFunction && tsc && tsc -p tsconfig-esm.json", + "build": "tsc && tsc -p tsconfig-esm.json", "generateValidationFunction": "node buildScripts/buildRuntimeValidateFunctionFromTypes.js", "unit": "mocha --require ts-node/register test/*.spec.*", "test": "echo 'no test in wix CI'", @@ -41,7 +41,7 @@ "prettier": "^2.1.2", "ts-node": "^9.0.0", "tslib": "^2.1.0", - "typescript": "4.1.2", + "typescript": "4.9.5", "typescript-json-schema": "^0.50.1" }, "publishConfig": {