diff --git a/.changeset/ninety-experts-ring.md b/.changeset/ninety-experts-ring.md new file mode 100644 index 00000000..9fdf4c49 --- /dev/null +++ b/.changeset/ninety-experts-ring.md @@ -0,0 +1,8 @@ +--- +'@soluble/cache-interop': patch +'@soluble/cache-ioredis': patch +'@soluble/cache-redis': patch +'@soluble/dsn-parser': patch +--- + +Fix changeset publishing with workspace:^ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ae6904e..8495c164 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,9 @@ jobs: bash <(curl -s https://codecov.io/bash) -F e2e -s ./packages/cache-e2e-tests/coverage - name: build + # Till https://github.com/atlassian/changesets/issues/432 has a solution we can remove this + # custom step and replace with a regular build command run: | - yarn build + yarn build-publishable-release diff --git a/.gitignore b/.gitignore index 2cf75a49..876573f2 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ tsconfig.tsbuildinfo /dist /build /out +**/_release # tests /coverage diff --git a/package.json b/package.json index b18c06d4..f03a0e8e 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ }, "scripts": { "postinstall": "is-ci || husky install", - "build": "yarn workspaces foreach -ptv run build", + "?build-publishable-release": "When https://github.com/atlassian/changesets/issues/432 has a solution we can remove this trick", + "build-publishable-release": "yarn workspaces foreach -tv run build-publishable-release", "clean": "yarn workspaces foreach -ptv run clean", "test": "run-s 'test:*'", "test:unit": "yarn workspaces foreach -ptv --exclude '@soluble/*e2e*' --exclude 'cache-interop-docs' run test:unit", diff --git a/packages/cache-interop/package.json b/packages/cache-interop/package.json index 161e4506..137339a1 100644 --- a/packages/cache-interop/package.json +++ b/packages/cache-interop/package.json @@ -32,6 +32,8 @@ "scripts": { "start": "cross-env NODE_ENV=development tsdx watch", "build": "cross-env NODE_ENV=production microbundle --tsconfig ./tsconfig.build.json --target node --compress", + "?build-publishable-release": "When https://github.com/atlassian/changesets/issues/432 has a solution we can remove this trick", + "build-publishable-release": "yarn build", "clean": "rimraf --no-glob ./dist ./build ./coverage ./out", "test": "run-s test:* --", "test:unit": "jest --config jest.config.js --color $@", diff --git a/packages/cache-ioredis/package.json b/packages/cache-ioredis/package.json index 662092b2..46649dc4 100644 --- a/packages/cache-ioredis/package.json +++ b/packages/cache-ioredis/package.json @@ -29,9 +29,14 @@ "dist" ], "sideEffects": false, + "publishConfig": { + "directory": "_release/package" + }, "scripts": { "start": "cross-env NODE_ENV=development tsdx watch", "build": "cross-env NODE_ENV=production microbundle --tsconfig tsconfig.build.json --target node --compress", + "?build-publishable-release": "When https://github.com/atlassian/changesets/issues/432 has a solution we can remove this trick", + "build-publishable-release": "yarn build && rimraf ./_release && yarn pack && mkdir ./_release && tar zxvf ./package.tgz --directory ./_release && rm ./package.tgz", "clean": "rimraf --no-glob ./dist ./build ./coverage ./out", "test": "run-s test:unit -- {@}", "test:unit": "jest --config jest.config.js --color $@", diff --git a/packages/cache-redis/package.json b/packages/cache-redis/package.json index 6a8d7e40..90212105 100644 --- a/packages/cache-redis/package.json +++ b/packages/cache-redis/package.json @@ -30,9 +30,14 @@ "dist" ], "sideEffects": false, + "publishConfig": { + "directory": "_release/package" + }, "scripts": { "start": "cross-env NODE_ENV=development tsdx watch", "build": "cross-env NODE_ENV=production microbundle --tsconfig tsconfig.build.json --target node --compress", + "?build-publishable-release": "When https://github.com/atlassian/changesets/issues/432 has a solution we can remove this trick", + "build-publishable-release": "yarn build && rimraf ./_release && yarn pack && mkdir ./_release && tar zxvf ./package.tgz --directory ./_release && rm ./package.tgz", "clean": "rimraf --no-glob ./dist ./build ./coverage ./out", "test": "run-s test:unit -- {@}", "test:unit": "jest --config jest.config.js --color $@", diff --git a/packages/dsn-parser/package.json b/packages/dsn-parser/package.json index 53295aa8..92b8cfc5 100644 --- a/packages/dsn-parser/package.json +++ b/packages/dsn-parser/package.json @@ -35,6 +35,8 @@ "scripts": { "start": "cross-env NODE_ENV=development tsdx watch", "build": "cross-env NODE_ENV=production microbundle --tsconfig tsconfig.build.json --target node --compress", + "?build-publishable-release": "When https://github.com/atlassian/changesets/issues/432 has a solution we can remove this trick", + "build-publishable-release": "yarn build", "clean": "rimraf --no-glob ./dist ./build ./coverage ./out", "test": "run-s test:unit -- {@}", "test:unit": "jest --config jest.config.js --color $@",