diff --git a/package.json b/package.json index 4b35315f6c7..b2f86925351 100644 --- a/package.json +++ b/package.json @@ -35,10 +35,8 @@ "type-check": "tsc --build", "changeset": "changeset", "gen-assets": "turbo run gen-assets --filter=polaris.shopify.com", - "preversion-packages": "node scripts/preversion.js", - "version-packages": "yarn preversion-packages && changeset version", + "version-packages": "changeset version", "release": "turbo run build --filter='!polaris.shopify.com' && changeset publish", - "preversion": "echo \"Error: use @changsets/cli to version packages\" && exit 1", "new-migration": "yarn workspace @shopify/polaris-migrator generate", "postinstall": "patch-package" }, diff --git a/scripts/preversion.js b/scripts/preversion.js deleted file mode 100644 index ef3bec876b8..00000000000 --- a/scripts/preversion.js +++ /dev/null @@ -1,24 +0,0 @@ -const {execSync} = require('child_process'); - -const getReleasePlan = require('@changesets/get-release-plan').default; - -const run = async () => { - const {releases} = await getReleasePlan(process.cwd()); - const packages = releases.map((release) => release.name); - - const execOpts = {stdio: 'inherit'}; - execSync( - `yarn turbo run preversion ${packages - .map((pkg) => `--filter=${pkg}`) - .join(' ')}`, - execOpts, - ); -}; - -try { - run(); -} catch (err) { - // eslint-disable-next-line no-console - console.error(err); - process.exit(1); -} diff --git a/turbo.json b/turbo.json index 6b452749cc7..e3fe109ea7c 100644 --- a/turbo.json +++ b/turbo.json @@ -3,15 +3,24 @@ "baseBranch": "origin/main", "pipeline": { "build": { - "outputs": ["dist/**", ".next/**", "build/**", ".cache/**"], - "dependsOn": ["^build"] + "outputs": [ + "dist/**", + ".next/**", + "build/**", + ".cache/**" + ], + "dependsOn": [ + "^build" + ] }, "test": { "outputs": [], "dependsOn": [] }, "lint": { - "outputs": [".eslintcache"] + "outputs": [ + ".eslintcache" + ] }, "dev": { "cache": false @@ -19,9 +28,6 @@ "clean": { "cache": false }, - "preversion": { - "cache": false - }, "gen-assets": { "cache": false }