@nx/js 18.3.0-beta.1 → 18.3.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "18.3.0-beta.
|
|
3
|
+
"version": "18.3.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"semver": "^7.5.3",
|
|
58
58
|
"source-map-support": "0.5.19",
|
|
59
59
|
"tslib": "^2.3.0",
|
|
60
|
-
"@nx/devkit": "18.3.0-beta.
|
|
61
|
-
"@nx/workspace": "18.3.0-beta.
|
|
62
|
-
"@nrwl/js": "18.3.0-beta.
|
|
60
|
+
"@nx/devkit": "18.3.0-beta.3",
|
|
61
|
+
"@nx/workspace": "18.3.0-beta.3",
|
|
62
|
+
"@nrwl/js": "18.3.0-beta.3"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"verdaccio": "^5.0.4"
|
|
@@ -629,10 +629,10 @@ function determineEntryFields(options) {
|
|
|
629
629
|
};
|
|
630
630
|
case 'rollup':
|
|
631
631
|
return {
|
|
632
|
-
|
|
632
|
+
// Since we're publishing both formats, skip the type field.
|
|
633
|
+
// Bundlers or Node will determine the entry point to use.
|
|
633
634
|
main: './index.cjs',
|
|
634
635
|
module: './index.js',
|
|
635
|
-
// typings is missing for rollup currently
|
|
636
636
|
};
|
|
637
637
|
case 'vite':
|
|
638
638
|
return {
|
|
@@ -651,9 +651,9 @@ function determineEntryFields(options) {
|
|
|
651
651
|
};
|
|
652
652
|
default: {
|
|
653
653
|
return {
|
|
654
|
-
//
|
|
655
|
-
//
|
|
656
|
-
type:
|
|
654
|
+
// Safest option is to not set a type field.
|
|
655
|
+
// Allow the user to decide which module format their library is using
|
|
656
|
+
type: undefined,
|
|
657
657
|
};
|
|
658
658
|
}
|
|
659
659
|
}
|
|
@@ -357,6 +357,10 @@ function createResolvePackageRoot(customPackageRoot) {
|
|
|
357
357
|
if (!customPackageRoot) {
|
|
358
358
|
return projectNode.data.root;
|
|
359
359
|
}
|
|
360
|
+
if (projectNode.data.root === '.') {
|
|
361
|
+
// TODO This is a temporary workaround to fix NXC-574 until NXC-573 is resolved
|
|
362
|
+
return projectNode.data.root;
|
|
363
|
+
}
|
|
360
364
|
return (0, utils_1.interpolate)(customPackageRoot, {
|
|
361
365
|
workspaceRoot: '',
|
|
362
366
|
projectRoot: projectNode.data.root,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"preid": {
|
|
35
35
|
"type": "string",
|
|
36
|
-
"description": "The optional prerelease identifier to apply to the version, in the case that specifier has been set to prerelease."
|
|
36
|
+
"description": "The optional prerelease identifier to apply to the version, in the case that the specifier argument has been set to prerelease."
|
|
37
37
|
},
|
|
38
38
|
"packageRoot": {
|
|
39
39
|
"type": "string",
|