@pnpm/releasing.exportable-manifest 1000.1.7 → 1100.0.1
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/lib/transform/index.js +1 -2
- package/package.json +16 -16
- package/lib/transform/engines.d.ts +0 -12
- package/lib/transform/engines.js +0 -23
package/lib/transform/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { pipe } from 'ramda';
|
|
2
2
|
import { transformBin } from './bin.js';
|
|
3
|
-
import { transformEngines } from './engines.js';
|
|
4
3
|
import { transformPeerDependenciesMeta } from './peerDependenciesMeta.js';
|
|
5
4
|
import { transformRequiredFields } from './requiredFields.js';
|
|
6
5
|
export {};
|
|
7
|
-
export const transform = pipe(transformRequiredFields, transformBin,
|
|
6
|
+
export const transform = pipe(transformRequiredFields, transformBin, transformPeerDependenciesMeta);
|
|
8
7
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/releasing.exportable-manifest",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1100.0.1",
|
|
4
4
|
"description": "Creates an exportable manifest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,23 +27,23 @@
|
|
|
27
27
|
"@npm/types": "^2.1.0",
|
|
28
28
|
"p-map-values": "^0.1.0",
|
|
29
29
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
30
|
-
"@pnpm/bins.resolver": "
|
|
31
|
-
"@pnpm/catalogs.resolver": "
|
|
32
|
-
"@pnpm/
|
|
33
|
-
"@pnpm/
|
|
34
|
-
"@pnpm/
|
|
35
|
-
"@pnpm/types": "
|
|
30
|
+
"@pnpm/bins.resolver": "1100.0.1",
|
|
31
|
+
"@pnpm/catalogs.resolver": "1100.0.0",
|
|
32
|
+
"@pnpm/error": "1100.0.0",
|
|
33
|
+
"@pnpm/resolving.jsr-specifier-parser": "1100.0.0",
|
|
34
|
+
"@pnpm/workspace.project-manifest-reader": "1100.0.1",
|
|
35
|
+
"@pnpm/types": "1101.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/cross-spawn": "^6.0.6",
|
|
39
|
-
"@types/ramda": "0.
|
|
39
|
+
"@types/ramda": "0.31.1",
|
|
40
40
|
"cross-spawn": "^7.0.6",
|
|
41
41
|
"write-yaml-file": "^6.0.0",
|
|
42
|
-
"@pnpm/catalogs.config": "
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/
|
|
45
|
-
"@pnpm/
|
|
46
|
-
"@pnpm/
|
|
42
|
+
"@pnpm/catalogs.config": "1100.0.0",
|
|
43
|
+
"@pnpm/catalogs.types": "1100.0.0",
|
|
44
|
+
"@pnpm/hooks.pnpmfile": "1100.0.1",
|
|
45
|
+
"@pnpm/prepare": "1100.0.1",
|
|
46
|
+
"@pnpm/releasing.exportable-manifest": "1100.0.1"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=22.13"
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
56
|
-
"test": "
|
|
57
|
-
"compile": "tsgo --build &&
|
|
58
|
-
"
|
|
56
|
+
"test": "pn compile && pn --filter=pnpm compile && pn .test",
|
|
57
|
+
"compile": "tsgo --build && pn lint --fix",
|
|
58
|
+
".test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PnpmError } from '@pnpm/error';
|
|
2
|
-
import type { ProjectManifest } from '@pnpm/types';
|
|
3
|
-
import type { ExportedManifest } from './index.js';
|
|
4
|
-
type EnginesField = 'engines' | 'devEngines';
|
|
5
|
-
type Input = Pick<ProjectManifest, EnginesField>;
|
|
6
|
-
type Omitted<Manifest extends Input> = Omit<Manifest, EnginesField>;
|
|
7
|
-
type Output<Manifest extends Input> = Omitted<Manifest> & Pick<ExportedManifest, EnginesField>;
|
|
8
|
-
export declare function transformEngines<Manifest extends Input>(manifest: Manifest): Output<Manifest>;
|
|
9
|
-
export declare class DevEnginesRuntimeConflictError extends PnpmError {
|
|
10
|
-
constructor();
|
|
11
|
-
}
|
|
12
|
-
export {};
|
package/lib/transform/engines.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { PnpmError } from '@pnpm/error';
|
|
2
|
-
export function transformEngines(manifest) {
|
|
3
|
-
if (!manifest.engines?.runtime)
|
|
4
|
-
return manifest;
|
|
5
|
-
if (manifest.engines.runtime && manifest.devEngines?.runtime) {
|
|
6
|
-
throw new DevEnginesRuntimeConflictError();
|
|
7
|
-
}
|
|
8
|
-
const { engines: { runtime, ...engines }, ...rest } = manifest;
|
|
9
|
-
return {
|
|
10
|
-
...rest,
|
|
11
|
-
engines,
|
|
12
|
-
devEngines: {
|
|
13
|
-
...rest.devEngines,
|
|
14
|
-
runtime,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export class DevEnginesRuntimeConflictError extends PnpmError {
|
|
19
|
-
constructor() {
|
|
20
|
-
super('DEV_ENGINES_RUNTIME_CONFLICT', '.devEngines.runtime and .engines.runtime were both defined');
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=engines.js.map
|