react-native-asset 2.2.0-rc2 → 2.2.2

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # react-native-asset
2
2
 
3
+ [![jsr version](https://jsr.io/badges/@unimonkiez/react-native-asset)](https://jsr.io/@unimonkiez/react-native-asset)
3
4
  [![npm version](https://badge.fury.io/js/react-native-asset.svg)](https://badge.fury.io/js/react-native-asset)
4
- [![Build Status](https://travis-ci.org/unimonkiez/react-native-asset.svg?branch=master)](https://travis-ci.org/unimonkiez/react-native-asset)
5
5
 
6
6
  ## Link and unlink assets to your react-native project with ease!
7
7
 
@@ -18,11 +18,9 @@
18
18
 
19
19
  ## Usage
20
20
 
21
- - Install
21
+ - Install (globally or locally and later run with `npx`)
22
22
  ```bash
23
23
  npm install -g react-native-asset
24
- # or yarn
25
- yarn global add react-native-asset
26
24
  ```
27
25
  - Add assets to your `react-native.config.js` as you would with
28
26
  `react-native link`
@@ -34,6 +32,7 @@
34
32
  ];
35
33
  ```
36
34
  - Add platform-specific assets to your `react-native.config.js` like so:
35
+
37
36
  ```js
38
37
  ...
39
38
  assets: [
@@ -51,6 +50,10 @@
51
50
  ```bash
52
51
  react-native-asset
53
52
  ```
53
+ Can also run with Deno without installing
54
+ ```
55
+ deno run @unimonkiez/react-native-asset
56
+ ```
54
57
 
55
58
  ## Explanation
56
59
 
package/esm/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,qBAwElB,CAAC"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,qBAsElB,CAAC"}
package/esm/cli.js CHANGED
@@ -31,7 +31,7 @@ export const runCli = async () => {
31
31
  }
32
32
  }
33
33
  const reactNativeConfig = reactNativeConfigExists
34
- ? (await import(path.join(args.path, `react-native.config.js`))).default
34
+ ? (await import(reactNativeConfigPath)).default
35
35
  : {};
36
36
  const merged = {
37
37
  assets: args.assets.length !== 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-asset",
3
- "version": "2.2.0-rc2",
3
+ "version": "2.2.2",
4
4
  "description": "Linking and unlinking of assets in your react-native app, works for fonts and sounds",
5
5
  "keywords": [
6
6
  "react-native",
@@ -45,4 +45,4 @@
45
45
  "picocolors": "^1.0.0"
46
46
  },
47
47
  "_generatedBy": "dnt@dev"
48
- }
48
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,qBAwElB,CAAC"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,qBAsElB,CAAC"}
package/script/cli.js CHANGED
@@ -67,7 +67,7 @@ const runCli = async () => {
67
67
  }
68
68
  }
69
69
  const reactNativeConfig = reactNativeConfigExists
70
- ? (await Promise.resolve(`${path.join(args.path, `react-native.config.js`)}`).then(s => __importStar(require(s)))).default
70
+ ? (await Promise.resolve(`${reactNativeConfigPath}`).then(s => __importStar(require(s)))).default
71
71
  : {};
72
72
  const merged = {
73
73
  assets: args.assets.length !== 0