Skip to content

Commit

Permalink
Merge pull request #6 from perseidesjs/release-2-0-0
Browse files Browse the repository at this point in the history
chore: Enhance build process with new TypeScript configuration
  • Loading branch information
adevinwild authored Dec 19, 2024
2 parents 05e445f + 3fd3754 commit beff6e3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
registry-url: "https://registry.npmjs.org"
- run: bun install
- run: bun run build
- run: bun run build:publish
- run: bunx --bun npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"scripts": {
"test": "jest --silent --runInBand --forceExit",
"build": "rimraf dist && tsc --build ./tsconfig.json",
"build:publish": "rimraf dist && tsc --build ./tsconfig.build.json",
"watch": "tsc --watch",
"prettier:fix": "prettier --write \"src/**/*.ts\"",
"lint:fix": "eslint \"src/**/*.ts\""
Expand Down
13 changes: 13 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src"
},
"include": ["src"],
"exclude": [
"dist",
"build",
"node_modules",
"__tests__"
]
}
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"declaration": true,
"sourceMap": true,
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx",
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
Expand All @@ -22,6 +21,6 @@
"exclude": [
"dist",
"build",
"node_modules",
"node_modules"
]
}

0 comments on commit beff6e3

Please sign in to comment.