@fullstackunicorn/style 1.0.2 → 1.0.3
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/dependencies.js +5 -2
- package/package.json +2 -1
- package/sources/parse.js +2 -3
package/dependencies.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// @FULLSTACKUNICORN
|
|
2
|
-
export { fss } from '@fullstackunicorn/
|
|
2
|
+
export { fss, fsa } from '@fullstackunicorn/filesystem'
|
|
3
3
|
|
|
4
4
|
// NODE
|
|
5
|
-
export { default as path } from 'node:path'
|
|
5
|
+
export { default as path } from 'node:path'
|
|
6
|
+
|
|
7
|
+
// PACKAGES
|
|
8
|
+
export { glob } from 'glob'
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.3",
|
|
3
3
|
"name": "@fullstackunicorn/style",
|
|
4
4
|
"author": "lucanigido (https://fullstackunicorn.dev/author/lucanigido)",
|
|
5
5
|
"description": "A development utility for generating responsive web and native styles (CSS, SCSS, JS, RN) from a declarative style.config.js file.",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@fullstackunicorn/filesystem": "^1.0.1",
|
|
46
46
|
"@fullstackunicorn/initialize": "^1.0.2",
|
|
47
|
+
"glob": "^13.0.0",
|
|
47
48
|
"sass": "^1.94.2"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
package/sources/parse.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { glob } from 'glob'
|
|
1
|
+
import { fsa, glob } from '#@/dependencies.js'
|
|
3
2
|
|
|
4
3
|
class Parse {
|
|
5
4
|
|
|
@@ -14,7 +13,7 @@ class Parse {
|
|
|
14
13
|
|
|
15
14
|
for (let file of files ) {
|
|
16
15
|
|
|
17
|
-
const data =
|
|
16
|
+
const data = await fsa.readText(file)
|
|
18
17
|
|
|
19
18
|
const isStyle = data.includes('useStyle()')
|
|
20
19
|
|