Skip to content

Commit

Permalink
feat: add entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jun 25, 2022
1 parent d13e7d0 commit 6509171
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/a/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const a = 'a'
17 changes: 17 additions & 0 deletions packages/a/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,22 @@
"name": "@semrel-extra/zxbr-test-a",
"publishConfig": {
"access": "public"
},
"exports": {
".": "./bundle.js"
},
"scripts": {
"build": "cp index.js bundle.js",
"test": "node ./index.js"
},
"type": "module",
"files": [
"*.js",
"random.txt"
],
"release": {
"build": true,
"test": true,
"fetch": true
}
}
2 changes: 2 additions & 0 deletions packages/b/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {a} from '@semrel-extra/zxbr-test-a'
export const b = 'b'
17 changes: 17 additions & 0 deletions packages/b/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,24 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"files": [
"*.js",
"random.txt"
],
"dependencies": {
"@semrel-extra/zxbr-test-a": "workspace:*"
},
"exports": {
".": "./bundle.js"
},
"scripts": {
"build": "cp index.js bundle.js",
"test": "node ./index.js"
},
"release": {
"build": true,
"test": true,
"fetch": true
}
}
3 changes: 3 additions & 0 deletions packages/c/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export {a} from '@semrel-extra/zxbr-test-a'
export {d} from '@semrel-extra/zxbr-test-d'
export const c = 'c'
17 changes: 17 additions & 0 deletions packages/c/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,25 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"files": [
"*.js",
"random.txt"
],
"exports": {
".": "./bundle.js"
},
"scripts": {
"build": "cp index.js bundle.js",
"test": "node ./index.js"
},
"dependencies": {
"@semrel-extra/zxbr-test-a": "workspace:^",
"@semrel-extra/zxbr-test-d": "workspace:~"
},
"release": {
"build": true,
"test": true,
"fetch": true
}
}
2 changes: 2 additions & 0 deletions packages/d/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {a} from '@semrel-extra/zxbr-test-a'
export const d = 'd'
17 changes: 17 additions & 0 deletions packages/d/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,24 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"files": [
"*.js",
"random.txt"
],
"exports": {
".": "./bundle.js"
},
"scripts": {
"build": "cp index.js bundle.js",
"test": "node ./index.js"
},
"dependencies": {
"@semrel-extra/zxbr-test-a": "workspace:*"
},
"release": {
"build": true,
"test": true,
"fetch": true
}
}

0 comments on commit 6509171

Please sign in to comment.