Skip to content

Commit

Permalink
refactor: convert to rollup package
Browse files Browse the repository at this point in the history
  • Loading branch information
sbsrnt committed Mar 6, 2024
1 parent 02d257f commit 5a3d4e7
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 4 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions packages/unit-testing-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
"name": "@exile-watch/unit-testing-config",
"version": "0.1.0",
"description": "Shared unit testing configuration for exile.watch frontend projects",
"main": "vitest.config.js",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"_clean": "del-cli dist",
"_build": "rollup -c",
"build": "npm run _build",
"typecheck": "npx tsc"
},
"files": [
"vitest.config.js"
],
"repository": {
"type": "git",
"url": "git+https://github.com/exile-watch/splinters.git",
Expand All @@ -25,6 +30,7 @@
"react": "^18.2.0"
},
"devDependencies": {
"@exile-watch/rollup-config": "^0.2.2",
"@exile-watch/typescript-config": "^0.3.1",
"@exile-watch/writ-react": "^0.5.0",
"@types/react": "^18.2.63",
Expand Down
3 changes: 3 additions & 0 deletions packages/unit-testing-config/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import createRollupConfig from '@exile-watch/rollup-config'

export default createRollupConfig()
File renamed without changes.
3 changes: 3 additions & 0 deletions packages/unit-testing-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../tsconfig.json"
}
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "@exile-watch/typescript-config/tsconfig.rollup.json",
"compilerOptions": {
"checkJs": false,
// Required for Typescript resolution to work within the NPM Workspace
// This `paths` info is inherited by all per-package tsconfigs
"paths": {
"@exile-watch/": ["./packages/*/"],
},
},
}

0 comments on commit 5a3d4e7

Please sign in to comment.