Skip to content

Commit

Permalink
Added TsUp build configs for packages
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Feb 12, 2024
1 parent af7f3ff commit 423aafe
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ReferenceMaterials.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ I put here links that either are useful or may be useful for my implementation.

## NPM Packaging

- [Antonello Zanini - How to Set Up a TypeScript Monorepo](https://earthly.dev/blog/setup-typescript-monorepo/)
- [TsUp - DTS error with composite](https://github.com/egoist/tsup/issues/571#issuecomment-1760052931)
- [Orhun Özer - How to bundle a tree-shakable typescript library with tsup and publish with npm](https://dev.to/orabazu/how-to-bundle-a-tree-shakable-typescript-library-with-tsup-and-publish-with-npm-3c46)
- [Andrea Stagi - Publish to NPM using GitHub Actions](https://dev.to/astagi/publish-to-npm-using-github-actions-23fn)
- [Jacopo Marrone - Publish a Typescript React library to NPM in a monorepo](https://jacopomarrone.netlify.app/blog/publish-a-typescript-react-package-to-npm-in-a-monorepo)
Expand Down
21 changes: 18 additions & 3 deletions packages/emmett-esdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,22 @@
"test:int:watch": "jest int --passWithNoTests --forceExit --watch",
"test:e2e:watch": "jest e2e --passWithNoTests --forceExit --watch"
},
"keywords": [],
"author": "",
"license": "ISC"
"repository": {
"type": "git",
"url": "git+https://github.com/event-driven-io/emmett.git"
},
"keywords": [
"Event Sourcing"
],
"author": "Oskar Dudycz",
"bugs": {
"url": "https://github.com/event-driven-io/emmett/issues"
},
"homepage": "https://event-driven-io.github.io/emmett/",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
]
}
2 changes: 1 addition & 1 deletion packages/emmett-esdb/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
console.log('null');
export type Nullo = { test: 'string' };
6 changes: 6 additions & 0 deletions packages/emmett-esdb/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"composite": false
}
}
2 changes: 1 addition & 1 deletion packages/emmett-expressjs/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
console.log('null');
export type Nullo = { test: 'string' };
6 changes: 6 additions & 0 deletions packages/emmett-expressjs/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"composite": false
}
}

0 comments on commit 423aafe

Please sign in to comment.