File tree Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Original file line number Diff line number Diff line change @@ -25,24 +25,38 @@ jobs:
25
25
- name : checkout
26
26
uses : actions/checkout@master
27
27
28
- - name : cache node_modules
29
- uses : actions/cache@v3
28
+ - uses : pnpm/action-setup@v2
29
+ name : Install pnpm
30
+ id : pnpm-install
30
31
with :
31
- path : node_modules
32
- key : ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
32
+ version : 7
33
+ run_install : false
34
+
35
+ - name : Get pnpm store directory
36
+ id : pnpm-cache
37
+ shell : bash
38
+ run : |
39
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
40
+
41
+ - uses : actions/cache@v3
42
+ name : Setup pnpm cache
43
+ with :
44
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
45
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
46
+ restore-keys : |
47
+ ${{ runner.os }}-pnpm-store-
33
48
34
49
- name : Install dependencies
35
- if : steps.cache.outputs.cache-hit != 'true'
36
- run : yarn
50
+ run : pnpm install
37
51
38
52
- name : Prepare
39
- run : yarn dev:prepare
53
+ run : pnpm run dev:prepare
40
54
41
55
- name : Lint
42
- run : yarn lint
56
+ run : pnpm run lint
43
57
44
58
- name : Test
45
- run : yarn test
59
+ run : pnpm run test
46
60
47
61
# - name: Coverage
48
62
# run: yarn codecov
Original file line number Diff line number Diff line change @@ -154,6 +154,9 @@ export default defineNuxtModule<ModuleOptions>({
154
154
}
155
155
}
156
156
157
+ // Allow extending tailwindcss config by other modules
158
+ await nuxt . callHook ( 'tailwindcss:config' , tailwindConfig )
159
+
157
160
// Write cjs version of config to support vscode extension
158
161
const resolveConfig = await import ( 'tailwindcss/resolveConfig.js' ) . then ( r => r . default || r )
159
162
const resolvedConfig = resolveConfig ( tailwindConfig ) as Config
@@ -174,9 +177,6 @@ export default defineNuxtModule<ModuleOptions>({
174
177
createTemplates ( resolvedConfig , moduleOptions . exposeLevel , nuxt )
175
178
}
176
179
177
- // Allow extending tailwindcss config by other modules
178
- await nuxt . callHook ( 'tailwindcss:config' , tailwindConfig )
179
-
180
180
// Compute tailwindConfig hash
181
181
tailwindConfig . _hash = String ( Date . now ( ) )
182
182
You can’t perform that action at this time.
0 commit comments