Skip to content

Commit 9d4b53a

Browse files
Merge pull request #61 from darthtrevino/task/opt_deps
Add '@babel/core' to peerDependencies
2 parents ce4710a + 9bf262c commit 9d4b53a

File tree

4 files changed

+129
-3
lines changed

4 files changed

+129
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ install:
77
- yarn --pure-lockfile
88
- yarn global add codecov
99
script:
10+
- yarn build
1011
- yarn test:ci
1112
- yarn check-types
1213
- codecov

codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ignore:
2+
- "lib"
3+
- "examples"
4+
- "types"
5+
- "test"
6+
- "node_modules"

package.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.3.2",
44
"description": "Babel plugin to emit decorator metadata like typescript compiler",
55
"main": "lib/plugin.js",
6+
"types": "lib/plugin.d.ts",
67
"repository": "https://github.com/leonardfactory/babel-plugin-transform-typescript-metadata.git",
78
"author": "Leonardo Ascione <leonardo.ascione@gmail.com>",
89
"license": "MIT",
@@ -17,10 +18,10 @@
1718
"reflect-metadata"
1819
],
1920
"scripts": {
20-
"dev": "babel src -w -d lib -x '.ts,.tsx'",
21+
"dev": "babel src -w -d lib -x \".ts\"",
2122
"build": "yarn build:lib && yarn build:types",
22-
"prebuild:lib": "rm -rf lib",
23-
"build:lib": "babel src -d lib -x '.ts,.tsx'",
23+
"prebuild:lib": "rimraf lib",
24+
"build:lib": "babel src -d lib -x \".ts\"",
2425
"build:types": "tsc --emitDeclarationOnly",
2526
"check-types": "tsc --noEmit",
2627
"release": "yarn test && yarn build && release-it",
@@ -60,6 +61,7 @@
6061
"@babel/preset-env": "^7.6.3",
6162
"@babel/preset-typescript": "^7.6.0",
6263
"@babel/template": "^7.6.0",
64+
"@babel/traverse": "^7.6.4",
6365
"@babel/types": "^7.6.3",
6466
"@favoloso/conventional-changelog-emoji": "^0.10.0",
6567
"@release-it/conventional-changelog": "^1.1.0",
@@ -70,9 +72,22 @@
7072
"jest": "^24.9.0",
7173
"jest-file-snapshot": "^0.3.7",
7274
"release-it": "13.7.1",
75+
"rimraf": "^3.0.2",
7376
"typescript": "^3.6.4"
7477
},
7578
"dependencies": {
7679
"@babel/helper-plugin-utils": "^7.0.0"
80+
},
81+
"peerDependencies": {
82+
"@babel/core": "^7",
83+
"@babel/traverse": "^7"
84+
},
85+
"peerDependenciesMeta": {
86+
"@babel/core": {
87+
"optional": false
88+
},
89+
"@babel/traverse": {
90+
"optional": true
91+
}
7792
}
7893
}

yarn.lock

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
dependencies:
2626
"@babel/highlight" "^7.10.4"
2727

28+
"@babel/code-frame@^7.14.5":
29+
version "7.14.5"
30+
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.14.5.tgz#23b08d740e83f49c5e59945fbf1b43e80bbf4edb"
31+
integrity sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==
32+
dependencies:
33+
"@babel/highlight" "^7.14.5"
34+
2835
"@babel/compat-data@^7.10.4", "@babel/compat-data@^7.11.0":
2936
version "7.11.0"
3037
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.11.0.tgz#e9f73efe09af1355b723a7f39b11bad637d7c99c"
@@ -65,6 +72,15 @@
6572
jsesc "^2.5.1"
6673
source-map "^0.5.0"
6774

75+
"@babel/generator@^7.15.0":
76+
version "7.15.0"
77+
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.15.0.tgz#a7d0c172e0d814974bad5aa77ace543b97917f15"
78+
integrity sha512-eKl4XdMrbpYvuB505KTta4AV9g+wWzmVBW69tX0H2NwKVKd2YJbKgyK6M8j/rgLbmHOYJn6rUklV677nOyJrEQ==
79+
dependencies:
80+
"@babel/types" "^7.15.0"
81+
jsesc "^2.5.1"
82+
source-map "^0.5.0"
83+
6884
"@babel/helper-annotate-as-pure@^7.10.4":
6985
version "7.10.4"
7086
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.10.4.tgz#5bf0d495a3f757ac3bda48b5bf3b3ba309c72ba3"
@@ -137,20 +153,43 @@
137153
"@babel/template" "^7.10.4"
138154
"@babel/types" "^7.10.4"
139155

156+
"@babel/helper-function-name@^7.14.5":
157+
version "7.14.5"
158+
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.14.5.tgz#89e2c474972f15d8e233b52ee8c480e2cfcd50c4"
159+
integrity sha512-Gjna0AsXWfFvrAuX+VKcN/aNNWonizBj39yGwUzVDVTlMYJMK2Wp6xdpy72mfArFq5uK+NOuexfzZlzI1z9+AQ==
160+
dependencies:
161+
"@babel/helper-get-function-arity" "^7.14.5"
162+
"@babel/template" "^7.14.5"
163+
"@babel/types" "^7.14.5"
164+
140165
"@babel/helper-get-function-arity@^7.10.4":
141166
version "7.10.4"
142167
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz#98c1cbea0e2332f33f9a4661b8ce1505b2c19ba2"
143168
integrity sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==
144169
dependencies:
145170
"@babel/types" "^7.10.4"
146171

172+
"@babel/helper-get-function-arity@^7.14.5":
173+
version "7.14.5"
174+
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.14.5.tgz#25fbfa579b0937eee1f3b805ece4ce398c431815"
175+
integrity sha512-I1Db4Shst5lewOM4V+ZKJzQ0JGGaZ6VY1jYvMghRjqs6DWgxLCIyFt30GlnKkfUeFLpJt2vzbMVEXVSXlIFYUg==
176+
dependencies:
177+
"@babel/types" "^7.14.5"
178+
147179
"@babel/helper-hoist-variables@^7.10.4":
148180
version "7.10.4"
149181
resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.10.4.tgz#d49b001d1d5a68ca5e6604dda01a6297f7c9381e"
150182
integrity sha512-wljroF5PgCk2juF69kanHVs6vrLwIPNp6DLD+Lrl3hoQ3PpPPikaDRNFA+0t81NOoMt2DL6WW/mdU8k4k6ZzuA==
151183
dependencies:
152184
"@babel/types" "^7.10.4"
153185

186+
"@babel/helper-hoist-variables@^7.14.5":
187+
version "7.14.5"
188+
resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.14.5.tgz#e0dd27c33a78e577d7c8884916a3e7ef1f7c7f8d"
189+
integrity sha512-R1PXiz31Uc0Vxy4OEOm07x0oSjKAdPPCh3tPivn/Eo8cvz6gveAeuyUUPB21Hoiif0uoPQSSdhIPS3352nvdyQ==
190+
dependencies:
191+
"@babel/types" "^7.14.5"
192+
154193
"@babel/helper-member-expression-to-functions@^7.10.4", "@babel/helper-member-expression-to-functions@^7.10.5":
155194
version "7.11.0"
156195
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.11.0.tgz#ae69c83d84ee82f4b42f96e2a09410935a8f26df"
@@ -239,11 +278,23 @@
239278
dependencies:
240279
"@babel/types" "^7.11.0"
241280

281+
"@babel/helper-split-export-declaration@^7.14.5":
282+
version "7.14.5"
283+
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.14.5.tgz#22b23a54ef51c2b7605d851930c1976dd0bc693a"
284+
integrity sha512-hprxVPu6e5Kdp2puZUmvOGjaLv9TCe58E/Fl6hRq4YiVQxIcNvuq6uTM2r1mT/oPskuS9CgR+I94sqAYv0NGKA==
285+
dependencies:
286+
"@babel/types" "^7.14.5"
287+
242288
"@babel/helper-validator-identifier@^7.10.4":
243289
version "7.10.4"
244290
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2"
245291
integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==
246292

293+
"@babel/helper-validator-identifier@^7.14.5", "@babel/helper-validator-identifier@^7.14.9":
294+
version "7.14.9"
295+
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.9.tgz#6654d171b2024f6d8ee151bf2509699919131d48"
296+
integrity sha512-pQYxPY0UP6IHISRitNe8bsijHex4TWZXi2HwKVsjPiltzlhse2znVcm9Ace510VT1kxIHjGJCZZQBX2gJDbo0g==
297+
247298
"@babel/helper-wrap-function@^7.10.4":
248299
version "7.10.4"
249300
resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.10.4.tgz#8a6f701eab0ff39f765b5a1cfef409990e624b87"
@@ -272,11 +323,25 @@
272323
chalk "^2.0.0"
273324
js-tokens "^4.0.0"
274325

326+
"@babel/highlight@^7.14.5":
327+
version "7.14.5"
328+
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.5.tgz#6861a52f03966405001f6aa534a01a24d99e8cd9"
329+
integrity sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==
330+
dependencies:
331+
"@babel/helper-validator-identifier" "^7.14.5"
332+
chalk "^2.0.0"
333+
js-tokens "^4.0.0"
334+
275335
"@babel/parser@^7.1.0", "@babel/parser@^7.10.4", "@babel/parser@^7.11.5", "@babel/parser@^7.4.3":
276336
version "7.11.5"
277337
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.5.tgz#c7ff6303df71080ec7a4f5b8c003c58f1cf51037"
278338
integrity sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==
279339

340+
"@babel/parser@^7.14.5", "@babel/parser@^7.15.0":
341+
version "7.15.3"
342+
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.3.tgz#3416d9bea748052cfcb63dbcc27368105b1ed862"
343+
integrity sha512-O0L6v/HvqbdJawj0iBEfVQMc3/6WP+AeOsovsIgBFyJaG+W2w7eqvZB7puddATmWuARlm1SX7DwxJ/JJUnDpEA==
344+
280345
"@babel/plugin-proposal-async-generator-functions@^7.10.4":
281346
version "7.10.5"
282347
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.10.5.tgz#3491cabf2f7c179ab820606cec27fed15e0e8558"
@@ -860,6 +925,15 @@
860925
"@babel/parser" "^7.10.4"
861926
"@babel/types" "^7.10.4"
862927

928+
"@babel/template@^7.14.5":
929+
version "7.14.5"
930+
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.14.5.tgz#a9bc9d8b33354ff6e55a9c60d1109200a68974f4"
931+
integrity sha512-6Z3Po85sfxRGachLULUhOmvAaOo7xCvqGQtxINai2mEGPFm6pQ4z5QInFnUrRpfoSV60BnjyF5F3c+15fxFV1g==
932+
dependencies:
933+
"@babel/code-frame" "^7.14.5"
934+
"@babel/parser" "^7.14.5"
935+
"@babel/types" "^7.14.5"
936+
863937
"@babel/traverse@^7.1.0", "@babel/traverse@^7.10.4", "@babel/traverse@^7.11.5", "@babel/traverse@^7.4.3":
864938
version "7.11.5"
865939
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.11.5.tgz#be777b93b518eb6d76ee2e1ea1d143daa11e61c3"
@@ -875,6 +949,21 @@
875949
globals "^11.1.0"
876950
lodash "^4.17.19"
877951

952+
"@babel/traverse@^7.6.4":
953+
version "7.15.0"
954+
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.15.0.tgz#4cca838fd1b2a03283c1f38e141f639d60b3fc98"
955+
integrity sha512-392d8BN0C9eVxVWd8H6x9WfipgVH5IaIoLp23334Sc1vbKKWINnvwRpb4us0xtPaCumlwbTtIYNA0Dv/32sVFw==
956+
dependencies:
957+
"@babel/code-frame" "^7.14.5"
958+
"@babel/generator" "^7.15.0"
959+
"@babel/helper-function-name" "^7.14.5"
960+
"@babel/helper-hoist-variables" "^7.14.5"
961+
"@babel/helper-split-export-declaration" "^7.14.5"
962+
"@babel/parser" "^7.15.0"
963+
"@babel/types" "^7.15.0"
964+
debug "^4.1.0"
965+
globals "^11.1.0"
966+
878967
"@babel/types@^7.0.0", "@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.11.5", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.6.3":
879968
version "7.11.5"
880969
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.5.tgz#d9de577d01252d77c6800cee039ee64faf75662d"
@@ -884,6 +973,14 @@
884973
lodash "^4.17.19"
885974
to-fast-properties "^2.0.0"
886975

976+
"@babel/types@^7.14.5", "@babel/types@^7.15.0":
977+
version "7.15.0"
978+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.15.0.tgz#61af11f2286c4e9c69ca8deb5f4375a73c72dcbd"
979+
integrity sha512-OBvfqnllOIdX4ojTHpwZbpvz4j3EWyjkZEdmjH0/cgsd6QOdSgU8rLSk6ard/pcW7rlmjdVSX/AWOaORR1uNOQ==
980+
dependencies:
981+
"@babel/helper-validator-identifier" "^7.14.9"
982+
to-fast-properties "^2.0.0"
983+
887984
"@cnakazawa/watch@^1.0.3":
888985
version "1.0.4"
889986
resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a"
@@ -5750,6 +5847,13 @@ rimraf@^2.5.4, rimraf@^2.6.3:
57505847
dependencies:
57515848
glob "^7.1.3"
57525849

5850+
rimraf@^3.0.2:
5851+
version "3.0.2"
5852+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
5853+
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
5854+
dependencies:
5855+
glob "^7.1.3"
5856+
57535857
rsvp@^4.8.4:
57545858
version "4.8.5"
57555859
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734"

0 commit comments

Comments
 (0)