Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3beaf9c

Browse filesBrowse files
nodejs-github-botaduh95
authored andcommitted
deps: update amaro to 1.1.8
PR-URL: #62151 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
1 parent 53afb0e commit 3beaf9c
Copy full SHA for 3beaf9c

5 files changed

+29-9Lines changed: 29 additions & 9 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/amaro/README.md‎

Copy file name to clipboardExpand all lines: deps/amaro/README.md
+23-3Lines changed: 23 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,31 @@ node --import="amaro/strip" file.ts
4141
Enabling TypeScript feature transformation:
4242

4343
```bash
44-
node --experimental-transform-types --import="amaro/transform" file.ts
44+
node --enable-source-maps --import="amaro/transform" file.ts
4545
```
4646

47-
> Note that the "amaro/transform" loader should be used with `--experimental-transform-types` flag, or
48-
> at least with `--enable-source-maps` flag, to preserve the original source maps.
47+
> Note that the `amaro/transform` loader should be used with `--enable-source-maps`
48+
> to preserve accurate source-mapped stack traces.
49+
50+
#### Programmatic registration with `module.register()`
51+
52+
If you want TypeScript to "just work" in an existing codebase without passing `--import` every time, create a small bootstrap file and register Amaro once before loading your TS entrypoint.
53+
54+
```mjs
55+
// bootstrap.mjs
56+
import { register } from "node:module";
57+
58+
register("amaro/strip", import.meta.url);
59+
await import("./src/index.ts");
60+
```
61+
62+
Then start your app through the bootstrap file:
63+
64+
```bash
65+
node --watch ./bootstrap.mjs
66+
```
67+
68+
For transform mode, swap `amaro/strip` with `amaro/transform` and run Node with `--enable-source-maps`.
4969
5070
#### Type stripping in dependencies
5171
Collapse file

‎deps/amaro/dist/index.js‎

Copy file name to clipboardExpand all lines: deps/amaro/dist/index.js
+3-3Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎deps/amaro/dist/package.json‎

Copy file name to clipboardExpand all lines: deps/amaro/dist/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"강동윤 <kdy1997.dev@gmail.com>"
55
],
66
"description": "wasm module for swc",
7-
"version": "1.15.11",
7+
"version": "1.15.18",
88
"license": "Apache-2.0",
99
"repository": {
1010
"type": "git",
Collapse file

‎deps/amaro/package.json‎

Copy file name to clipboardExpand all lines: deps/amaro/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amaro",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"description": "Node.js TypeScript wrapper",
55
"license": "MIT",
66
"type": "commonjs",
Collapse file

‎src/amaro_version.h‎

Copy file name to clipboardExpand all lines: src/amaro_version.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// Refer to tools/dep_updaters/update-amaro.sh
33
#ifndef SRC_AMARO_VERSION_H_
44
#define SRC_AMARO_VERSION_H_
5-
#define AMARO_VERSION "1.1.7"
5+
#define AMARO_VERSION "1.1.8"
66
#endif // SRC_AMARO_VERSION_H_

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.