@ng-native/tailwind 0.18.2 → 0.19.0
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/config.cjs +3 -1
- package/flatten.cjs +3 -1
- package/package.json +3 -3
package/config.cjs
CHANGED
|
@@ -259,7 +259,9 @@ function compileSheetModule(css, context = 'tailwind', paths, browser) {
|
|
|
259
259
|
imports.push(`import font${imports.length} from ${file};\n`);
|
|
260
260
|
return `font${imports.length - 1}`;
|
|
261
261
|
});
|
|
262
|
-
|
|
262
|
+
// On one line, whatever the entry is called: a line break in the name would end the comment.
|
|
263
|
+
const entry = path.basename(context).replace(/[\r\n\u2028\u2029]/g, ' ');
|
|
264
|
+
return `// Generated from ${entry}. Edit the Tailwind entry, not this.\n${imports.join('')}export default ${literal};\n`;
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
/** Faces already reported unreadable, once a process: the sheet is rebuilt on every class written. */
|
package/flatten.cjs
CHANGED
|
@@ -213,7 +213,9 @@ function nextVar(css, from) {
|
|
|
213
213
|
* one.
|
|
214
214
|
*/
|
|
215
215
|
function selfReferential(value, name) {
|
|
216
|
-
return new RegExp(`var\\(\\s*${name.replace(/[
|
|
216
|
+
return new RegExp(`var\\(\\s*${name.replace(/[.*+?^${}()|[\]\\-]/g, '\\$&')}\\s*[,)]`).test(
|
|
217
|
+
value,
|
|
218
|
+
);
|
|
217
219
|
}
|
|
218
220
|
|
|
219
221
|
/** Split `--x, fallback` at the first comma that is not inside parentheses. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-native/tailwind",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Tailwind CSS preset for Angular Native: Tailwind 4 and Tailwind 3, on native and on the web.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"type": "commonjs",
|
|
18
18
|
"main": "flatten.cjs",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ng-native/metro": "0.
|
|
20
|
+
"@ng-native/metro": "0.19.0",
|
|
21
21
|
"lightningcss": "^1.30.2"
|
|
22
22
|
},
|
|
23
23
|
"nx": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"url": "https://github.com/ng-native/ng-native/issues"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@ng-native/metro": "0.
|
|
35
|
+
"@ng-native/metro": "0.19.0",
|
|
36
36
|
"@tailwindcss/cli": "^4.3.3",
|
|
37
37
|
"tailwindcss": "^3.4.1 || ^4.3.3"
|
|
38
38
|
},
|