Skip to content

Commit

Permalink
Merge pull request #18 from cmi-dair/library-packaging
Browse files Browse the repository at this point in the history
Proper library packaging
  • Loading branch information
nx10 authored Aug 10, 2023
2 parents 44aaa86 + 5a21397 commit 6917bbf
Show file tree
Hide file tree
Showing 17 changed files with 123 additions and 854 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
with:
node-version: 18
- run: npm ci
- run: npm run build
- run: npm test

publish-npm:
Expand All @@ -25,6 +26,7 @@ jobs:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,5 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

lib
1 change: 0 additions & 1 deletion babel.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
],
"@babel/preset-typescript"
]
}
43 changes: 0 additions & 43 deletions index.html

This file was deleted.

1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default {
preset: "ts-jest",
moduleDirectories: ["node_modules", "src"],
transform: {
"^.+\\.(ts|tsx)?$": "ts-jest",
"^.+\\.(js|jsx)$": "babel-jest",
Expand Down
Loading

0 comments on commit 6917bbf

Please sign in to comment.