Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq committed Sep 17, 2024
1 parent 54613f9 commit 8940d89
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: lst/*
cache: pnpm

- run: pnpm install --frozen-lockfile
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: lts/*
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx nano-staged
nano-staged
12 changes: 7 additions & 5 deletions config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import path from 'node:path'
import { defineConfig } from 'taro-define-config'
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'

declare module 'taro-define-config' {
interface CustomPluginOptionsMap {
'taro-plugin-pinia': {}
}
}

/**
* resolve path
* @param args
Expand All @@ -25,11 +31,7 @@ export default defineConfig({
},
sourceRoot: 'src',
outputRoot: 'dist',
plugins: [
'@tarojs/plugin-html',
// @ts-expect-error not supported by defineConfig
'taro-plugin-pinia',
],
plugins: ['@tarojs/plugin-html', 'taro-plugin-pinia'],
compiler: {
type: 'webpack5',
prebundle: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@babel/core": "^7.25.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@ntnyq/eslint-config": "^3.0.0-beta.12",
"@ntnyq/prettier-config": "^1.21.2",
"@ntnyq/prettier-config": "^1.21.3",
"@tarojs/cli": "^4.0.5",
"@tarojs/helper": "^4.0.5",
"@tarojs/plugin-platform-weapp": "^4.0.5",
Expand Down Expand Up @@ -70,7 +70,7 @@
},
"prettier": "@ntnyq/prettier-config",
"nano-staged": {
"*.{js,ts,mjs,vue,yml,yaml,md,json}": "eslint --fix"
"*.{js,ts,cjs,mjs,vue,yml,yaml,md,json}": "eslint --fix"
},
"browserslist": [
"last 3 versions",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

0 comments on commit 8940d89

Please sign in to comment.