@rebuildjs/tailwindcss 0.1.49 → 0.1.51
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.1.
|
|
3
|
+
"version": "0.1.51",
|
|
4
4
|
"description": "Tailwindcss integration with rebuildjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tailwindcss",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"ctx-core": "^5.25.3",
|
|
39
39
|
"esbuild": "^0.19.11",
|
|
40
40
|
"postcss": "^8.4.33",
|
|
41
|
-
"rebuildjs": "^0.
|
|
41
|
+
"rebuildjs": "^0.44.0",
|
|
42
42
|
"tailwindcss": "^3.4.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Plugin } from 'esbuild'
|
|
2
|
-
import type { ctx__be_T, ctx__get_T, ctx__set_T,
|
|
2
|
+
import type { ctx__be_T, ctx__get_T, ctx__set_T, sig_T } from 'rebuildjs/server'
|
|
3
3
|
export declare const rebuild_tailwind_plugin__build_id$_:ctx__be_T<sig_T<string|undefined>, 'app'>
|
|
4
4
|
export declare const rebuild_tailwind_plugin__build_id_:ctx__get_T<string|undefined, 'app'>
|
|
5
5
|
export declare const rebuild_tailwind_plugin__build_id__set:ctx__set_T<string|undefined, 'app'>
|
|
@@ -4,7 +4,7 @@ import { rm } from 'node:fs/promises'
|
|
|
4
4
|
import { dirname, join } from 'node:path'
|
|
5
5
|
import {
|
|
6
6
|
app_ctx,
|
|
7
|
-
|
|
7
|
+
rebuildjs_browser__build,
|
|
8
8
|
browser__metafile_,
|
|
9
9
|
browser__metafile__set,
|
|
10
10
|
build_id__set,
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
rebuildjs__ready_,
|
|
16
16
|
rebuildjs__ready__wait,
|
|
17
17
|
rmemo__wait,
|
|
18
|
-
|
|
18
|
+
rebuildjs_server__build,
|
|
19
19
|
server__metafile_,
|
|
20
20
|
server__metafile__set
|
|
21
|
-
} from 'rebuildjs'
|
|
21
|
+
} from 'rebuildjs/server'
|
|
22
22
|
import { test } from 'uvu'
|
|
23
23
|
import { equal, throws } from 'uvu/assert'
|
|
24
24
|
import { browser__metafile0, server__metafile0 } from '../_fixtures/metafiles.js'
|
|
@@ -78,8 +78,8 @@ test('rebuild_tailwind_plugin_', async ()=>{
|
|
|
78
78
|
let browser__build_context:BuildContext|undefined = undefined
|
|
79
79
|
try {
|
|
80
80
|
const rebuild_tailwind_plugin = rebuild_tailwind_plugin_()
|
|
81
|
-
server__build_context = await
|
|
82
|
-
browser__build_context = await
|
|
81
|
+
server__build_context = await rebuildjs_server__build({ plugins: [rebuild_tailwind_plugin] })
|
|
82
|
+
browser__build_context = await rebuildjs_browser__build({ plugins: [rebuild_tailwind_plugin] })
|
|
83
83
|
await rebuildjs__ready__wait()
|
|
84
84
|
const server__metafile = server__metafile_(app_ctx)!
|
|
85
85
|
const server__output__relative_path =
|