Skip to content

Commit

Permalink
refactor: update dependencies (#42)
Browse files Browse the repository at this point in the history
* chore: update dependencies

* test: clean tasks
  • Loading branch information
azu authored Jul 21, 2023
1 parent ece957c commit 10f4227
Show file tree
Hide file tree
Showing 15 changed files with 2,103 additions and 2,711 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn install
- name: Build
run: yarn run build
- name: Test
run: yarn test

Expand All @@ -38,8 +36,6 @@ jobs:
node-version: 18
- name: Install
run: yarn install
- name: Build
run: yarn run build
- name: Test
run: yarn run test:chrome

Expand All @@ -56,8 +52,6 @@ jobs:
node-version: 18
- name: Install
run: yarn install
- name: Build
run: yarn run build
- name: Test
run: yarn run test:firefox

Expand All @@ -74,7 +68,5 @@ jobs:
node-version: 18
- name: Install
run: yarn install
- name: Build
run: yarn run build
- name: Test
run: yarn run test:webkit
2 changes: 1 addition & 1 deletion examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"parcel": "^2.9.3",
"typescript": "^4.2.4"
"typescript": "^5.1.6"
},
"keywords": [],
"author": "azu",
Expand Down
58 changes: 58 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build",
"test",
"test:browser",
"test:chrome",
"test:firefox",
"test:webkit"
]
}
}
},
"targetDefaults": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/lib",
"{projectRoot}/module"
]
},
"test": {
"dependsOn": [
"build",
"^test"
]
},
"test:browser": {
"dependsOn": [
"build",
"^test:browser"
]
},
"test:chrome": {
"dependsOn": [
"build",
"^test:chrome"
]
},
"test:firefox": {
"dependsOn": [
"build",
"^test:firefox"
]
},
"test:webkit": {
"dependsOn": [
"build",
"^test:webkit"
]
}
}
}
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "lerna run build",
"clean": "lerna run clean",
"test": "lerna run test && npm run size",
"test:browser": "lerna run test:browser",
"test:chrome": "lerna run test:chrome",
"test:firefox": "lerna run test:firefox",
"test:webkit": "lerna run test:webkit",
Expand Down Expand Up @@ -48,10 +49,10 @@
"trailingComma": "none"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^7.0.8",
"lerna": "^4.0.0",
"lint-staged": "^11.1.2",
"prettier": "^2.4.0",
"size-limit": "^7.0.8"
"@size-limit/preset-small-lib": "^8.2.6",
"lerna": "^7.1.4",
"lint-staged": "^13.2.3",
"prettier": "^3.0.0",
"size-limit": "^8.2.6"
}
}
8 changes: 4 additions & 4 deletions packages/common-test-case/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
"@types/mocha": "^10.0.1",
"@types/node": "^20.4.2",
"mocha": "^10.2.0",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-node": "^10.2.1",
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"ts-node-test-register": "^10.0.0",
"typescript": "^4.2.4"
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
"@types/mocha": "^10.0.1",
"@types/node": "^20.4.2",
"mocha": "^10.2.0",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-loader": "^8.2.0",
"typescript": "^4.2.4"
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"ts-loader": "^9.4.4",
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/indexeddb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
"@types/node": "^20.4.2",
"mocha": "^10.2.0",
"playwright-test": "^12.1.1",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-loader": "^8.2.0",
"typescript": "^4.2.4"
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"ts-loader": "^9.4.4",
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/localstorage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
"@types/node": "^20.4.2",
"mocha": "^10.2.0",
"playwright-test": "^12.1.1",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-loader": "^8.2.0",
"typescript": "^4.2.4"
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"ts-loader": "^9.4.4",
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 5 additions & 5 deletions packages/memorystorage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
"devDependencies": {
"@kvs/common-test-case": "^2.1.3",
"@types/mocha": "^10.0.1",
"@types/node": "^16.9.1",
"@types/node": "^20.4.2",
"mocha": "^10.2.0",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-loader": "^8.2.0",
"typescript": "^4.2.4"
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"ts-loader": "^9.4.4",
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
Expand Down
14 changes: 7 additions & 7 deletions packages/node-localstorage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@
},
"dependencies": {
"@kvs/storage": "^2.1.3",
"app-root-path": "^3.0.0",
"mkdirp": "^1.0.4",
"app-root-path": "^3.1.0",
"mkdirp": "^3.0.1",
"node-localstorage": "^2.1.6"
},
"devDependencies": {
"@kvs/common-test-case": "^2.1.3",
"@types/mocha": "^10.0.1",
"@types/node": "^16.9.1",
"@types/node": "^20.4.2",
"mocha": "^10.2.0",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-loader": "^8.2.0",
"typescript": "^4.2.4"
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"ts-loader": "^9.4.4",
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 1 addition & 2 deletions packages/node-localstorage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { KVS, KVSOptions } from "@kvs/types";
import { LocalStorage } from "node-localstorage";
// @ts-ignore
import appRoot from "app-root-path";
// @ts-ignore
import mkdirp from "mkdirp";
import { mkdirp } from "mkdirp";

export type KvsLocalStorageSchema = {
[index: string]: JsonValue;
Expand Down
8 changes: 4 additions & 4 deletions packages/storage-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
"@types/node": "^20.4.2",
"mocha": "^10.2.0",
"playwright-test": "^12.1.1",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-loader": "^8.2.0",
"typescript": "^4.2.4"
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"ts-loader": "^9.4.4",
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
"@types/node": "^20.4.2",
"mocha": "^10.2.0",
"playwright-test": "^12.1.1",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-loader": "^8.2.0",
"typescript": "^4.2.4"
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"ts-loader": "^9.4.4",
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
},
"devDependencies": {
"@types/node": "^20.4.2",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"tsd": "^0.19.1",
"typescript": "^4.5.5"
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"tsd": "^0.28.1",
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 10f4227

Please sign in to comment.