@webpieces/code-rules 0.4.574 → 0.4.575

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,13 +1,9 @@
1
1
  {
2
2
  "name": "@webpieces/code-rules",
3
- "version": "0.4.574",
3
+ "version": "0.4.575",
4
4
  "description": "Standalone code validation rules extracted from architecture-validators, no Nx dependency required",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
7
- "bin": {
8
- "wp-validate-code": "./bin/wp-validate-code.js",
9
- "wp-ci": "./bin/wp-ci.js"
10
- },
11
7
  "files": [
12
8
  "src/**/*",
13
9
  "bin/**/*"
@@ -20,12 +16,16 @@
20
16
  "directory": "packages/tooling/code-rules"
21
17
  },
22
18
  "dependencies": {
23
- "@webpieces/rules-config": "0.4.574",
19
+ "@webpieces/rules-config": "0.4.575",
24
20
  "@inversifyjs/binding-decorators": "1.1.5",
25
21
  "inversify": "7.10.4",
26
22
  "reflect-metadata": "0.2.2"
27
23
  },
28
24
  "publishConfig": {
25
+ "bin": {
26
+ "wp-validate-code": "./src/cli.js",
27
+ "wp-ci": "./src/wp-ci.js"
28
+ },
29
29
  "access": "public"
30
30
  },
31
31
  "types": "./src/index.d.ts"
package/bin/wp-ci.js DELETED
@@ -1,27 +0,0 @@
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/wp-ci.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', 'wp-ci.js');
19
-
20
- if (!fs.existsSync(compiled)) {
21
- console.error(
22
- ' [code-rules] wp-ci: package not built yet. Run the build first, or install from npm.',
23
- );
24
- process.exit(1);
25
- }
26
-
27
- require(compiled);
@@ -1,27 +0,0 @@
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/cli.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', 'cli.js');
19
-
20
- if (!fs.existsSync(compiled)) {
21
- console.error(
22
- ' [code-rules] wp-validate-code: package not built yet. Run the build first, or install from npm.',
23
- );
24
- process.exit(1);
25
- }
26
-
27
- require(compiled);