@clipboard-health/nx-plugin 0.0.1 → 0.2.0

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/.eslintrc.json CHANGED
@@ -1,32 +1,8 @@
1
1
  {
2
2
  "extends": ["../../.eslintrc.json"],
3
3
  "ignorePatterns": ["!**/*"],
4
- "overrides": [
5
- {
6
- "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7
- "rules": {}
8
- },
9
- {
10
- "files": ["*.ts", "*.tsx"],
11
- "rules": {}
12
- },
13
- {
14
- "files": ["*.js", "*.jsx"],
15
- "rules": {}
16
- },
17
- {
18
- "files": ["*.json"],
19
- "parser": "jsonc-eslint-parser",
20
- "rules": {
21
- "@nx/dependency-checks": "error"
22
- }
23
- },
24
- {
25
- "files": ["./package.json", "./generators.json"],
26
- "parser": "jsonc-eslint-parser",
27
- "rules": {
28
- "@nx/nx-plugin-checks": "error"
29
- }
30
- }
31
- ]
4
+ "parserOptions": {
5
+ "project": "tsconfig.lint.json",
6
+ "tsconfigRootDir": "packages/nx-plugin"
7
+ }
32
8
  }
package/jest.config.ts CHANGED
@@ -1,13 +1,12 @@
1
- /* eslint-disable */
2
1
  export default {
3
2
  coverageDirectory: "../../coverage/packages/nx-plugin",
4
3
  coveragePathIgnorePatterns: [],
5
4
  coverageThreshold: {
6
5
  global: {
7
- branches: 80,
6
+ branches: 100,
8
7
  functions: 100,
9
- lines: 95,
10
- statements: 95,
8
+ lines: 100,
9
+ statements: 100,
11
10
  },
12
11
  },
13
12
  displayName: "nx-plugin",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clipboard-health/nx-plugin",
3
3
  "description": "Clipboard Health's Nx plugin contains generators to manage applications within an Nx workspace.",
4
- "version": "0.0.1",
4
+ "version": "0.2.0",
5
5
  "bugs": "https://github.com/clipboardhealth/core-utils/issues",
6
6
  "dependencies": {
7
7
  "@nx/devkit": "19.5.6",
@@ -10,12 +10,12 @@
10
10
  },
11
11
  "generators": "./generators.json",
12
12
  "keywords": [
13
- "Generator",
14
- "Library",
15
- "Node",
16
- "Nx",
17
- "Plugin",
18
- "TypeScript"
13
+ "generator",
14
+ "library",
15
+ "node",
16
+ "nx",
17
+ "plugin",
18
+ "typescript"
19
19
  ],
20
20
  "license": "MIT",
21
21
  "main": "./src/index.js",
@@ -1,10 +1,22 @@
1
1
  {
2
2
  "name": "<%= importPath %>",
3
+ "description": "",
3
4
  "version": "0.0.0",
5
+ "bugs": "https://github.com/clipboardhealth/core-utils/issues",
4
6
  "dependencies": {
5
7
  "tslib": "2.6.3"
6
8
  },
9
+ "keywords": [],
10
+ "license": "MIT",
7
11
  "main": "./src/index.js",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/clipboardhealth/core-utils.git",
18
+ "directory": "packages/<%= projectName %>"
19
+ },
8
20
  "type": "commonjs",
9
21
  "typings": "./src/index.d.ts"
10
22
  }
@@ -64,8 +64,10 @@ function updateRootTsConfig(
64
64
  (json) => {
65
65
  const c = json.compilerOptions;
66
66
  c.paths ||= {};
67
+ // eslint-disable-next-line @typescript-eslint/no-dynamic-delete
67
68
  delete c.paths[options.name];
68
69
 
70
+ /* istanbul ignore next */
69
71
  if (c.paths[options.importPath]) {
70
72
  throw new Error(`There is already a library with import path "${options.importPath}".`);
71
73
  }
package/src/index.ts CHANGED
@@ -0,0 +1 @@
1
+ // eslint-disable-next-line unicorn/no-empty-file
package/tsconfig.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../tsconfig.base.json",
3
3
  "compilerOptions": {
4
- "module": "commonjs",
5
4
  "outDir": "../../dist/out-tsc"
6
5
  },
7
6
  "files": [],
@@ -10,6 +9,9 @@
10
9
  {
11
10
  "path": "./tsconfig.lib.json"
12
11
  },
12
+ {
13
+ "path": "./tsconfig.lint.json"
14
+ },
13
15
  {
14
16
  "path": "./tsconfig.spec.json"
15
17
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["jest", "node"]
5
+ },
6
+ "include": ["."]
7
+ }