@webpieces/code-rules 0.2.120 → 0.2.122

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.
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ // Plain JS shim — delegates to compiled TypeScript.
3
+ // Must NOT be converted to TypeScript (needs to exist pre-build for pnpm bin symlinks).
4
+ 'use strict';
5
+
6
+ const path = require('path');
7
+ const fs = require('fs');
8
+ const compiled = path.join(__dirname, '..', 'src', 'cli.js');
9
+
10
+ if (fs.existsSync(compiled)) {
11
+ require(compiled);
12
+ } else {
13
+ console.error(' [code-rules] Package not built yet. Run the build first, or install from npm.');
14
+ process.exit(1);
15
+ }
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@webpieces/code-rules",
3
- "version": "0.2.120",
3
+ "version": "0.2.122",
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
7
  "bin": {
8
- "wp-validate-code": "./src/cli.js"
8
+ "wp-validate-code": "./bin/wp-validate-code.js"
9
9
  },
10
+ "files": [
11
+ "src/**/*",
12
+ "bin/**/*"
13
+ ],
10
14
  "author": "Dean Hiller",
11
15
  "license": "Apache-2.0",
12
16
  "repository": {
@@ -15,7 +19,7 @@
15
19
  "directory": "packages/tooling/code-rules"
16
20
  },
17
21
  "dependencies": {
18
- "@webpieces/rules-config": "0.2.120"
22
+ "@webpieces/rules-config": "0.2.122"
19
23
  },
20
24
  "publishConfig": {
21
25
  "access": "public"