react-native-asset 2.2.4 → 2.2.5
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/esm/cli.d.ts.map +1 -1
- package/esm/cli.js +2 -1
- package/package.json +1 -1
- package/script/cli.d.ts.map +1 -1
- package/script/cli.js +2 -1
package/esm/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM,qBAsElB,CAAC"}
|
package/esm/cli.js
CHANGED
|
@@ -2,6 +2,7 @@ import * as dntShim from "./_dnt.shims.js";
|
|
|
2
2
|
import * as path from "./deps/jsr.io/@std/path/1.1.3/mod.js";
|
|
3
3
|
import { parseArgs } from "./deps/jsr.io/@std/cli/1.0.24/parse_args.js";
|
|
4
4
|
import { linkAssets } from "./main.js";
|
|
5
|
+
import { pathToFileURL } from "node:url";
|
|
5
6
|
export const runCli = async () => {
|
|
6
7
|
const args = await parseArgs(dntShim.Deno.args, {
|
|
7
8
|
alias: {
|
|
@@ -31,7 +32,7 @@ export const runCli = async () => {
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
const reactNativeConfig = reactNativeConfigExists
|
|
34
|
-
? (await import(reactNativeConfigPath)).default
|
|
35
|
+
? (await import(pathToFileURL(reactNativeConfigPath).href)).default
|
|
35
36
|
: {};
|
|
36
37
|
const merged = {
|
|
37
38
|
assets: args.assets.length !== 0
|
package/package.json
CHANGED
package/script/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM,qBAsElB,CAAC"}
|
package/script/cli.js
CHANGED
|
@@ -38,6 +38,7 @@ const dntShim = __importStar(require("./_dnt.shims.js"));
|
|
|
38
38
|
const path = __importStar(require("./deps/jsr.io/@std/path/1.1.3/mod.js"));
|
|
39
39
|
const parse_args_js_1 = require("./deps/jsr.io/@std/cli/1.0.24/parse_args.js");
|
|
40
40
|
const main_js_1 = require("./main.js");
|
|
41
|
+
const node_url_1 = require("node:url");
|
|
41
42
|
const runCli = async () => {
|
|
42
43
|
const args = await (0, parse_args_js_1.parseArgs)(dntShim.Deno.args, {
|
|
43
44
|
alias: {
|
|
@@ -67,7 +68,7 @@ const runCli = async () => {
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
const reactNativeConfig = reactNativeConfigExists
|
|
70
|
-
? (await Promise.resolve(`${reactNativeConfigPath}`).then(s => __importStar(require(s)))).default
|
|
71
|
+
? (await Promise.resolve(`${(0, node_url_1.pathToFileURL)(reactNativeConfigPath).href}`).then(s => __importStar(require(s)))).default
|
|
71
72
|
: {};
|
|
72
73
|
const merged = {
|
|
73
74
|
assets: args.assets.length !== 0
|