Skip to content

Commit 82509c3

Browse files
committed
feat: backport ./plugins/nx export to v3 release
1 parent 3db1466 commit 82509c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

nx-transformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Keeping register here in the root for backwards compatibiliy, TODO remove in the next major version
22
console.warn(
3-
"typescript-transform-paths: Calling the top level nx-transformer file is deprecated and will be removed in the future. Use a tool that supports package.json exports",
3+
'typescript-transform-paths: Calling the top level "nx-transformer" file is deprecated and was removed in v4. Use "typescript-transform-paths/plugins/nx" instead',
44
);
55

66
module.exports = require("./dist/plugins/nx-transfomer-plugin").default;

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"default": "./dist/index.js"
1212
},
1313
"./register": "./dist/register-entry.js",
14-
"./nx-transformer": "./dist/plugins/nx-transformer-plugin.js"
14+
"./nx-transformer": "./nx-transformer.js",
15+
"./plugins/nx": "./dist/plugins/nx-transformer-plugin.js"
1516
},
1617
"files": [
1718
"dist",

0 commit comments

Comments
 (0)