@nx/rollup 16.4.0-beta.9 → 16.4.0
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/rollup",
|
|
3
|
-
"version": "16.4.0
|
|
3
|
+
"version": "16.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Rollup contains executors and generators that support building applications using Rollup.",
|
|
6
6
|
"repository": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nrwl/rollup": "16.4.0
|
|
33
|
-
"@nx/devkit": "16.4.0
|
|
34
|
-
"@nx/js": "16.4.0
|
|
32
|
+
"@nrwl/rollup": "16.4.0",
|
|
33
|
+
"@nx/devkit": "16.4.0",
|
|
34
|
+
"@nx/js": "16.4.0",
|
|
35
35
|
"@rollup/plugin-babel": "^5.3.0",
|
|
36
36
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
37
37
|
"@rollup/plugin-image": "^2.1.0",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"types": "./index.d.ts",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "ae698a72748d9f33aa5395aeeaa7b7af436a1dc5"
|
|
58
58
|
}
|
|
@@ -27,7 +27,9 @@ function updatePackageJson(options, context, target, dependencies, packageJson)
|
|
|
27
27
|
packageJson.main = './index.cjs';
|
|
28
28
|
exports['.']['require'] = './index.cjs';
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
if (!options.skipTypeField) {
|
|
31
|
+
packageJson.type = options.format.includes('esm') ? 'module' : 'commonjs';
|
|
32
|
+
}
|
|
31
33
|
// Support for older TS versions < 4.5
|
|
32
34
|
packageJson.types = types;
|
|
33
35
|
// TODO(jack): remove this for Nx 16
|
|
@@ -156,6 +156,11 @@
|
|
|
156
156
|
"type": "boolean",
|
|
157
157
|
"description": "Whether to skip TypeScript type checking.",
|
|
158
158
|
"default": false
|
|
159
|
+
},
|
|
160
|
+
"skipTypeField": {
|
|
161
|
+
"type": "boolean",
|
|
162
|
+
"description": "Prevents 'type' field from being added to compiled package.json file. Use this if you are having an issue with this field.",
|
|
163
|
+
"default": false
|
|
159
164
|
}
|
|
160
165
|
},
|
|
161
166
|
"required": ["tsConfig", "main", "outputPath"],
|