@pnpm/assert-project 0.0.0-20230605-20230605142810

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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2016 Rico Sta. Cruz and other contributors
4
+ Copyright (c) 2016-2023 Zoltan Kochan and other contributors
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # @pnpm/assert-project
2
+
3
+ > Utils for testing projects that use pnpm
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ pnpm install -D @pnpm/assert-project
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import test = require('tape')
15
+ import { assertProject } from '@pnpm/assert-project'
16
+
17
+ test('...', async t => {
18
+ // ...
19
+ const project = assertProject(t, pathToProject)
20
+
21
+ await project.has('foo')
22
+ // Test fails if project has no foo in node_modules
23
+ })
24
+ ```
25
+
26
+ ## License
27
+
28
+ MIT
package/lib/index.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ import { type LockfileV6 as Lockfile, type ProjectSnapshotV6 as ProjectSnapshot } from '@pnpm/lockfile-types';
2
+ import { type Modules } from '@pnpm/modules-yaml';
3
+ import isExecutable from './isExecutable';
4
+ export { isExecutable, type Modules };
5
+ export type RawLockfile = Lockfile & Partial<ProjectSnapshot>;
6
+ export interface Project {
7
+ requireModule: (moduleName: string) => any;
8
+ dir: () => string;
9
+ has: (pkgName: string, modulesDir?: string) => Promise<void>;
10
+ hasNot: (pkgName: string, modulesDir?: string) => Promise<void>;
11
+ getStorePath: () => Promise<string>;
12
+ resolve: (pkgName: string, version?: string, relativePath?: string) => Promise<string>;
13
+ getPkgIndexFilePath: (pkgName: string, version?: string) => Promise<string>;
14
+ cafsHas: (pkgName: string, version?: string) => Promise<void>;
15
+ cafsHasNot: (pkgName: string, version?: string) => Promise<void>;
16
+ storeHas: (pkgName: string, version?: string) => Promise<string>;
17
+ storeHasNot: (pkgName: string, version?: string) => Promise<void>;
18
+ isExecutable: (pathToExe: string) => Promise<void>;
19
+ /**
20
+ * TODO: Remove the `Required<T>` cast.
21
+ *
22
+ * https://github.com/microsoft/TypeScript/pull/32695 might help with this.
23
+ */
24
+ readCurrentLockfile: () => Promise<Required<RawLockfile>>;
25
+ readModulesManifest: () => Promise<Modules | null>;
26
+ /**
27
+ * TODO: Remove the `Required<T>` cast.
28
+ *
29
+ * https://github.com/microsoft/TypeScript/pull/32695 might help with this.
30
+ */
31
+ readLockfile: (lockfileName?: string) => Promise<Required<RawLockfile>>;
32
+ writePackageJson: (pkgJson: object) => Promise<void>;
33
+ }
34
+ export declare function assertProject(projectPath: string, encodedRegistryName?: string): Project;
package/lib/index.js ADDED
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.assertProject = exports.isExecutable = void 0;
7
+ const path_1 = __importDefault(require("path"));
8
+ const assert_store_1 = require("@pnpm/assert-store");
9
+ const constants_1 = require("@pnpm/constants");
10
+ const modules_yaml_1 = require("@pnpm/modules-yaml");
11
+ const registry_mock_1 = require("@pnpm/registry-mock");
12
+ const read_yaml_file_1 = __importDefault(require("read-yaml-file"));
13
+ const path_exists_1 = __importDefault(require("path-exists"));
14
+ const write_pkg_1 = __importDefault(require("write-pkg"));
15
+ const isExecutable_1 = __importDefault(require("./isExecutable"));
16
+ exports.isExecutable = isExecutable_1.default;
17
+ function assertProject(projectPath, encodedRegistryName) {
18
+ const ern = encodedRegistryName ?? `localhost+${registry_mock_1.REGISTRY_MOCK_PORT}`;
19
+ const modules = path_1.default.join(projectPath, 'node_modules');
20
+ let cachedStore;
21
+ async function getStoreInstance() {
22
+ if (!cachedStore) {
23
+ const modulesYaml = await (0, modules_yaml_1.readModulesManifest)(modules);
24
+ if (modulesYaml == null) {
25
+ throw new Error(`Cannot find module store. No .modules.yaml found at "${modules}"`);
26
+ }
27
+ const storePath = modulesYaml.storeDir;
28
+ cachedStore = {
29
+ storePath,
30
+ ...(0, assert_store_1.assertStore)(storePath, ern),
31
+ };
32
+ }
33
+ return cachedStore;
34
+ }
35
+ async function getVirtualStoreDir() {
36
+ const modulesYaml = await (0, modules_yaml_1.readModulesManifest)(modules);
37
+ if (modulesYaml == null) {
38
+ return path_1.default.join(modules, '.pnpm');
39
+ }
40
+ return modulesYaml.virtualStoreDir;
41
+ }
42
+ // eslint-disable-next-line
43
+ const ok = (value) => expect(value).toBeTruthy();
44
+ // eslint-disable-next-line
45
+ const notOk = (value) => expect(value).toBeFalsy();
46
+ return {
47
+ dir: () => projectPath,
48
+ requireModule(pkgName) {
49
+ // eslint-disable-next-line
50
+ return require(path_1.default.join(modules, pkgName));
51
+ },
52
+ async has(pkgName, _modulesDir) {
53
+ const md = _modulesDir ? path_1.default.join(projectPath, _modulesDir) : modules;
54
+ ok(await (0, path_exists_1.default)(path_1.default.join(md, pkgName)));
55
+ },
56
+ async hasNot(pkgName, _modulesDir) {
57
+ const md = _modulesDir ? path_1.default.join(projectPath, _modulesDir) : modules;
58
+ notOk(await (0, path_exists_1.default)(path_1.default.join(md, pkgName)));
59
+ },
60
+ async getStorePath() {
61
+ const store = await getStoreInstance();
62
+ return store.storePath;
63
+ },
64
+ async resolve(pkgName, version, relativePath) {
65
+ const store = await getStoreInstance();
66
+ return store.resolve(pkgName, version, relativePath);
67
+ },
68
+ async getPkgIndexFilePath(pkgName, version) {
69
+ const store = await getStoreInstance();
70
+ return store.getPkgIndexFilePath(pkgName, version);
71
+ },
72
+ async cafsHas(pkgName, version) {
73
+ const store = await getStoreInstance();
74
+ return store.cafsHas(pkgName, version);
75
+ },
76
+ async cafsHasNot(pkgName, version) {
77
+ const store = await getStoreInstance();
78
+ return store.cafsHasNot(pkgName, version);
79
+ },
80
+ async storeHas(pkgName, version) {
81
+ const store = await getStoreInstance();
82
+ return store.resolve(pkgName, version);
83
+ },
84
+ async storeHasNot(pkgName, version) {
85
+ try {
86
+ const store = await getStoreInstance();
87
+ return store.storeHasNot(pkgName, version);
88
+ }
89
+ catch (err) { // eslint-disable-line
90
+ if (err.message.startsWith('Cannot find module store')) {
91
+ return;
92
+ }
93
+ throw err;
94
+ }
95
+ },
96
+ async isExecutable(pathToExe) {
97
+ return (0, isExecutable_1.default)(ok, path_1.default.join(modules, pathToExe));
98
+ },
99
+ async readCurrentLockfile() {
100
+ try {
101
+ return await (0, read_yaml_file_1.default)(path_1.default.join(await getVirtualStoreDir(), 'lock.yaml'));
102
+ }
103
+ catch (err) { // eslint-disable-line
104
+ if (err.code === 'ENOENT')
105
+ return null;
106
+ throw err;
107
+ }
108
+ },
109
+ readModulesManifest: async () => (0, modules_yaml_1.readModulesManifest)(modules),
110
+ async readLockfile(lockfileName = constants_1.WANTED_LOCKFILE) {
111
+ try {
112
+ return await (0, read_yaml_file_1.default)(path_1.default.join(projectPath, lockfileName));
113
+ }
114
+ catch (err) { // eslint-disable-line
115
+ if (err.code === 'ENOENT')
116
+ return null;
117
+ throw err;
118
+ }
119
+ },
120
+ async writePackageJson(pkgJson) {
121
+ return (0, write_pkg_1.default)(projectPath, pkgJson); // eslint-disable-line
122
+ },
123
+ };
124
+ }
125
+ exports.assertProject = assertProject;
126
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAuB;AACvB,qDAAgD;AAChD,+CAAiD;AAEjD,qDAAsE;AACtE,uDAAwD;AACxD,oEAAyC;AACzC,8DAAgC;AAChC,0DAAgC;AAChC,kEAAyC;AAEhC,uBAFF,sBAAY,CAEE;AAkCrB,SAAgB,aAAa,CAAE,WAAmB,EAAE,mBAA4B;IAC9E,MAAM,GAAG,GAAG,mBAAmB,IAAI,aAAa,kCAAkB,EAAE,CAAA;IACpE,MAAM,OAAO,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAA;IAEtD,IAAI,WAQH,CAAA;IACD,KAAK,UAAU,gBAAgB;QAC7B,IAAI,CAAC,WAAW,EAAE;YAChB,MAAM,WAAW,GAAG,MAAM,IAAA,kCAAmB,EAAC,OAAO,CAAC,CAAA;YACtD,IAAI,WAAW,IAAI,IAAI,EAAE;gBACvB,MAAM,IAAI,KAAK,CAAC,wDAAwD,OAAO,GAAG,CAAC,CAAA;aACpF;YACD,MAAM,SAAS,GAAG,WAAW,CAAC,QAAQ,CAAA;YACtC,WAAW,GAAG;gBACZ,SAAS;gBACT,GAAG,IAAA,0BAAW,EAAC,SAAS,EAAE,GAAG,CAAC;aAC/B,CAAA;SACF;QACD,OAAO,WAAW,CAAA;IACpB,CAAC;IACD,KAAK,UAAU,kBAAkB;QAC/B,MAAM,WAAW,GAAG,MAAM,IAAA,kCAAm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AAsB;gBACzC,IAAI,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC,EAAE;oBACtD,OAAM;iBACP;gBACD,MAAM,GAAG,CAAA;aACV;QACH,CAAC;QACD,KAAK,CAAC,YAAY,CAAE,SAAiB;YACnC,OAAO,IAAA,sBAAY,EAAC,EAAE,EAAE,cAAI,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA;QACxD,CAAC;QACD,KAAK,CAAC,mBAAmB;YACvB,IAAI;gBACF,OAAO,MAAM,IAAA,wBAAY,EAAC,cAAI,CAAC,IAAI,CAAC,MAAM,kBAAkB,EAAE,EAAE,WAAW,CAAC,CAAC,CAAA;aAC9E;YAAC,OAAO,GAAQ,EAAE,EAAE,sBAAsB;gBACzC,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ;oBAAE,OAAO,IAAK,CAAA;gBACvC,MAAM,GAAG,CAAA;aACV;QACH,CAAC;QACD,mBAAmB,EAAE,KAAK,IAAI,EAAE,CAAC,IAAA,kCAAmB,EAAC,OAAO,CAAC;QAC7D,KAAK,CAAC,YAAY,CAAE,eAAuB,2BAAe;YACxD,IAAI;gBACF,OAAO,MAAM,IAAA,wBAAY,EAAC,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,CAAA;aAChE;YAAC,OAAO,GAAQ,EAAE,EAAE,sBAAsB;gBACzC,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ;oBAAE,OAAO,IAAK,CAAA;gBACvC,MAAM,GAAG,CAAA;aACV;QACH,CAAC;QACD,KAAK,CAAC,gBAAgB,CAAE,OAAe;YACrC,OAAO,IAAA,mBAAQ,EAAC,WAAW,EAAE,OAAc,CAAC,CAAA,CAAC,sBAAsB;QACrE,CAAC;KACF,CAAA;AACH,CAAC;AAhHD,sCAgHC"}
@@ -0,0 +1,2 @@
1
+ declare const _default: (ok: (value: any, comment: string) => void, filePath: string) => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const fs_1 = require("fs");
7
+ const util_1 = require("util");
8
+ const is_windows_1 = __importDefault(require("is-windows"));
9
+ const isexe_1 = __importDefault(require("isexe"));
10
+ const IS_WINDOWS = (0, is_windows_1.default)();
11
+ const isexe = (0, util_1.promisify)(isexe_1.default);
12
+ // eslint-disable-next-line
13
+ exports.default = async (ok, filePath) => {
14
+ if (IS_WINDOWS) {
15
+ ok(await isexe(`${filePath}.cmd`), `${filePath}.cmd is executable`);
16
+ return;
17
+ }
18
+ const stat = await fs_1.promises.stat(filePath);
19
+ ok((stat.mode & 0o111) === 0o111, `${filePath} is executable`);
20
+ ok(stat.isFile(), `${filePath} refers to a file`);
21
+ };
22
+ //# sourceMappingURL=isExecutable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isExecutable.js","sourceRoot":"","sources":["../src/isExecutable.ts"],"names":[],"mappings":";;;;;AAAA,2BAAmC;AACnC,+BAAgC;AAChC,4DAAkC;AAClC,kDAA2B;AAE3B,MAAM,UAAU,GAAG,IAAA,oBAAS,GAAE,CAAA;AAC9B,MAAM,KAAK,GAAG,IAAA,gBAAS,EAAC,eAAO,CAAC,CAAA;AAEhC,2BAA2B;AAC3B,kBAAe,KAAK,EAAE,EAAyC,EAAE,QAAgB,EAAE,EAAE;IACnF,IAAI,UAAU,EAAE;QACd,EAAE,CAAC,MAAM,KAAK,CAAC,GAAG,QAAQ,MAAM,CAAC,EAAE,GAAG,QAAQ,oBAAoB,CAAC,CAAA;QACnE,OAAM;KACP;IAED,MAAM,IAAI,GAAG,MAAM,aAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACpC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,KAAK,EAAE,GAAG,QAAQ,gBAAgB,CAAC,CAAA;IAC9D,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,QAAQ,mBAAmB,CAAC,CAAA;AACnD,CAAC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@pnpm/assert-project",
3
+ "description": "Utils for testing projects that use pnpm",
4
+ "version": "0.0.0-20230605-20230605142810",
5
+ "author": {
6
+ "name": "Zoltan Kochan",
7
+ "email": "z@kochan.io",
8
+ "url": "https://www.kochan.io/"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/pnpm/pnpm/issues"
12
+ },
13
+ "main": "lib/index.js",
14
+ "types": "lib/index.d.ts",
15
+ "files": [
16
+ "lib/"
17
+ ],
18
+ "devDependencies": {
19
+ "@types/is-windows": "^1.0.0",
20
+ "@types/isexe": "2.0.1",
21
+ "@types/node": "^14.18.48",
22
+ "@pnpm/assert-project": "0.0.0-20230605-20230605142810"
23
+ },
24
+ "directories": {
25
+ "test": "test"
26
+ },
27
+ "homepage": "https://github.com/pnpm/pnpm/blob/master/privatePackages/assert-project#readme",
28
+ "keywords": [],
29
+ "license": "MIT",
30
+ "engines": {
31
+ "node": ">=10"
32
+ },
33
+ "repository": "https://github.com/pnpm/pnpm/blob/master/privatePackages/assert-project",
34
+ "dependencies": {
35
+ "@pnpm/registry-mock": "3.8.0",
36
+ "is-windows": "^1.0.2",
37
+ "isexe": "2.0.0",
38
+ "path-exists": "^4.0.0",
39
+ "read-yaml-file": "^2.1.0",
40
+ "write-pkg": "4.0.0",
41
+ "@pnpm/modules-yaml": "12.1.1",
42
+ "@pnpm/constants": "0.0.0-20230605-20230605142810",
43
+ "@pnpm/lockfile-types": "5.1.0",
44
+ "@pnpm/types": "9.1.0",
45
+ "@pnpm/assert-store": "1.0.61"
46
+ },
47
+ "scripts": {
48
+ "lint": "eslint src/**/*.ts test/**/*.ts",
49
+ "lint-test": "tslint -c tslint.json --project test",
50
+ "compile": "rimraf tsconfig.tsbuildinfo lib && tsc --build",
51
+ "pretest": "pnpm install -C test/fixture/project --force --no-shared-workspace-lockfile",
52
+ "test": "pnpm pretest && pnpm run compile && jest"
53
+ }
54
+ }