Bogdan Savluk
0058b7fef4
Migrate Babel from Flow to TypeScript (except Babel parser) ( #11578 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-11-25 23:09:13 +01:00
Mickey Rose
b5907ef967
remove executable permission from files that shouldn't have it ( #13873 )
2021-10-23 14:18:30 +02:00
Julien Wajsberg
6818b22dc0
[@babel/node] Forward the signal SIGTERM as well ( #13784 )
2021-09-25 10:18:10 +02:00
Federico Ciardi
10640b2aad
perf: partially replace .concat with .push ( #13609 )
2021-08-14 16:57:06 +02:00
Clark Jacobsohn
cca97d1e78
Fix: Only create @babel/node IPC channel when needed ( #13295 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-05-11 23:59:07 +02:00
KevinMolotov
b360d8d614
fix: make @babel/node spawned process bubble msg ( #13037 )
...
* Add ipc test
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-03-23 14:36:49 +01:00
Nicolò Ribaudo
d04842a700
Avoid using CJS globals in internal source files ( #12963 )
...
* Lint against CJS globals in modules
* Use `import.meta.url` instead of `__filename` in `src` files
* Prepare fixtures runner for `import.meta.url`
* Use `import.meta.url` instead of `__filename` in `test/index` files
* Remove `__dirname` from remaining test files
dirname
* Avoid using `module` in `src` files
* Avoid using `require` in `src` files
* Avoid using `require` in `test` files
* Update `@types/node`
* Compile dynamic import in `@babel/node`
* Fix windows
* Use `@babel/plugin-proposal-dynamic-import` from npm
2021-03-05 19:55:36 +01:00
Huáng Jùnliàng
74dc70aabb
fix: create IPC channel for spawned babel-node process ( #12836 )
2021-02-21 19:31:36 +01:00
Huáng Jùnliàng
4b8a6a8e80
Polish @babel/node REPL ( #12786 )
2021-02-11 00:34:29 +01:00
Nicolò Ribaudo
e735266dee
Avoid importing .json files ( #12759 )
...
* Avoid importing `.json` files
* Use ESold in babel.config.json
* Use `import/extensions` eslint plugin
2021-02-05 23:34:36 +01:00
Huáng Jùnliàng
6e8250a3a6
fix: place _babel-node after process.execArgv ( #12638 )
...
Workaround https://github.com/nodejs/node/issues/36948
2021-01-18 15:15:03 -05:00
Nicolò Ribaudo
98aa72ca74
Use native Node.js functions when available ( #12458 )
2020-12-09 00:03:47 +01:00
Nicolò Ribaudo
208acb1d6c
Use require.resolve instead of the resolve package ( #12439 )
2020-12-04 08:57:09 +01:00
Mark
4141793a37
babel-node: support require flag in repl mode ( #12297 )
2020-11-04 01:39:33 +01:00
Bogdan Savluk
4108524856
Update prettier to v2 ( #11579 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-06-07 22:21:33 +02:00
Huáng Jùnliàng
facfd4d8a1
Enable no-process-exit ESLint rule ( #11025 )
2020-01-20 00:48:47 +01:00
Huáng Jùnliàng
903ad6160d
Filename detection should respect short flags ( #10763 )
...
* chore: add test files
# Conflicts:
# packages/babel-node/package.json
* fix: respect short flags when finding filename index
* fix: use attributeName for kebab-case
2020-01-10 20:46:19 -05:00
ZYSzys
646409b23e
Use babel > as prompt in babel-node ( #9695 )
2020-01-10 03:04:02 +01:00
Nicolò Ribaudo
3d7bc435d5
Allow -r from node_modules with @babel/node ( #10871 )
2019-12-17 23:31:26 -06:00
Brian Ng
c37361ba2e
Bump prettier@1.19.1 ( #10728 )
2019-11-16 16:05:40 +01:00
Bryan Wain
98b14843ba
Remove babel polyfill dependency of babel-node ( #10429 )
2019-09-11 01:57:44 +02:00
Dword
fc8e14264c
Remove process.exit(1) from babel-node ( #9758 )
...
Because it breaked graceful shutdown of the sub process.
2019-09-06 14:32:45 -04:00
Min ho Kim
0bf0ae3410
Fix typos ( #10153 )
2019-07-03 15:51:48 +02:00
Maël Nison
d7801c644c
Prevents exception on PnP ( #9951 )
2019-06-02 00:55:44 +02:00
Nicolò Ribaudo
5da94bff87
[babel-node] Do not hardcode node flags ( #9914 )
2019-05-04 23:40:06 +02:00
Nicolò Ribaudo
9b005dedfd
Fix --root-mode option in babel-node ( #9148 )
2018-12-07 22:47:56 +01:00
wtgtybhertgeghgtwtg
c4d6f6dcce
Pass rootMode from @babel/node. ( #9078 )
...
* Pass `root-mode` from `@babel/node`.
* Filter `babelOptions`.
2018-11-28 21:29:38 -08:00
Logan Smyth
90bebe7186
Pass the caller.name option in Babel's own callers.
2018-08-20 10:27:54 -07:00
Sam Grace
6476a0d089
Whitelist experimental-modules flag for babel-node ( #8336 ) [skip ci]
2018-08-06 11:45:38 -04:00
Logan Smyth
cf8058e5b6
Handle kebab-case args in babel-node. ( #8046 )
2018-05-25 08:40:52 -07:00
Logan Smyth
c8faa34848
Only set '.babelrc' option if user explicitly set it.
2018-05-23 09:25:43 -07:00
Logan Smyth
5bcca0123a
Add --env-name option to babel-node, like babel-cli's option.
2018-05-23 09:25:05 -07:00
Logan Smyth
1d987fb655
Add --config-file option to babel-node, like babel-cli's option.
2018-05-23 09:23:50 -07:00
Sven SAULEAU
52b800decb
Add no-babelrc option in babel-node ( #5621 )
...
<!--
Before making a PR please make sure to read our contributing guidelines
https://github.com/babel/babel/blob/master/CONTRIBUTING.md
For any issue references: Add a comma-separated list of a [closing word](https://help.github.com/articles/closing-issues-via-commit-messages/ ) followed by the ticket number fixed by the PR
-->
| Q | A <!--(yes/no) -->
| ------------------------ | ---
| Patch: Bug Fix? |
| Major: Breaking Change? |
| Minor: New Feature? | y
| Deprecations? |
| Spec Compliancy? |
| Tests Added/Pass? | y/y
| Fixed Tickets | #5616
| License | MIT
| Doc PR | <!-- if yes, add `[skip ci]` to your commit message to skip CI builds -->
| Dependency Changes |
<!-- Describe your changes below in as much detail as possible -->
Once merged I will make the corresponding documentation changes on the website (in a 7 branch)
2018-05-23 09:19:39 -07:00
Rocky Meza
9dab691302
Fix typo [skip-ci] ( #7897 )
...
Thanks!
2018-05-09 20:28:34 -04:00
Henry Zhu
9a26c2b07a
Merge pull request #7471 from yakotika/master
...
added support Node's --require and -r flags in babel-node
2018-03-27 14:44:35 -04:00
Daniel Tschinder
f0d681a238
Remove obsolete max-len eslint rule and reformat some stuff to fit ( #7602 )
2018-03-20 08:51:47 -05:00
Daniel Tschinder
da2aea31f5
Fix —require
2018-03-14 13:26:07 +01:00
Brian Ng
7e423de911
Restore passing SIGINT signals to spawned child processes ( #7511 )
2018-03-07 14:10:11 +01:00
Abu Shamsutdinov
8317f8ab14
added support Node's --require and -r flags in babel-node
2018-03-07 12:38:57 +03:00
Alasdair McLeay
960fa66c9e
Reinstate --inspect-brk, lost when making babel-node standalone ( #7423 ) [skip ci]
2018-02-23 15:18:13 -05:00
Mateusz Burzyński
47fa189053
Scoped: update more babel- to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
cde0054227
Scoped: change src imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Brian Ng
6d965c0926
Make babel-node a standalone package ( #6023 )
...
* Make babel-node a standalone package
* New package `babel-node` previously `babel-cli/bin/babel-node`
* updates
2017-07-29 22:26:28 -04:00