Skip to content

Commit

Permalink
chore: release *v0.1.0* - Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavste committed Dec 1, 2022
1 parent 06992c7 commit 794b405
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ jobs:
node-version: "18.x"
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Run Tests
run: yarn test
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"scripts": {
"generate-docs": "typedoc --plugin typedoc-plugin-markdown --gitRevision master --readme none ./src/valkyrie-wrapper.ts",
"build": "rimraf ./dist && tsc && tsc --build tsconfig.cjs.json",
"build": "rimraf ./dist && tsc --build tsconfig.esm.json && tsc --build tsconfig.cjs.json",
"test": "jest"
},
"devDependencies": {
Expand All @@ -43,4 +43,4 @@
"url": "git+https://github.com/valkyrie-fnd/valkyrie-event-adapter.git"
},
"packageManager": "yarn@3.3.0"
}
}
4 changes: 3 additions & 1 deletion tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
"DOM"
],
"declaration": true,
"declarationDir": "./dist/types",
"moduleResolution": "node",
"esModuleInterop": true,
},
"include": [
"./**/*"
],
"exclude": [
"node_modules",
]
}
7 changes: 7 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig-base.json",
"exclude": [
"**/tests/**/*",
"jest.config.ts"
]
}
3 changes: 2 additions & 1 deletion tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig-base.json",
"extends": "./tsconfig.build.json",
"compilerOptions": {
"declaration": false,
"module": "CommonJS",
"target": "ES5",
"outDir": "./dist/cjs",
Expand Down
9 changes: 9 additions & 0 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"module": "ESNext",
"target": "ES5",
"outDir": "./dist/esm",
"declarationDir": "./dist/types",
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"compilerOptions": {
"module": "ESNext",
"target": "ES5",
"outDir": "./dist/esm",
"outDir": "./dist/esm"
}
}

0 comments on commit 794b405

Please sign in to comment.