Skip to content

Commit 63b8ab0

Browse files
committed
dual format
1 parent 87936c9 commit 63b8ab0

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

cli.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@
254254
"default": false
255255
},
256256
"hermes": {
257+
"hasValue": true,
257258
"default": false
258259
},
259260
"name": {

package.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,32 @@
11
{
22
"name": "react-native-update-cli",
3-
"version": "2.7.1",
3+
"version": "2.7.2",
44
"description": "command line tool for react-native-update (remote updates for react native)",
55
"main": "index.js",
6+
"exports": {
7+
".": {
8+
"import": "./lib/esm/index.mjs",
9+
"require": "./lib/index.js"
10+
},
11+
"./cli.json": "./cli.json",
12+
"./package.json": "./package.json",
13+
"./lib/*": "./lib/*",
14+
"./src/*": "./src/*",
15+
"./proto/*": "./proto/*",
16+
"./*": {
17+
"import": "./lib/esm/*.mjs",
18+
"require": "./lib/*.js"
19+
}
20+
},
621
"bin": {
722
"pushy": "lib/index.js",
823
"cresc": "lib/index.js"
924
},
1025
"files": ["lib", "src", "proto", "cli.json"],
1126
"scripts": {
12-
"build": "swc src -d lib --strip-leading-paths",
27+
"build:cjs": "swc src -d lib --strip-leading-paths",
28+
"build:esm": "swc src -d lib/esm --strip-leading-paths --out-file-extension .mjs -C module.type=es6",
29+
"build": "npm run build:cjs && npm run build:esm",
1330
"prepublishOnly": "npm run build && chmod +x lib/index.js",
1431
"lint": "tsc --noEmit & biome check --write ."
1532
},

0 commit comments

Comments
 (0)