From aa58f6ad764f3c4fa30d625b42cf7159fc65725e Mon Sep 17 00:00:00 2001 From: Stan Lemon Date: Thu, 10 Oct 2024 21:48:20 -0400 Subject: [PATCH] Fix up some build stuff --- .github/workflows/publish.yml | 9 ++++++--- .github/workflows/test.yml | 8 ++++---- package-lock.json | 6 +++--- package.json | 1 + packages/react-couchdb-authentication/package.json | 1 + packages/react-pouchdb/package.json | 1 + 6 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index de073ff4..f8186bb8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 30b37d9a..74cf2082 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/package-lock.json b/package-lock.json index 0f29bb77..46762b09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ }, "apps/react-pouchdb-example": { "name": "@stanlemon/react-pouchdb-example", - "version": "0.2.0", + "version": "0.3.0", "license": "MIT", "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.6.0", @@ -18622,7 +18622,7 @@ }, "packages/react-couchdb-authentication": { "name": "@stanlemon/react-couchdb-authentication", - "version": "0.9.2", + "version": "0.10.0", "license": "MIT", "dependencies": { "async-retry": "^1.3.3", @@ -18652,7 +18652,7 @@ }, "packages/react-pouchdb": { "name": "@stanlemon/react-pouchdb", - "version": "0.5.2", + "version": "0.6.0", "license": "MIT", "dependencies": { "lodash-es": "^4.17.21" diff --git a/package.json b/package.json index a22d6b38..7adc0814 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/react-couchdb-authentication/package.json b/packages/react-couchdb-authentication/package.json index 9fff7412..3795c93e 100644 --- a/packages/react-couchdb-authentication/package.json +++ b/packages/react-couchdb-authentication/package.json @@ -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" diff --git a/packages/react-pouchdb/package.json b/packages/react-pouchdb/package.json index 48c9920f..63a9cd5c 100644 --- a/packages/react-pouchdb/package.json +++ b/packages/react-pouchdb/package.json @@ -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"