diff --git a/apps/silverback-website/package.json b/apps/silverback-website/package.json index 6ad973cf3..8dde7f60d 100644 --- a/apps/silverback-website/package.json +++ b/apps/silverback-website/package.json @@ -31,7 +31,6 @@ }, "devDependencies": { "@amazeelabs/eslint-config-react": "^1.0.7", - "@amazeelabs/gatsby-theme-core": "^0.4.0", "@amazeelabs/jest-preset-react": "^1.1.1", "@amazeelabs/prettier-config": "^1.1.0", "@graphql-codegen/cli": "1.19.2", @@ -61,7 +60,7 @@ "clean": "gatsby clean", "update-schema": "GATSBY_UPDATE_SCHEMA_SNAPSHOT=true gatsby build", "codegen": "graphql-codegen --config codegen.yml", - "test:ci": "jest", + "test:ci": "jest && yarn codegen && yarn tsc && yarn build", "test:watch": "jest --watch", "test": "is-ci test:ci test:watch", "storybook": "start-storybook -p 6006", diff --git a/packages/npm/@amazeelabs/gatsby-theme-core/package.json b/packages/npm/@amazeelabs/gatsby-theme-core/package.json index b40fbab91..df9e734ae 100644 --- a/packages/npm/@amazeelabs/gatsby-theme-core/package.json +++ b/packages/npm/@amazeelabs/gatsby-theme-core/package.json @@ -44,6 +44,7 @@ "lint": "eslint \"**/*.{js,jsx,ts,tsx}\"", "lint:fix": "eslint --fix \"**/*.{js,jsx,ts,tsx}\"", "prepare": "tsc -p ./", + "postinstall": "yarn prepare", "test": "is-ci test:ci test:watch", "test:ci": "jest", "test:watch": "jest --watch" diff --git a/packages/npm/@amazeelabs/react-di/package.json b/packages/npm/@amazeelabs/react-di/package.json index 906887a31..9a1359976 100644 --- a/packages/npm/@amazeelabs/react-di/package.json +++ b/packages/npm/@amazeelabs/react-di/package.json @@ -14,6 +14,7 @@ }, "scripts": { "build": "tsc", + "postinstall": "yarn build", "prepublish": "tsc", "test:ci": "jest", "test:watch": "jest --watch",