Skip to content

Commit

Permalink
build: bring lerna back
Browse files Browse the repository at this point in the history
  • Loading branch information
raveclassic committed Dec 28, 2021
1 parent 464bc11 commit bef9614
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"test": "nx run-many --target=test --all --parallel",
"typedoc": "typedoc && cp jekyll_config.yml docs/_config.yml",
"version": "yarn typedoc && git add docs",
"postversion": "pnpm build"
"deploy": "nx run-many --target=deploy --all"
},
"private": true,
"devDependencies": {
Expand Down Expand Up @@ -59,6 +59,7 @@
"husky": "^4.2.5",
"jest": "^27.3.1",
"lerna": "^4.0.0",
"ngx-deploy-npm": "^3.0.7",
"prettier": "^2.0.4",
"ts-jest": "^27.0.7",
"ts-node": "^10.3.1",
Expand Down
6 changes: 6 additions & 0 deletions packages/core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"passWithNoTests": true,
"codeCoverage": true
}
},
"deploy": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"tags": []
Expand Down
6 changes: 6 additions & 0 deletions packages/fp-ts/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"passWithNoTests": true,
"codeCoverage": true
}
},
"deploy": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"tags": []
Expand Down
6 changes: 6 additions & 0 deletions packages/lens/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"passWithNoTests": true,
"codeCoverage": true
}
},
"deploy": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"tags": []
Expand Down
6 changes: 6 additions & 0 deletions packages/react/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"passWithNoTests": true,
"codeCoverage": true
}
},
"deploy": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"tags": []
Expand Down
6 changes: 6 additions & 0 deletions packages/test-utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"passWithNoTests": true,
"codeCoverage": true
}
},
"deploy": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"tags": []
Expand Down
6 changes: 6 additions & 0 deletions packages/utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"passWithNoTests": true,
"codeCoverage": true
}
},
"deploy": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
}
}
},
"tags": []
Expand Down
57 changes: 57 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,17 @@ This means that subpackages are built into a single directory `/dist`.

### Publishing

This repository uses [lerna](https://github.com/lerna/lerna) **ONLY** for bumping versions
until it's supported natively by [nx](https://nx.dev/).

Make sure **NOT** to call `lerna bootstrap` and other commands.

```shell
lerna version <version>
lerna publish from-package
```

or simply (if you are absolutely sure)
Then

```shell
lerna publish <version>
pnpm deploy
```
22 changes: 22 additions & 0 deletions scripts/lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"packages": [
"./packages/core",
"./packages/lens",
"./packages/fp-ts",
"./packages/react",
"./packages/test-utils",
"./packages/utils"
],
"version": "1.0.0-alpha.8",
"npmClient": "pnpm",
"useWorkspaces": true,
"command": {
"publish": {
"conventionalCommits": true
},
"version": {
"push": false,
"conventionalCommits": true
}
}
}

0 comments on commit bef9614

Please sign in to comment.