From 6e2566870adeb0b2dde91a8f8bb6110344e829dc Mon Sep 17 00:00:00 2001 From: Neizan Date: Tue, 17 Nov 2020 10:15:57 +0100 Subject: [PATCH 1/2] Update package.json: changed pattern "./" to "./*" On Angular when executes command 'ng build --prod': - Generating browser application bundles...(node:16716) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at {{APP_PATH}}\node_modules\tslib\package.json. Update this package.json to use a subpath pattern like "./*". (Use `node --trace-deprecation ...` to show where the warning was created) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e32049e..d0e5dff 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ "import": "./modules/index.js", "default": "./tslib.js" }, - "./": "./" + "./*": "./*" } } From 3d5b50a922b3963e29bfa65ab426fd4445d7bcab Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Mon, 7 Feb 2022 17:10:45 -0800 Subject: [PATCH 2/2] Use both export map syntaxes to support older NodeJS Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d0e5dff..e8af009 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "import": "./modules/index.js", "default": "./tslib.js" }, - "./*": "./*" + "./*": "./*", + "./": "./" } }