@teacss/bun 0.10.14 → 0.10.15
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/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type ShellOptions } from "@teacss/engine";
|
|
|
2
2
|
import type { BuildConfig, BuildOutput, BunPlugin } from "bun";
|
|
3
3
|
export type { ShellOptions } from "@teacss/engine";
|
|
4
4
|
/**
|
|
5
|
-
* `import "virtual:teacss.css"`
|
|
5
|
+
* `import "virtual:teacss.css"` becomes the generated stylesheet; a CSS file goes through
|
|
6
6
|
* `project.transform`, and when its top level has `@teacss;` the generated stylesheet then takes that rule's
|
|
7
7
|
* place; every other module goes through `transformSource`. `minify` defaults to false, as teacss-ts's Bun
|
|
8
8
|
* plugin emits the stylesheet unminified.
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
|
3
3
|
import { dirname, join, resolve, sep } from "node:path";
|
|
4
4
|
import { createProject, extractBundledFonts, isCssId, replaceEntry } from "@teacss/engine";
|
|
5
5
|
const PLUGIN = "teacss";
|
|
6
|
-
const VIRTUAL_ENTRY = /^
|
|
6
|
+
const VIRTUAL_ENTRY = /^virtual:teacss\.css$/;
|
|
7
7
|
const MODULE = /\.(?:[cm]?[jt]sx?|html)$/;
|
|
8
8
|
const CSS = /\.css$/;
|
|
9
9
|
const NODE_MODULES = `${sep}node_modules${sep}`;
|
|
@@ -65,7 +65,7 @@ function projectRoot(options, config) {
|
|
|
65
65
|
return resolve(options.root ?? config.root ?? process.cwd());
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
* `import "virtual:teacss.css"`
|
|
68
|
+
* `import "virtual:teacss.css"` becomes the generated stylesheet; a CSS file goes through
|
|
69
69
|
* `project.transform`, and when its top level has `@teacss;` the generated stylesheet then takes that rule's
|
|
70
70
|
* place; every other module goes through `transformSource`. `minify` defaults to false, as teacss-ts's Bun
|
|
71
71
|
* plugin emits the stylesheet unminified.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teacss/bun",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.15",
|
|
4
4
|
"description": "Bun.build plugin for TeaCSS: virtual:teacss.css and the entry's @teacss become the CSS the Rust engine generates",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"node": ">=26"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@teacss/engine": "0.10.
|
|
34
|
+
"@teacss/engine": "0.10.15"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/bun": "1.4.3",
|