@virmator/compile 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/compile.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { NpmDepType, PackageType, VirmatorEnv } from '@virmator/core';
1
+ import { RuntimeEnv } from '@augment-vir/common';
2
+ import { NpmDepType, PackageType } from '@virmator/core';
2
3
  /** A virmator plugin for compiling TypeScript. */
3
4
  export declare const virmatorCompilePlugin: Readonly<Readonly<{
4
5
  name: string;
@@ -17,21 +18,21 @@ export declare const virmatorCompilePlugin: Readonly<Readonly<{
17
18
  readonly tsconfigPackage: {
18
19
  readonly copyFromPath: string;
19
20
  readonly copyToPath: "tsconfig.json";
20
- readonly env: [VirmatorEnv.Node, VirmatorEnv.Web];
21
+ readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
21
22
  readonly packageType: [PackageType.TopPackage];
22
23
  readonly required: true;
23
24
  };
24
25
  readonly tsconfigMonoPackage: {
25
26
  readonly copyFromPath: string;
26
27
  readonly copyToPath: "tsconfig.json";
27
- readonly env: [VirmatorEnv.Node, VirmatorEnv.Web];
28
+ readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
28
29
  readonly packageType: [PackageType.MonoPackage];
29
30
  readonly required: true;
30
31
  };
31
32
  readonly tsconfigMono: {
32
33
  readonly copyFromPath: string;
33
34
  readonly copyToPath: string;
34
- readonly env: [VirmatorEnv.Node, VirmatorEnv.Web];
35
+ readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
35
36
  readonly packageType: [PackageType.MonoRoot];
36
37
  readonly required: true;
37
38
  };
@@ -39,12 +40,12 @@ export declare const virmatorCompilePlugin: Readonly<Readonly<{
39
40
  readonly npmDeps: {
40
41
  readonly typescript: {
41
42
  readonly type: NpmDepType.Dev;
42
- readonly env: readonly [VirmatorEnv.Node, VirmatorEnv.Web];
43
+ readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
43
44
  readonly packageType: readonly [PackageType.TopPackage];
44
45
  };
45
46
  readonly 'mono-vir': {
46
47
  readonly type: NpmDepType.Dev;
47
- readonly env: readonly [VirmatorEnv.Node, VirmatorEnv.Web];
48
+ readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
48
49
  readonly packageType: readonly [PackageType.MonoRoot];
49
50
  };
50
51
  };
@@ -67,21 +68,21 @@ export declare const virmatorCompilePlugin: Readonly<Readonly<{
67
68
  readonly tsconfigPackage: {
68
69
  readonly copyFromPath: string;
69
70
  readonly copyToPath: "tsconfig.json";
70
- readonly env: [VirmatorEnv.Node, VirmatorEnv.Web];
71
+ readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
71
72
  readonly packageType: [PackageType.TopPackage];
72
73
  readonly required: true;
73
74
  };
74
75
  readonly tsconfigMonoPackage: {
75
76
  readonly copyFromPath: string;
76
77
  readonly copyToPath: "tsconfig.json";
77
- readonly env: [VirmatorEnv.Node, VirmatorEnv.Web];
78
+ readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
78
79
  readonly packageType: [PackageType.MonoPackage];
79
80
  readonly required: true;
80
81
  };
81
82
  readonly tsconfigMono: {
82
83
  readonly copyFromPath: string;
83
84
  readonly copyToPath: string;
84
- readonly env: [VirmatorEnv.Node, VirmatorEnv.Web];
85
+ readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
85
86
  readonly packageType: [PackageType.MonoRoot];
86
87
  readonly required: true;
87
88
  };
@@ -89,12 +90,12 @@ export declare const virmatorCompilePlugin: Readonly<Readonly<{
89
90
  readonly npmDeps: {
90
91
  readonly typescript: {
91
92
  readonly type: NpmDepType.Dev;
92
- readonly env: readonly [VirmatorEnv.Node, VirmatorEnv.Web];
93
+ readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
93
94
  readonly packageType: readonly [PackageType.TopPackage];
94
95
  };
95
96
  readonly 'mono-vir': {
96
97
  readonly type: NpmDepType.Dev;
97
- readonly env: readonly [VirmatorEnv.Node, VirmatorEnv.Web];
98
+ readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
98
99
  readonly packageType: readonly [PackageType.MonoRoot];
99
100
  };
100
101
  };
package/dist/compile.js CHANGED
@@ -1,6 +1,6 @@
1
- import { isTruthy } from '@augment-vir/common';
2
- import { logColors } from '@augment-vir/node-js';
3
- import { copyConfigFile, defineVirmatorPlugin, NpmDepType, PackageType, parseTsConfig, VirmatorEnv, } from '@virmator/core';
1
+ import { check } from '@augment-vir/assert';
2
+ import { logColors, RuntimeEnv } from '@augment-vir/common';
3
+ import { copyConfigFile, defineVirmatorPlugin, NpmDepType, PackageType, parseTsConfig, } from '@virmator/core';
4
4
  import { rm } from 'node:fs/promises';
5
5
  import { basename, join } from 'node:path';
6
6
  /** A virmator plugin for compiling TypeScript. */
@@ -34,8 +34,8 @@ export const virmatorCompilePlugin = defineVirmatorPlugin(import.meta.dirname, {
34
34
  copyFromPath: join('configs', 'tsconfig.package.json'),
35
35
  copyToPath: 'tsconfig.json',
36
36
  env: [
37
- VirmatorEnv.Node,
38
- VirmatorEnv.Web,
37
+ RuntimeEnv.Node,
38
+ RuntimeEnv.Web,
39
39
  ],
40
40
  packageType: [
41
41
  PackageType.TopPackage,
@@ -46,8 +46,8 @@ export const virmatorCompilePlugin = defineVirmatorPlugin(import.meta.dirname, {
46
46
  copyFromPath: join('configs', 'tsconfig.mono-package.json'),
47
47
  copyToPath: 'tsconfig.json',
48
48
  env: [
49
- VirmatorEnv.Node,
50
- VirmatorEnv.Web,
49
+ RuntimeEnv.Node,
50
+ RuntimeEnv.Web,
51
51
  ],
52
52
  packageType: [
53
53
  PackageType.MonoPackage,
@@ -58,8 +58,8 @@ export const virmatorCompilePlugin = defineVirmatorPlugin(import.meta.dirname, {
58
58
  copyFromPath: join('configs', 'tsconfig.mono.json'),
59
59
  copyToPath: join('configs', 'tsconfig.base.json'),
60
60
  env: [
61
- VirmatorEnv.Node,
62
- VirmatorEnv.Web,
61
+ RuntimeEnv.Node,
62
+ RuntimeEnv.Web,
63
63
  ],
64
64
  packageType: [
65
65
  PackageType.MonoRoot,
@@ -71,8 +71,8 @@ export const virmatorCompilePlugin = defineVirmatorPlugin(import.meta.dirname, {
71
71
  typescript: {
72
72
  type: NpmDepType.Dev,
73
73
  env: [
74
- VirmatorEnv.Node,
75
- VirmatorEnv.Web,
74
+ RuntimeEnv.Node,
75
+ RuntimeEnv.Web,
76
76
  ],
77
77
  packageType: [
78
78
  PackageType.TopPackage,
@@ -81,8 +81,8 @@ export const virmatorCompilePlugin = defineVirmatorPlugin(import.meta.dirname, {
81
81
  'mono-vir': {
82
82
  type: NpmDepType.Dev,
83
83
  env: [
84
- VirmatorEnv.Node,
85
- VirmatorEnv.Web,
84
+ RuntimeEnv.Node,
85
+ RuntimeEnv.Web,
86
86
  ],
87
87
  packageType: [
88
88
  PackageType.MonoRoot,
@@ -134,6 +134,6 @@ async function createCompileCommandString({ cwd, cliInputs, log }, packageName,
134
134
  tsconfig?.options.composite ? '-b' : '',
135
135
  '--pretty',
136
136
  ...cliInputs.filteredArgs,
137
- ].filter(isTruthy);
137
+ ].filter(check.isTruthy);
138
138
  return fullCommand.join(' ');
139
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/compile",
3
- "version": "13.3.12",
3
+ "version": "13.3.13",
4
4
  "description": "Default TS compile plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -31,20 +31,21 @@
31
31
  "test:update": "npm test update"
32
32
  },
33
33
  "dependencies": {
34
- "@augment-vir/common": "^29.3.0",
35
- "@augment-vir/node-js": "^29.3.0",
36
- "@virmator/core": "^13.3.12",
37
- "run-time-assertions": "^1.5.2"
34
+ "@augment-vir/assert": "^30.0.4",
35
+ "@augment-vir/common": "^30.0.4",
36
+ "@augment-vir/node": "^30.0.4",
37
+ "@virmator/core": "^13.3.13"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/node": "^22.5.4",
41
- "@virmator/plugin-testing": "^13.3.12",
40
+ "@augment-vir/test": "^30.0.4",
41
+ "@types/node": "^22.5.5",
42
+ "@virmator/plugin-testing": "^13.3.13",
42
43
  "c8": "^10.1.2",
43
44
  "chalk": "^5.3.0",
44
- "concurrently": "^9.0.0",
45
+ "concurrently": "^9.0.1",
45
46
  "istanbul-smart-text-reporter": "^1.1.4",
46
47
  "mono-vir": "^1.0.1",
47
- "tsx": "^4.19.0",
48
+ "tsx": "^4.19.1",
48
49
  "typescript": "^5.6.2"
49
50
  },
50
51
  "peerDependencies": {