@webpieces/pr-gate 0.4.505 → 0.4.507
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/bin/wp-check-pr.js +27 -0
- package/bin/wp-cleanup.js +27 -0
- package/bin/wp-finish-update.js +27 -0
- package/bin/wp-finish-upsert-pr.js +27 -0
- package/bin/wp-land-pr.js +27 -0
- package/bin/wp-review-upsert-pr.js +27 -0
- package/bin/wp-start-update.js +27 -0
- package/bin/wp-start-upsert-pr.js +27 -0
- package/package.json +12 -11
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Plain JS shim -> delegates to the compiled TypeScript entry point.
|
|
3
|
+
//
|
|
4
|
+
// Must NOT be converted to TypeScript. pnpm chmods every `bin` target while it links a
|
|
5
|
+
// package, and in THIS workspace a `workspace:*` sibling is linked from its SOURCE dir,
|
|
6
|
+
// long before any build has produced `src/scripts/wp-check-pr.js`. Pointing `bin` straight at the
|
|
7
|
+
// compiled path therefore makes every `pnpm install` print
|
|
8
|
+
// `WARN Failed to create bin ... ENOENT ... chmod` — noise indistinguishable from a real
|
|
9
|
+
// bin-link failure. This file exists in git, so the chmod always succeeds.
|
|
10
|
+
//
|
|
11
|
+
// See setupDebugging.md (Attempt 8) and bin-targets-exist.spec.ts, which fails if any
|
|
12
|
+
// `bin` target in the workspace does not exist on disk.
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
|
|
18
|
+
const compiled = path.join(__dirname, '..', 'src', 'scripts', 'wp-check-pr.js');
|
|
19
|
+
|
|
20
|
+
if (!fs.existsSync(compiled)) {
|
|
21
|
+
console.error(
|
|
22
|
+
' [pr-gate] wp-check-pr: package not built yet. Run the build first, or install from npm.',
|
|
23
|
+
);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
require(compiled);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Plain JS shim -> delegates to the compiled TypeScript entry point.
|
|
3
|
+
//
|
|
4
|
+
// Must NOT be converted to TypeScript. pnpm chmods every `bin` target while it links a
|
|
5
|
+
// package, and in THIS workspace a `workspace:*` sibling is linked from its SOURCE dir,
|
|
6
|
+
// long before any build has produced `src/scripts/wp-cleanup.js`. Pointing `bin` straight at the
|
|
7
|
+
// compiled path therefore makes every `pnpm install` print
|
|
8
|
+
// `WARN Failed to create bin ... ENOENT ... chmod` — noise indistinguishable from a real
|
|
9
|
+
// bin-link failure. This file exists in git, so the chmod always succeeds.
|
|
10
|
+
//
|
|
11
|
+
// See setupDebugging.md (Attempt 8) and bin-targets-exist.spec.ts, which fails if any
|
|
12
|
+
// `bin` target in the workspace does not exist on disk.
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
|
|
18
|
+
const compiled = path.join(__dirname, '..', 'src', 'scripts', 'wp-cleanup.js');
|
|
19
|
+
|
|
20
|
+
if (!fs.existsSync(compiled)) {
|
|
21
|
+
console.error(
|
|
22
|
+
' [pr-gate] wp-cleanup: package not built yet. Run the build first, or install from npm.',
|
|
23
|
+
);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
require(compiled);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Plain JS shim -> delegates to the compiled TypeScript entry point.
|
|
3
|
+
//
|
|
4
|
+
// Must NOT be converted to TypeScript. pnpm chmods every `bin` target while it links a
|
|
5
|
+
// package, and in THIS workspace a `workspace:*` sibling is linked from its SOURCE dir,
|
|
6
|
+
// long before any build has produced `src/scripts/wp-finish-update.js`. Pointing `bin` straight at the
|
|
7
|
+
// compiled path therefore makes every `pnpm install` print
|
|
8
|
+
// `WARN Failed to create bin ... ENOENT ... chmod` — noise indistinguishable from a real
|
|
9
|
+
// bin-link failure. This file exists in git, so the chmod always succeeds.
|
|
10
|
+
//
|
|
11
|
+
// See setupDebugging.md (Attempt 8) and bin-targets-exist.spec.ts, which fails if any
|
|
12
|
+
// `bin` target in the workspace does not exist on disk.
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
|
|
18
|
+
const compiled = path.join(__dirname, '..', 'src', 'scripts', 'wp-finish-update.js');
|
|
19
|
+
|
|
20
|
+
if (!fs.existsSync(compiled)) {
|
|
21
|
+
console.error(
|
|
22
|
+
' [pr-gate] wp-finish-update: package not built yet. Run the build first, or install from npm.',
|
|
23
|
+
);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
require(compiled);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Plain JS shim -> delegates to the compiled TypeScript entry point.
|
|
3
|
+
//
|
|
4
|
+
// Must NOT be converted to TypeScript. pnpm chmods every `bin` target while it links a
|
|
5
|
+
// package, and in THIS workspace a `workspace:*` sibling is linked from its SOURCE dir,
|
|
6
|
+
// long before any build has produced `src/scripts/git-finishUpsertPr.js`. Pointing `bin` straight at the
|
|
7
|
+
// compiled path therefore makes every `pnpm install` print
|
|
8
|
+
// `WARN Failed to create bin ... ENOENT ... chmod` — noise indistinguishable from a real
|
|
9
|
+
// bin-link failure. This file exists in git, so the chmod always succeeds.
|
|
10
|
+
//
|
|
11
|
+
// See setupDebugging.md (Attempt 8) and bin-targets-exist.spec.ts, which fails if any
|
|
12
|
+
// `bin` target in the workspace does not exist on disk.
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
|
|
18
|
+
const compiled = path.join(__dirname, '..', 'src', 'scripts', 'git-finishUpsertPr.js');
|
|
19
|
+
|
|
20
|
+
if (!fs.existsSync(compiled)) {
|
|
21
|
+
console.error(
|
|
22
|
+
' [pr-gate] wp-finish-upsert-pr: package not built yet. Run the build first, or install from npm.',
|
|
23
|
+
);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
require(compiled);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Plain JS shim -> delegates to the compiled TypeScript entry point.
|
|
3
|
+
//
|
|
4
|
+
// Must NOT be converted to TypeScript. pnpm chmods every `bin` target while it links a
|
|
5
|
+
// package, and in THIS workspace a `workspace:*` sibling is linked from its SOURCE dir,
|
|
6
|
+
// long before any build has produced `src/scripts/wp-land-pr.js`. Pointing `bin` straight at the
|
|
7
|
+
// compiled path therefore makes every `pnpm install` print
|
|
8
|
+
// `WARN Failed to create bin ... ENOENT ... chmod` — noise indistinguishable from a real
|
|
9
|
+
// bin-link failure. This file exists in git, so the chmod always succeeds.
|
|
10
|
+
//
|
|
11
|
+
// See setupDebugging.md (Attempt 8) and bin-targets-exist.spec.ts, which fails if any
|
|
12
|
+
// `bin` target in the workspace does not exist on disk.
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
|
|
18
|
+
const compiled = path.join(__dirname, '..', 'src', 'scripts', 'wp-land-pr.js');
|
|
19
|
+
|
|
20
|
+
if (!fs.existsSync(compiled)) {
|
|
21
|
+
console.error(
|
|
22
|
+
' [pr-gate] wp-land-pr: package not built yet. Run the build first, or install from npm.',
|
|
23
|
+
);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
require(compiled);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Plain JS shim -> delegates to the compiled TypeScript entry point.
|
|
3
|
+
//
|
|
4
|
+
// Must NOT be converted to TypeScript. pnpm chmods every `bin` target while it links a
|
|
5
|
+
// package, and in THIS workspace a `workspace:*` sibling is linked from its SOURCE dir,
|
|
6
|
+
// long before any build has produced `src/scripts/wp-review-upsert-pr.js`. Pointing `bin` straight at the
|
|
7
|
+
// compiled path therefore makes every `pnpm install` print
|
|
8
|
+
// `WARN Failed to create bin ... ENOENT ... chmod` — noise indistinguishable from a real
|
|
9
|
+
// bin-link failure. This file exists in git, so the chmod always succeeds.
|
|
10
|
+
//
|
|
11
|
+
// See setupDebugging.md (Attempt 8) and bin-targets-exist.spec.ts, which fails if any
|
|
12
|
+
// `bin` target in the workspace does not exist on disk.
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
|
|
18
|
+
const compiled = path.join(__dirname, '..', 'src', 'scripts', 'wp-review-upsert-pr.js');
|
|
19
|
+
|
|
20
|
+
if (!fs.existsSync(compiled)) {
|
|
21
|
+
console.error(
|
|
22
|
+
' [pr-gate] wp-review-upsert-pr: package not built yet. Run the build first, or install from npm.',
|
|
23
|
+
);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
require(compiled);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Plain JS shim -> delegates to the compiled TypeScript entry point.
|
|
3
|
+
//
|
|
4
|
+
// Must NOT be converted to TypeScript. pnpm chmods every `bin` target while it links a
|
|
5
|
+
// package, and in THIS workspace a `workspace:*` sibling is linked from its SOURCE dir,
|
|
6
|
+
// long before any build has produced `src/scripts/wp-start-update.js`. Pointing `bin` straight at the
|
|
7
|
+
// compiled path therefore makes every `pnpm install` print
|
|
8
|
+
// `WARN Failed to create bin ... ENOENT ... chmod` — noise indistinguishable from a real
|
|
9
|
+
// bin-link failure. This file exists in git, so the chmod always succeeds.
|
|
10
|
+
//
|
|
11
|
+
// See setupDebugging.md (Attempt 8) and bin-targets-exist.spec.ts, which fails if any
|
|
12
|
+
// `bin` target in the workspace does not exist on disk.
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
|
|
18
|
+
const compiled = path.join(__dirname, '..', 'src', 'scripts', 'wp-start-update.js');
|
|
19
|
+
|
|
20
|
+
if (!fs.existsSync(compiled)) {
|
|
21
|
+
console.error(
|
|
22
|
+
' [pr-gate] wp-start-update: package not built yet. Run the build first, or install from npm.',
|
|
23
|
+
);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
require(compiled);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Plain JS shim -> delegates to the compiled TypeScript entry point.
|
|
3
|
+
//
|
|
4
|
+
// Must NOT be converted to TypeScript. pnpm chmods every `bin` target while it links a
|
|
5
|
+
// package, and in THIS workspace a `workspace:*` sibling is linked from its SOURCE dir,
|
|
6
|
+
// long before any build has produced `src/scripts/wp-start-upsert-pr.js`. Pointing `bin` straight at the
|
|
7
|
+
// compiled path therefore makes every `pnpm install` print
|
|
8
|
+
// `WARN Failed to create bin ... ENOENT ... chmod` — noise indistinguishable from a real
|
|
9
|
+
// bin-link failure. This file exists in git, so the chmod always succeeds.
|
|
10
|
+
//
|
|
11
|
+
// See setupDebugging.md (Attempt 8) and bin-targets-exist.spec.ts, which fails if any
|
|
12
|
+
// `bin` target in the workspace does not exist on disk.
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
|
|
18
|
+
const compiled = path.join(__dirname, '..', 'src', 'scripts', 'wp-start-upsert-pr.js');
|
|
19
|
+
|
|
20
|
+
if (!fs.existsSync(compiled)) {
|
|
21
|
+
console.error(
|
|
22
|
+
' [pr-gate] wp-start-upsert-pr: package not built yet. Run the build first, or install from npm.',
|
|
23
|
+
);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
require(compiled);
|
package/package.json
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webpieces/pr-gate",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.507",
|
|
4
4
|
"description": "Gated PR system: 3-point squash-merge, merge validation gate, and red/yellow/green PR dashboard. Standalone scripts, no Nx dependency required.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"wp-finish-upsert-pr": "./
|
|
9
|
-
"wp-start-upsert-pr": "./
|
|
10
|
-
"wp-start-update": "./
|
|
11
|
-
"wp-finish-update": "./
|
|
12
|
-
"wp-cleanup": "./
|
|
13
|
-
"wp-land-pr": "./
|
|
14
|
-
"wp-check-pr": "./
|
|
15
|
-
"wp-review-upsert-pr": "./
|
|
8
|
+
"wp-finish-upsert-pr": "./bin/wp-finish-upsert-pr.js",
|
|
9
|
+
"wp-start-upsert-pr": "./bin/wp-start-upsert-pr.js",
|
|
10
|
+
"wp-start-update": "./bin/wp-start-update.js",
|
|
11
|
+
"wp-finish-update": "./bin/wp-finish-update.js",
|
|
12
|
+
"wp-cleanup": "./bin/wp-cleanup.js",
|
|
13
|
+
"wp-land-pr": "./bin/wp-land-pr.js",
|
|
14
|
+
"wp-check-pr": "./bin/wp-check-pr.js",
|
|
15
|
+
"wp-review-upsert-pr": "./bin/wp-review-upsert-pr.js"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
|
-
"src/**/*"
|
|
18
|
+
"src/**/*",
|
|
19
|
+
"bin/**/*"
|
|
19
20
|
],
|
|
20
21
|
"author": "Dean Hiller",
|
|
21
22
|
"license": "Apache-2.0",
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
"directory": "packages/tooling/pr-gate"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"@webpieces/rules-config": "0.4.
|
|
29
|
+
"@webpieces/rules-config": "0.4.507",
|
|
29
30
|
"@inversifyjs/binding-decorators": "1.1.5",
|
|
30
31
|
"inversify": "7.10.4",
|
|
31
32
|
"reflect-metadata": "0.2.2"
|