@virmator/deps 13.3.12 → 13.3.13
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/dist/deps.d.ts +12 -11
- package/dist/deps.js +15 -14
- package/package.json +7 -5
package/dist/deps.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RuntimeEnv } from '@augment-vir/common';
|
|
2
|
+
import { NpmDepType, PackageType } from '@virmator/core';
|
|
2
3
|
/** A virmator plugin for checking package TS dependencies. */
|
|
3
4
|
export declare const virmatorDepsPlugin: Readonly<Readonly<{
|
|
4
5
|
name: string;
|
|
@@ -29,7 +30,7 @@ export declare const virmatorDepsPlugin: Readonly<Readonly<{
|
|
|
29
30
|
readonly depCruiser: {
|
|
30
31
|
readonly copyFromPath: string;
|
|
31
32
|
readonly copyToPath: string;
|
|
32
|
-
readonly env: [
|
|
33
|
+
readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
33
34
|
readonly packageType: [PackageType.TopPackage, PackageType.MonoRoot];
|
|
34
35
|
readonly required: true;
|
|
35
36
|
};
|
|
@@ -37,13 +38,13 @@ export declare const virmatorDepsPlugin: Readonly<Readonly<{
|
|
|
37
38
|
readonly npmDeps: {
|
|
38
39
|
readonly 'dependency-cruiser': {
|
|
39
40
|
readonly type: NpmDepType.Dev;
|
|
40
|
-
readonly env: readonly [
|
|
41
|
+
readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
41
42
|
readonly packageType: readonly [PackageType.TopPackage, PackageType.MonoRoot];
|
|
42
43
|
};
|
|
43
44
|
/** Needed to compile the TS dep-cruiser config file. */
|
|
44
45
|
readonly esbuild: {
|
|
45
46
|
readonly type: NpmDepType.Dev;
|
|
46
|
-
readonly env: readonly [
|
|
47
|
+
readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
47
48
|
readonly packageType: readonly [PackageType.TopPackage, PackageType.MonoRoot];
|
|
48
49
|
};
|
|
49
50
|
};
|
|
@@ -59,7 +60,7 @@ export declare const virmatorDepsPlugin: Readonly<Readonly<{
|
|
|
59
60
|
readonly ncu: {
|
|
60
61
|
readonly copyFromPath: string;
|
|
61
62
|
readonly copyToPath: string;
|
|
62
|
-
readonly env: [
|
|
63
|
+
readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
63
64
|
readonly packageType: [PackageType.MonoRoot, PackageType.TopPackage];
|
|
64
65
|
readonly required: true;
|
|
65
66
|
readonly configFlags: ["--config"];
|
|
@@ -68,7 +69,7 @@ export declare const virmatorDepsPlugin: Readonly<Readonly<{
|
|
|
68
69
|
readonly npmDeps: {
|
|
69
70
|
readonly 'npm-check-updates': {
|
|
70
71
|
readonly type: NpmDepType.Dev;
|
|
71
|
-
readonly env: readonly [
|
|
72
|
+
readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
72
73
|
readonly packageType: readonly [PackageType.TopPackage, PackageType.MonoRoot];
|
|
73
74
|
};
|
|
74
75
|
};
|
|
@@ -113,7 +114,7 @@ export declare const virmatorDepsPlugin: Readonly<Readonly<{
|
|
|
113
114
|
readonly depCruiser: {
|
|
114
115
|
readonly copyFromPath: string;
|
|
115
116
|
readonly copyToPath: string;
|
|
116
|
-
readonly env: [
|
|
117
|
+
readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
117
118
|
readonly packageType: [PackageType.TopPackage, PackageType.MonoRoot];
|
|
118
119
|
readonly required: true;
|
|
119
120
|
};
|
|
@@ -121,13 +122,13 @@ export declare const virmatorDepsPlugin: Readonly<Readonly<{
|
|
|
121
122
|
readonly npmDeps: {
|
|
122
123
|
readonly 'dependency-cruiser': {
|
|
123
124
|
readonly type: NpmDepType.Dev;
|
|
124
|
-
readonly env: readonly [
|
|
125
|
+
readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
125
126
|
readonly packageType: readonly [PackageType.TopPackage, PackageType.MonoRoot];
|
|
126
127
|
};
|
|
127
128
|
/** Needed to compile the TS dep-cruiser config file. */
|
|
128
129
|
readonly esbuild: {
|
|
129
130
|
readonly type: NpmDepType.Dev;
|
|
130
|
-
readonly env: readonly [
|
|
131
|
+
readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
131
132
|
readonly packageType: readonly [PackageType.TopPackage, PackageType.MonoRoot];
|
|
132
133
|
};
|
|
133
134
|
};
|
|
@@ -143,7 +144,7 @@ export declare const virmatorDepsPlugin: Readonly<Readonly<{
|
|
|
143
144
|
readonly ncu: {
|
|
144
145
|
readonly copyFromPath: string;
|
|
145
146
|
readonly copyToPath: string;
|
|
146
|
-
readonly env: [
|
|
147
|
+
readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
147
148
|
readonly packageType: [PackageType.MonoRoot, PackageType.TopPackage];
|
|
148
149
|
readonly required: true;
|
|
149
150
|
readonly configFlags: ["--config"];
|
|
@@ -152,7 +153,7 @@ export declare const virmatorDepsPlugin: Readonly<Readonly<{
|
|
|
152
153
|
readonly npmDeps: {
|
|
153
154
|
readonly 'npm-check-updates': {
|
|
154
155
|
readonly type: NpmDepType.Dev;
|
|
155
|
-
readonly env: readonly [
|
|
156
|
+
readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
156
157
|
readonly packageType: readonly [PackageType.TopPackage, PackageType.MonoRoot];
|
|
157
158
|
};
|
|
158
159
|
};
|
package/dist/deps.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { check } from '@augment-vir/assert';
|
|
2
|
+
import { awaitedBlockingMap, RuntimeEnv } from '@augment-vir/common';
|
|
3
|
+
import { toPosixPath } from '@augment-vir/node';
|
|
4
|
+
import { defineVirmatorPlugin, JsModuleType, NpmDepType, PackageType, VirmatorNoTraceError, withCompiledTsFile, withImportedTsFile, } from '@virmator/core';
|
|
4
5
|
import mri from 'mri';
|
|
5
6
|
import { rm } from 'node:fs/promises';
|
|
6
7
|
import { join, relative } from 'node:path';
|
|
@@ -51,8 +52,8 @@ export const virmatorDepsPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
51
52
|
copyFromPath: join('configs', 'dep-cruiser.config.cts'),
|
|
52
53
|
copyToPath: join('configs', 'dep-cruiser.config.cts'),
|
|
53
54
|
env: [
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
RuntimeEnv.Node,
|
|
56
|
+
RuntimeEnv.Web,
|
|
56
57
|
],
|
|
57
58
|
packageType: [
|
|
58
59
|
PackageType.TopPackage,
|
|
@@ -65,8 +66,8 @@ export const virmatorDepsPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
65
66
|
'dependency-cruiser': {
|
|
66
67
|
type: NpmDepType.Dev,
|
|
67
68
|
env: [
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
RuntimeEnv.Node,
|
|
70
|
+
RuntimeEnv.Web,
|
|
70
71
|
],
|
|
71
72
|
packageType: [
|
|
72
73
|
PackageType.TopPackage,
|
|
@@ -77,8 +78,8 @@ export const virmatorDepsPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
77
78
|
esbuild: {
|
|
78
79
|
type: NpmDepType.Dev,
|
|
79
80
|
env: [
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
RuntimeEnv.Node,
|
|
82
|
+
RuntimeEnv.Web,
|
|
82
83
|
],
|
|
83
84
|
packageType: [
|
|
84
85
|
PackageType.TopPackage,
|
|
@@ -107,8 +108,8 @@ export const virmatorDepsPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
107
108
|
copyFromPath: join('configs', 'ncu.config.ts'),
|
|
108
109
|
copyToPath: join('configs', 'ncu.config.ts'),
|
|
109
110
|
env: [
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
RuntimeEnv.Node,
|
|
112
|
+
RuntimeEnv.Web,
|
|
112
113
|
],
|
|
113
114
|
packageType: [
|
|
114
115
|
PackageType.MonoRoot,
|
|
@@ -122,8 +123,8 @@ export const virmatorDepsPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
122
123
|
'npm-check-updates': {
|
|
123
124
|
type: NpmDepType.Dev,
|
|
124
125
|
env: [
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
RuntimeEnv.Node,
|
|
127
|
+
RuntimeEnv.Web,
|
|
127
128
|
],
|
|
128
129
|
packageType: [
|
|
129
130
|
PackageType.TopPackage,
|
|
@@ -173,7 +174,7 @@ export const virmatorDepsPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
173
174
|
pathToCheck,
|
|
174
175
|
...filteredArgs,
|
|
175
176
|
]
|
|
176
|
-
.filter(isTruthy)
|
|
177
|
+
.filter(check.isTruthy)
|
|
177
178
|
.join(' ');
|
|
178
179
|
}
|
|
179
180
|
if (packageType === PackageType.MonoRoot) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/deps",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.13",
|
|
4
4
|
"description": "Default TS deps plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -33,13 +33,15 @@
|
|
|
33
33
|
"test:update": "npm test update"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@augment-vir/
|
|
37
|
-
"@augment-vir/
|
|
38
|
-
"@
|
|
36
|
+
"@augment-vir/assert": "^30.0.4",
|
|
37
|
+
"@augment-vir/common": "^30.0.4",
|
|
38
|
+
"@augment-vir/node": "^30.0.4",
|
|
39
|
+
"@virmator/core": "^13.3.13",
|
|
39
40
|
"mri": "^1.2.0"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@
|
|
43
|
+
"@augment-vir/test": "^30.0.4",
|
|
44
|
+
"@types/node": "^22.5.5",
|
|
43
45
|
"c8": "^10.1.2",
|
|
44
46
|
"dependency-cruiser": "^16.4.1",
|
|
45
47
|
"esbuild": "^0.23.1",
|