Skip to content

Commit e4c0b5b

Browse files
authored
Publish treeche-core into npmjs registry (#9)
* Fix each package.json * fix: publish commnds * Bump version * Expose binary entrypoint from node-cli * Bump version * Update lockfile
1 parent 97b1af4 commit e4c0b5b

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

.github/workflows/build-and-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ jobs:
3838
- name: publish
3939
working-directory: ./packages/node-cli
4040
run: |
41-
npx can-npm-publish --verbose && npm publish || echo "Does not publish"
41+
npx can-npm-publish --verbose && pnpm publish-modules || echo "Does not publish"
4242
env:
4343
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
22
"name": "treeche-monorepo-root",
3-
"version": "0.1.5",
3+
"version": "0.1.8",
44
"description": "Tree-Shakable checker for you JavaScript/TypeScript application",
55
"main": "lib/main.js",
66
"bin": "lib/main.js",
77
"type": "module",
88
"scripts": {
99
"build": "pnpm --filter '*' build",
1010
"build:check": "pnpm --filter '*' build:check",
11-
"publish:node-cli": "pnpm --filter ./packages/node-cli publish",
11+
"publish-modules": "pnpm --filter '*' publish-module",
1212
"test": "pnpm --filter ./packages/tests test"
1313
},
1414
"repository": {
1515
"type": "git",
1616
"url": "git+https://github.com/Shinyaigeek/treeche.git"
1717
},
18-
"keywords": [],
19-
"author": "",
20-
"license": "ISC",
18+
"keywords": ["tree-shake", "bundler", "rollup", "bundle size", "side effect", "performance"],
19+
"author": "@Shinyaigeek/Shinobu Hayashi",
20+
"license": "MIT",
2121
"bugs": {
2222
"url": "https://github.com/Shinyaigeek/treeche/issues"
2323
},

packages/core/package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "treeche-core",
3-
"version": "0.1.5",
3+
"version": "0.1.8",
44
"description": "",
55
"type": "module",
66
"main": "lib/mod.js",
77
"types": "src/mod.ts",
88
"scripts": {
99
"build": "tsc -p .",
10-
"build:check": "tsc -p . --noEmit"
10+
"build:check": "tsc -p . --noEmit",
11+
"publish-module": "npm publish"
1112
},
1213
"dependencies": {
1314
"@babel/generator": "^7.17.3",
@@ -27,7 +28,7 @@
2728
"@types/babel__traverse": "^7.14.2",
2829
"@types/estree": "0.0.51"
2930
},
30-
"keywords": [],
31-
"author": "",
32-
"license": "ISC"
31+
"keywords": ["tree-shake", "bundler", "rollup", "bundle size", "side effect", "performance"],
32+
"author": "@Shinyaigeek/Shinobu Hayashi",
33+
"license": "MIT"
3334
}

packages/node-cli/package.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"name": "treeche",
3-
"version": "0.1.5",
3+
"version": "0.1.8",
44
"description": "",
55
"main": "lib/cli.js",
6+
"bin": "lib/cli.js",
67
"type": "module",
78
"scripts": {
89
"build": "tsc -p .",
910
"build:check": "tsc -p . --noEmit",
10-
"publish": "npm publish"
11+
"publish-module": "npm publish"
1112
},
1213
"dependencies": {
1314
"commander": "^9.0.0",
14-
"treeche-core": "workspace:treeche-core"
15+
"treeche-core": "0.1.8"
1516
},
16-
"keywords": [],
17-
"author": "",
18-
"license": "ISC"
17+
"keywords": ["tree-shake", "bundler", "rollup", "bundle size", "side effect", "performance"],
18+
"author": "@Shinyaigeek/Shinobu Hayashi",
19+
"license": "MIT"
1920
}

pnpm-lock.yaml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)