@hzblj/kara-expo-plugin 0.3.0 → 0.4.1
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/CHANGELOG.md +8 -0
- package/build/cli.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @hzblj/kara-expo-plugin
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
## 0.4.0
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [`6e7903a`](https://github.com/hzblj/kara-ui/commit/6e7903afa3d3442e04a48a6e24399f9f03559a03) Thanks [@hzblj](https://github.com/hzblj)! - `npx kara-icons ./assets/icons` works without `--out` — it used to skip the folder and print its usage.
|
|
10
|
+
|
|
3
11
|
## 0.3.0
|
|
4
12
|
|
|
5
13
|
## 0.2.1
|
package/build/cli.js
CHANGED
|
@@ -20,8 +20,9 @@ const USAGE = `Usage: kara-icons <source> [--out <file>]
|
|
|
20
20
|
*/
|
|
21
21
|
const main = (args) => {
|
|
22
22
|
const outIndex = args.indexOf('--out');
|
|
23
|
-
const
|
|
24
|
-
const
|
|
23
|
+
const outValueIndex = outIndex === -1 ? -1 : outIndex + 1;
|
|
24
|
+
const out = outIndex === -1 ? 'kara-icons.d.ts' : args[outValueIndex];
|
|
25
|
+
const source = args.find((arg, index) => !arg.startsWith('--') && index !== outValueIndex);
|
|
25
26
|
if (!source || !out || args.includes('--help')) {
|
|
26
27
|
console.log(USAGE);
|
|
27
28
|
return source ? 0 : 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hzblj/kara-expo-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "The Expo config plugin and tooling of @hzblj/kara-ui: the app's SVG icons as native assets on iOS and Android, and UIKit semantic colour overrides.",
|
|
5
5
|
"author": "Jan Blazej",
|
|
6
6
|
"license": "MIT",
|