@hanzogui/static 8.1.1 → 8.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/static",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
"@babel/template": "^7.25.0",
|
|
55
55
|
"@babel/traverse": "^7.25.4",
|
|
56
56
|
"@babel/types": "^7.25.4",
|
|
57
|
-
"@hanzogui/cli-color": "8.
|
|
58
|
-
"@hanzogui/config-default": "8.
|
|
59
|
-
"@hanzogui/core": "8.
|
|
60
|
-
"@hanzogui/fake-react-native": "8.
|
|
61
|
-
"@hanzogui/generate-themes": "8.
|
|
62
|
-
"@hanzogui/helpers": "8.
|
|
63
|
-
"@hanzogui/helpers-node": "8.
|
|
64
|
-
"@hanzogui/proxy-worm": "8.
|
|
65
|
-
"@hanzogui/react-native-web-internals": "8.
|
|
66
|
-
"@hanzogui/react-native-web-lite": "8.
|
|
67
|
-
"@hanzogui/shorthands": "8.
|
|
68
|
-
"@hanzogui/types": "8.
|
|
69
|
-
"@hanzogui/web": "8.
|
|
57
|
+
"@hanzogui/cli-color": "8.2.0",
|
|
58
|
+
"@hanzogui/config-default": "8.2.0",
|
|
59
|
+
"@hanzogui/core": "8.2.0",
|
|
60
|
+
"@hanzogui/fake-react-native": "8.2.0",
|
|
61
|
+
"@hanzogui/generate-themes": "8.2.0",
|
|
62
|
+
"@hanzogui/helpers": "8.2.0",
|
|
63
|
+
"@hanzogui/helpers-node": "8.2.0",
|
|
64
|
+
"@hanzogui/proxy-worm": "8.2.0",
|
|
65
|
+
"@hanzogui/react-native-web-internals": "8.2.0",
|
|
66
|
+
"@hanzogui/react-native-web-lite": "8.2.0",
|
|
67
|
+
"@hanzogui/shorthands": "8.2.0",
|
|
68
|
+
"@hanzogui/types": "8.2.0",
|
|
69
|
+
"@hanzogui/web": "8.2.0",
|
|
70
70
|
"babel-literal-to-ast": "^2.1.0",
|
|
71
71
|
"browserslist": "^4.28.1",
|
|
72
72
|
"check-dependency-version-consistency": "^4.1.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@babel/plugin-syntax-typescript": "^7.25.4",
|
|
86
|
-
"@hanzogui/build": "8.
|
|
86
|
+
"@hanzogui/build": "8.2.0",
|
|
87
87
|
"@types/babel__core": "^7.20.5",
|
|
88
88
|
"@types/find-root": "^1.1.2",
|
|
89
89
|
"@types/node": "^22.1.0",
|
|
@@ -68,12 +68,19 @@ export function installedPackageOf(sourcePath: string): string {
|
|
|
68
68
|
* or the equivalent `@hanzogui/`).
|
|
69
69
|
*/
|
|
70
70
|
function matches(entry: string, pkg: string): boolean {
|
|
71
|
-
const prefix = entry.endsWith('/*')
|
|
71
|
+
const prefix = entry.endsWith('/*')
|
|
72
|
+
? entry.slice(0, -1)
|
|
73
|
+
: entry.endsWith('/')
|
|
74
|
+
? entry
|
|
75
|
+
: ''
|
|
72
76
|
return prefix ? pkg.startsWith(prefix) : pkg === entry
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
/** May the compiler read styles out of this file? */
|
|
76
|
-
export function isExtractable(
|
|
80
|
+
export function isExtractable(
|
|
81
|
+
sourcePath: string,
|
|
82
|
+
extractPackages: string[] = []
|
|
83
|
+
): boolean {
|
|
77
84
|
if (NEVER_EXTRACT.some((name) => sourcePath.includes(name))) return false
|
|
78
85
|
const pkg = installedPackageOf(sourcePath)
|
|
79
86
|
if (!pkg) return true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractablePath.d.ts","sourceRoot":"","sources":["../../src/extractor/extractablePath.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,UAA6C,CAAA;AAclF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAQ7D;
|
|
1
|
+
{"version":3,"file":"extractablePath.d.ts","sourceRoot":"","sources":["../../src/extractor/extractablePath.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,UAA6C,CAAA;AAclF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAQ7D;AAeD,qDAAqD;AACrD,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,EAClB,eAAe,GAAE,MAAM,EAAO,GAC7B,OAAO,CAKT"}
|