Skip to content

Commit 9e9e4b0

Browse files
committed
chore: update build script
1 parent 249af13 commit 9e9e4b0

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ esm
1010
examples/**/yarn.lock
1111
examples/**/node_modules
1212
package-lock.json
13+
*.eslintcache
1314
*/**/.turbo
1415
.turbo
1516
.rollup.cache

core/use-condition-watcher.ts

-3
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,10 @@ export default function useConditionWatcher<Cond extends Record<string, any>, Re
123123
isCanceled = true
124124
})
125125
if (isCanceled) {
126-
// eslint-disable-next-line require-atomic-updates
127126
isFetching.value = false
128127
return Promise.resolve(undefined)
129128
}
130129
if (!customConditions || typeof customConditions !== 'object' || customConditions.constructor !== Object) {
131-
// eslint-disable-next-line require-atomic-updates
132130
isFetching.value = false
133131
throw new Error(`[vue-condition-watcher]: beforeFetch should return an object`)
134132
}
@@ -171,7 +169,6 @@ export default function useConditionWatcher<Cond extends Record<string, any>, Re
171169
})
172170
.catch(async (fetchError) => {
173171
if (typeof watcherConfig.onFetchError === 'function') {
174-
// eslint-disable-next-line @typescript-eslint/no-extra-semi
175172
;({ data: responseData, error: fetchError } = await watcherConfig.onFetchError({
176173
data: undefined,
177174
error: fetchError,

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@
5151
"vue",
5252
"conditions",
5353
"watcher",
54-
"hook",
5554
"vue-hooks",
5655
"composition-api",
5756
"vue-composable",
5857
"composable",
59-
"fetch",
6058
"fetch-data"
6159
],
6260
"author": "Willy Hong",
@@ -97,7 +95,7 @@
9795
"rimraf": "^3.0.2",
9896
"turbo": "^1.3.1",
9997
"typescript": "^4.6.4",
100-
"vite": "^2.9.14",
98+
"vite": "^3.0.0",
10199
"vitest": "^0.18.0",
102100
"vue": "^3.2.37",
103101
"vue-condition-watcher": "workspace:*",

pnpm-lock.yaml

+13-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"vitest",
2222
"vitest/globals"
2323
],
24-
"target": "es5",
24+
"target": "es2017",
2525
"paths": {
2626
"vue-condition-watcher": ["./core/index.ts"]
2727
},

0 commit comments

Comments
 (0)