Skip to content

Commit

Permalink
Ready for release (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
xc2 authored Nov 7, 2024
1 parent b1fa1ee commit 314e54e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
5 changes: 4 additions & 1 deletion dummy-spec/BUILD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export default ({ tools, pkg, workspace }: Context): Record<string, LibConfig> =
},
},
output: {
copy: [{ from: `./${pkg}/manifest.json`, to: "package.json" }],
copy: [
{ from: `./${pkg}/manifest.json`, to: "package.json" },
{ from: `./${pkg}/README.md` },
],
},
dts: { bundle: true },
}),
Expand Down
6 changes: 3 additions & 3 deletions dummy-spec/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @109cafe/dummy

This is a dummy package as an example of [@109cafe/label](https://github.com/xc2/label).
This is a sample package demonstrating [@109cafe/label](https://github.com/xc2/label).

This package lookups packages with `BUILD.ts` from filesystem and use exports of `BUILD.ts` as targets.
This package searches for `BUILD.ts` files in the filesystem as packages and uses the exports from those `BUILD.ts` files as targets.

For more information, please refer to [xc2/label](https://github.com/xc2/label).
For more information, please refer to [xc2/label](https://github.com/xc2/label).
1 change: 1 addition & 0 deletions dummy-spec/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "module",
"main": "export.js",
"types": "export.d.ts",
"license": "MIT",
"dependencies": {
"@109cafe/label": "^0.1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion label/BUILD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default ({ tools, pkg }: Context): Record<string, LibConfig> => {
},
output: {
distPath: { root: `./dist/${pkg}` },
copy: [{ from: `${pkg}/manifest.json`, to: "package.json" }],
copy: [{ from: `${pkg}/manifest.json`, to: "package.json" }, { from: `${pkg}/README.md` }],
},
dts: { bundle: false },
},
Expand Down
2 changes: 1 addition & 1 deletion label/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# @109cafe/label

Library for parsing, resolving, and querying bazel-like label.
A library for parsing, resolving, and querying Bazel-like labels.

For more information, please refer to [xc2/label](https://github.com/xc2/label).
1 change: 1 addition & 0 deletions label/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"main": "exports.cjs",
"module": "exports.mjs",
"legacy": "exports.legacy.mjs",
"license": "MIT",
"exports": {
".": {
"require": "./exports.cjs",
Expand Down

0 comments on commit 314e54e

Please sign in to comment.