Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/ninety-experts-ring.md
Original file line number Diff line number Diff line change
@@ -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:^
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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


1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tsconfig.tsbuildinfo
/dist
/build
/out
**/_release

# tests
/coverage
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/cache-interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@",
Expand Down
5 changes: 5 additions & 0 deletions packages/cache-ioredis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@",
Expand Down
5 changes: 5 additions & 0 deletions packages/cache-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@",
Expand Down
2 changes: 2 additions & 0 deletions packages/dsn-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@",
Expand Down