Skip to content

Commit

Permalink
Fix up some build stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
stanlemon committed Oct 11, 2024
1 parent 59ce5a4 commit aa58f6a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Lint code
run: npm run lint

- name: Typescript
run: npm run tsc

- name: Build
run: npm run build

- name: Run tests
run: npm run test

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build
- name: Lint code
run: npm run lint

- name: Typescript
run: npm run tsc

- name: Lint code
run: npm run lint
- name: Build
run: npm run build

- name: Run tests
run: npm run test
6 changes: 3 additions & 3 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test": "npm run build && jest --detectOpenHandles --silent",
"test:watch": "npm run build && jest --silent -w",
"test:coverage": "npm run build && jest --silent --coverage",
"clean": "npm run clean --workspaces --if-present",
"build": "npm run build --workspaces --if-present",
"tsc": "npm run tsc --workspaces --if-present",
"publish": "node publish.js",
Expand Down
1 change: 1 addition & 0 deletions packages/react-couchdb-authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"test:coverage": "jest --coverage",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"clean": "rimraf ./dist/",
"build": "rimraf ./dist/; tsc; NODE_ENV=production babel --config-file ./.babelrc.json --extensions=\".ts,.tsx,.js.,.jsx\" ./src/ --out-dir ./dist/ --ignore \"src /**/*.test.*\" --source-maps",
"tsc": "tsc",
"example": "WEBDEV_ENTRY=./example/Example.tsx webpack serve"
Expand Down
1 change: 1 addition & 0 deletions packages/react-pouchdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"test:coverage": "jest --coverage",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"clean": "rimraf ./dist/",
"build": "rimraf ./dist/; tsc; NODE_ENV=production babel --config-file ./.babelrc.json --extensions=\".ts,.tsx,.js.,.jsx\" ./src/ --out-dir ./dist/ --ignore \"src /**/*.test.*\" --source-maps",
"tsc": "tsc",
"example": "WEBDEV_ENTRY=./example/Example.tsx webpack serve"
Expand Down

0 comments on commit aa58f6a

Please sign in to comment.