Skip to content

Commit f2fdb8d

Browse files
authored
fix(release): Issue when realeasing with Turbo (#99)
1 parent 7d3bf62 commit f2fdb8d

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
node-version-file: '.nvmrc'
2424
cache: yarn
2525
- run: yarn install --immutable
26-
- run: yarn release
26+
- run: yarn build
27+
- run: cd package/ && yarn release
2728
env:
2829
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2930
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"compile": "turbo run compile",
2020
"docs": "yarn workspace @stackbuilders/assertive-ts docs",
2121
"lint": "eslint .",
22-
"release": "turbo release --filter=@stackbuilders/assertive-ts",
2322
"test": "turbo run test"
2423
},
2524
"devDependencies": {

package/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,19 @@
1616
"main": "./dist/index.js",
1717
"types": "./dist/index.d.ts",
1818
"files": [
19-
"dist/"
19+
"dist/",
20+
"src/"
2021
],
2122
"engines": {
22-
"node": ">=16 <=19"
23+
"node": ">=16"
2324
},
2425
"scripts": {
2526
"build": "tsc -p tsconfig.prod.json",
2627
"check": "yarn compile && yarn test --forbid-only",
2728
"compile": "tsc -p tsconfig.json",
2829
"docs": "typedoc",
2930
"release": "semantic-release",
30-
"test": "cross-env NODE_ENV=test TS_NODE_TRANSPILE_ONLY=true mocha"
31+
"test": "cross-env NODE_ENV=test mocha"
3132
},
3233
"dependencies": {
3334
"@cometlib/dedent": "^0.8.0-es.10",

package/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
"exclude": [
88
"build/*",
99
"dist/*"
10-
]
10+
],
11+
"ts-node": {
12+
"transpileOnly": true
13+
}
1114
}

turbo.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
"dependsOn": ["^build"],
1919
"inputs": ["src/**/*.ts", "test/**/*.ts"],
2020
"outputs": []
21-
},
22-
"release": {
23-
"cache": false,
24-
"dependsOn": ["^build"]
2521
}
2622
}
2723
}

0 commit comments

Comments
 (0)