@rebuildjs/tailwindcss 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebuildjs/tailwindcss",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "Tailwindcss integration with rebuildjs",
5
5
  "keywords": [
6
6
  "tailwindcss",
@@ -35,17 +35,17 @@
35
35
  "./package.json": "./package.json"
36
36
  },
37
37
  "dependencies": {
38
- "ctx-core": "^5.32.0",
38
+ "ctx-core": "^5.33.0",
39
39
  "esbuild": "^0.20.0",
40
40
  "postcss": "^8.4.33",
41
- "rebuildjs": "^0.50.2",
41
+ "rebuildjs": "^0.51.0",
42
42
  "tailwindcss": "^3.4.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "c8": "^9.1.0",
46
46
  "check-dts": "^0.7.2",
47
47
  "esmock": "^2.6.3",
48
- "relementjs": "^0.57.5",
48
+ "relementjs": "^0.58.0",
49
49
  "tsx": "^4.7.0",
50
50
  "typescript": "next",
51
51
  "uvu": "^0.5.6"
@@ -1,5 +1,16 @@
1
1
  import { file_exists_, file_exists__waitfor } from 'ctx-core/fs'
2
- import { be, be_memo_pair_, be_sig_triple_, Cancel, memo_, nullish__none_, run, sleep, tup } from 'ctx-core/rmemo'
2
+ import {
3
+ be,
4
+ be_memo_pair_,
5
+ be_sig_triple_,
6
+ Cancel,
7
+ memo_,
8
+ nullish__none_,
9
+ promise__cancel__throw,
10
+ run,
11
+ sleep,
12
+ tup
13
+ } from 'ctx-core/rmemo'
3
14
  import { readFile, writeFile } from 'node:fs/promises'
4
15
  import { join } from 'node:path'
5
16
  import postcss from 'postcss'
@@ -115,12 +126,9 @@ export function rebuild_tailwind_plugin_(config) {
115
126
  }
116
127
  }
117
128
  async function cmd(promise) {
118
- if (cancel_()) throw new Cancel()
129
+ if (cancel_()) promise__cancel__throw(promise)
119
130
  const rv = await promise
120
- if (cancel_()) {
121
- promise.cancel?.()
122
- throw new Cancel()
123
- }
131
+ if (cancel_()) promise__cancel__throw(promise)
124
132
  return rv
125
133
  }
126
134
  function cancel_() {