Skip to content

Commit 58d6ddb

Browse files
committed
ci: disable size-limit action
1 parent 4f2838b commit 58d6ddb

File tree

5 files changed

+96
-20
lines changed

5 files changed

+96
-20
lines changed

.github/workflows/size-limit.yml

-15
This file was deleted.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
dist
2+
size_dist
23
node_modules

babel.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
22
presets: ['module:metro-react-native-babel-preset'],
3+
plugins: ['preval']
34
};

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"test": "jest",
2121
"size": "size-limit",
2222
"build": "rm -rf ./dist && tsc --outDir dist",
23+
"build-size": "yarn build && rm -rf size_dist && cp -r dist size_dist && babel size_dist/config.js --out-dir size_dist",
2324
"release": "standard-version"
2425
},
2526
"files": [
@@ -31,6 +32,7 @@
3132
"react-native": "^0.63.4"
3233
},
3334
"devDependencies": {
35+
"@babel/cli": "^7.12.10",
3436
"@babel/core": "^7.12.10",
3537
"@babel/preset-env": "^7.12.11",
3638
"@babel/preset-typescript": "^7.12.7",
@@ -49,6 +51,7 @@
4951
"@typescript-eslint/eslint-plugin": "^4.11.0",
5052
"@typescript-eslint/parser": "^4.11.0",
5153
"babel-jest": "^26.6.3",
54+
"babel-plugin-preval": "^5.0.0",
5255
"eslint": "^7.16.0",
5356
"eslint-config-prettier": "^7.1.0",
5457
"eslint-plugin-eslint-comments": "^3.2.0",
@@ -77,7 +80,7 @@
7780
},
7881
"size-limit": [
7982
{
80-
"path": "dist/index.js"
83+
"path": "size_dist/index.js"
8184
}
8285
]
8386
}

yarn.lock

+90-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22
# yarn lockfile v1
33

44

5+
"@babel/cli@^7.12.10":
6+
version "7.12.10"
7+
resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.12.10.tgz#67a1015b1cd505bde1696196febf910c4c339a48"
8+
integrity sha512-+y4ZnePpvWs1fc/LhZRTHkTesbXkyBYuOB+5CyodZqrEuETXi3zOVfpAQIdgC3lXbHLTDG9dQosxR9BhvLKDLQ==
9+
dependencies:
10+
commander "^4.0.1"
11+
convert-source-map "^1.1.0"
12+
fs-readdir-recursive "^1.1.0"
13+
glob "^7.0.0"
14+
lodash "^4.17.19"
15+
make-dir "^2.1.0"
16+
slash "^2.0.0"
17+
source-map "^0.5.0"
18+
optionalDependencies:
19+
"@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents"
20+
chokidar "^3.4.0"
21+
522
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4":
623
version "7.10.4"
724
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a"
@@ -963,7 +980,7 @@
963980
pirates "^4.0.0"
964981
source-map-support "^0.5.16"
965982

966-
"@babel/runtime@^7.0.0", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.8.4":
983+
"@babel/runtime@^7.0.0", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2":
967984
version "7.12.5"
968985
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
969986
integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
@@ -1475,6 +1492,23 @@
14751492
"@types/yargs" "^15.0.0"
14761493
chalk "^4.0.0"
14771494

1495+
"@nicolo-ribaudo/[email protected]":
1496+
version "2.1.8-no-fsevents"
1497+
resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.tgz#da7c3996b8e6e19ebd14d82eaced2313e7769f9b"
1498+
integrity sha512-+nb9vWloHNNMFHjGofEam3wopE3m1yuambrrd/fnPc+lFOMB9ROTqQlche9ByFWNkdNqfSgR/kkQtQ8DzEWt2w==
1499+
dependencies:
1500+
anymatch "^2.0.0"
1501+
async-each "^1.0.1"
1502+
braces "^2.3.2"
1503+
glob-parent "^3.1.0"
1504+
inherits "^2.0.3"
1505+
is-binary-path "^1.0.0"
1506+
is-glob "^4.0.0"
1507+
normalize-path "^3.0.0"
1508+
path-is-absolute "^1.0.0"
1509+
readdirp "^2.2.1"
1510+
upath "^1.1.1"
1511+
14781512
"@nodelib/[email protected]":
14791513
version "2.1.3"
14801514
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz#3a582bdb53804c6ba6d146579c46e52130cf4a3b"
@@ -2650,6 +2684,24 @@ babel-plugin-jest-hoist@^26.6.2:
26502684
"@types/babel__core" "^7.0.0"
26512685
"@types/babel__traverse" "^7.0.6"
26522686

2687+
babel-plugin-macros@^2.8.0:
2688+
version "2.8.0"
2689+
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138"
2690+
integrity sha512-SEP5kJpfGYqYKpBrj5XU3ahw5p5GOHJ0U5ssOSQ/WBVdwkD2Dzlce95exQTs3jOVWPPKLBN2rlEWkCK7dSmLvg==
2691+
dependencies:
2692+
"@babel/runtime" "^7.7.2"
2693+
cosmiconfig "^6.0.0"
2694+
resolve "^1.12.0"
2695+
2696+
babel-plugin-preval@^5.0.0:
2697+
version "5.0.0"
2698+
resolved "https://registry.yarnpkg.com/babel-plugin-preval/-/babel-plugin-preval-5.0.0.tgz#6cabb947ecc241664966e1f99eb56a3b4bb63d1e"
2699+
integrity sha512-8DqJq6/LPUjSZ0Qq6bVIFpsj2flCEE0Cbnbut9TvGU6jP9g3dOWEXtQ/sdvsA9d6souza8eNGh04WRXpuH9ThA==
2700+
dependencies:
2701+
"@babel/runtime" "^7.9.2"
2702+
babel-plugin-macros "^2.8.0"
2703+
require-from-string "^2.0.2"
2704+
26532705
babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0:
26542706
version "7.0.0-beta.0"
26552707
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf"
@@ -3195,7 +3247,7 @@ chokidar@^2.1.8:
31953247
optionalDependencies:
31963248
fsevents "^1.2.7"
31973249

3198-
chokidar@^3.4.1, chokidar@^3.4.3:
3250+
chokidar@^3.4.0, chokidar@^3.4.1, chokidar@^3.4.3:
31993251
version "3.4.3"
32003252
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.3.tgz#c1df38231448e45ca4ac588e6c79573ba6a57d5b"
32013253
integrity sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ==
@@ -3396,6 +3448,11 @@ commander@^2.18.0, commander@^2.19.0, commander@^2.20.0:
33963448
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
33973449
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
33983450

3451+
commander@^4.0.1:
3452+
version "4.1.1"
3453+
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
3454+
integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==
3455+
33993456
commander@~2.13.0:
34003457
version "2.13.0"
34013458
resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c"
@@ -3686,7 +3743,7 @@ [email protected]:
36863743
meow "^7.0.0"
36873744
q "^1.5.1"
36883745

3689-
convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0:
3746+
convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0:
36903747
version "1.7.0"
36913748
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442"
36923749
integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==
@@ -3753,6 +3810,17 @@ cosmiconfig@^5.0.0, cosmiconfig@^5.0.5, cosmiconfig@^5.1.0:
37533810
js-yaml "^3.13.1"
37543811
parse-json "^4.0.0"
37553812

3813+
cosmiconfig@^6.0.0:
3814+
version "6.0.0"
3815+
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982"
3816+
integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==
3817+
dependencies:
3818+
"@types/parse-json" "^4.0.0"
3819+
import-fresh "^3.1.0"
3820+
parse-json "^5.0.0"
3821+
path-type "^4.0.0"
3822+
yaml "^1.7.2"
3823+
37563824
cosmiconfig@^7.0.0:
37573825
version "7.0.0"
37583826
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.0.tgz#ef9b44d773959cae63ddecd122de23853b60f8d3"
@@ -5251,6 +5319,11 @@ fs-extra@^9.0.0:
52515319
jsonfile "^6.0.1"
52525320
universalify "^1.0.0"
52535321

5322+
fs-readdir-recursive@^1.1.0:
5323+
version "1.1.0"
5324+
resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27"
5325+
integrity sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==
5326+
52545327
fs-write-stream-atomic@^1.0.8:
52555328
version "1.0.10"
52565329
resolved "https://registry.yarnpkg.com/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz#b47df53493ef911df75731e70a9ded0189db40c9"
@@ -5778,6 +5851,14 @@ import-fresh@^3.0.0, import-fresh@^3.2.1:
57785851
parent-module "^1.0.0"
57795852
resolve-from "^4.0.0"
57805853

5854+
import-fresh@^3.1.0:
5855+
version "3.3.0"
5856+
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
5857+
integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==
5858+
dependencies:
5859+
parent-module "^1.0.0"
5860+
resolve-from "^4.0.0"
5861+
57815862
import-local@^3.0.2:
57825863
version "3.0.2"
57835864
resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6"
@@ -9598,6 +9679,11 @@ require-directory@^2.1.1:
95989679
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
95999680
integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I=
96009681

9682+
require-from-string@^2.0.2:
9683+
version "2.0.2"
9684+
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909"
9685+
integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==
9686+
96019687
require-main-filename@^2.0.0:
96029688
version "2.0.0"
96039689
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
@@ -11459,7 +11545,7 @@ yallist@^4.0.0:
1145911545
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
1146011546
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
1146111547

11462-
yaml@^1.10.0:
11548+
yaml@^1.10.0, yaml@^1.7.2:
1146311549
version "1.10.0"
1146411550
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.0.tgz#3b593add944876077d4d683fee01081bd9fff31e"
1146511551
integrity sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg==

0 commit comments

Comments
 (0)