Skip to content

Commit

Permalink
refactor(project-utils): user project ts checks by default (#4125)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric authored May 13, 2024
1 parent c977398 commit 290ab53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = options => {
const sourceMaps = options.sourceMaps !== false;

const definitions = overrides.define ? JSON.parse(overrides.define) : {};
const tsChecksEnabled = process.env.WEBINY_ENABLE_TS_CHECKS === "true";
const tsChecksEnabled = process.env.WEBINY_DISABLE_TS_CHECKS !== "true";

return {
entry: [
Expand Down
2 changes: 1 addition & 1 deletion packages/project-utils/bundling/function/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = options => {
const sourceMaps = options.sourceMaps !== false;

const definitions = overrides.define ? JSON.parse(overrides.define) : {};
const tsChecksEnabled = process.env.WEBINY_ENABLE_TS_CHECKS === "true";
const tsChecksEnabled = process.env.WEBINY_DISABLE_TS_CHECKS !== "true";

return {
entry: [
Expand Down
2 changes: 1 addition & 1 deletion packages/serverless-cms-aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"scripts": {
"build": "yarn webiny run build",
"watch": "yarn webiny run watch",
"prepublishOnly": "yarn webiny run buildHandlers"
"prepublishOnly": "WEBINY_DISABLE_TS_CHECKS=true yarn webiny run buildHandlers"
},
"adio": {
"ignoreDirs": [
Expand Down

0 comments on commit 290ab53

Please sign in to comment.