@virmator/spellcheck 13.3.12 → 13.3.14
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/spellcheck.d.ts +6 -5
- package/dist/spellcheck.js +10 -10
- package/package.json +11 -10
package/dist/spellcheck.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 package for checking spelling. */
|
|
3
4
|
export declare const virmatorSpellcheckPlugin: Readonly<Readonly<{
|
|
4
5
|
name: string;
|
|
@@ -17,7 +18,7 @@ export declare const virmatorSpellcheckPlugin: Readonly<Readonly<{
|
|
|
17
18
|
readonly cspell: {
|
|
18
19
|
readonly copyToPath: "cspell.config.cjs";
|
|
19
20
|
readonly copyFromPath: string;
|
|
20
|
-
readonly env: [
|
|
21
|
+
readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
21
22
|
readonly packageType: [PackageType.MonoRoot, PackageType.TopPackage];
|
|
22
23
|
readonly required: true;
|
|
23
24
|
readonly configFlags: ["-c", "--config"];
|
|
@@ -25,7 +26,7 @@ export declare const virmatorSpellcheckPlugin: Readonly<Readonly<{
|
|
|
25
26
|
};
|
|
26
27
|
readonly npmDeps: {
|
|
27
28
|
readonly cspell: {
|
|
28
|
-
readonly env: readonly [
|
|
29
|
+
readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
29
30
|
readonly packageType: readonly [PackageType.MonoRoot, PackageType.TopPackage];
|
|
30
31
|
readonly type: NpmDepType.Dev;
|
|
31
32
|
};
|
|
@@ -49,7 +50,7 @@ export declare const virmatorSpellcheckPlugin: Readonly<Readonly<{
|
|
|
49
50
|
readonly cspell: {
|
|
50
51
|
readonly copyToPath: "cspell.config.cjs";
|
|
51
52
|
readonly copyFromPath: string;
|
|
52
|
-
readonly env: [
|
|
53
|
+
readonly env: [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
53
54
|
readonly packageType: [PackageType.MonoRoot, PackageType.TopPackage];
|
|
54
55
|
readonly required: true;
|
|
55
56
|
readonly configFlags: ["-c", "--config"];
|
|
@@ -57,7 +58,7 @@ export declare const virmatorSpellcheckPlugin: Readonly<Readonly<{
|
|
|
57
58
|
};
|
|
58
59
|
readonly npmDeps: {
|
|
59
60
|
readonly cspell: {
|
|
60
|
-
readonly env: readonly [
|
|
61
|
+
readonly env: readonly [RuntimeEnv.Node, RuntimeEnv.Web];
|
|
61
62
|
readonly packageType: readonly [PackageType.MonoRoot, PackageType.TopPackage];
|
|
62
63
|
readonly type: NpmDepType.Dev;
|
|
63
64
|
};
|
package/dist/spellcheck.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { check } from '@augment-vir/assert';
|
|
2
|
+
import { RuntimeEnv } from '@augment-vir/common';
|
|
3
|
+
import { toPosixPath } from '@augment-vir/node';
|
|
4
|
+
import { defineVirmatorPlugin, NpmDepType, PackageType } from '@virmator/core';
|
|
4
5
|
import mri from 'mri';
|
|
5
6
|
import { join, relative } from 'node:path';
|
|
6
|
-
import { isRunTimeType } from 'run-time-assertions';
|
|
7
7
|
/** A virmator package for checking spelling. */
|
|
8
8
|
export const virmatorSpellcheckPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
9
9
|
name: 'CSpell Spellcheck',
|
|
@@ -31,8 +31,8 @@ export const virmatorSpellcheckPlugin = defineVirmatorPlugin(import.meta.dirname
|
|
|
31
31
|
copyToPath: 'cspell.config.cjs',
|
|
32
32
|
copyFromPath: join('configs', 'cspell.config.cjs'),
|
|
33
33
|
env: [
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
RuntimeEnv.Node,
|
|
35
|
+
RuntimeEnv.Web,
|
|
36
36
|
],
|
|
37
37
|
packageType: [
|
|
38
38
|
PackageType.MonoRoot,
|
|
@@ -48,8 +48,8 @@ export const virmatorSpellcheckPlugin = defineVirmatorPlugin(import.meta.dirname
|
|
|
48
48
|
npmDeps: {
|
|
49
49
|
cspell: {
|
|
50
50
|
env: [
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
RuntimeEnv.Node,
|
|
52
|
+
RuntimeEnv.Web,
|
|
53
53
|
],
|
|
54
54
|
packageType: [
|
|
55
55
|
PackageType.MonoRoot,
|
|
@@ -66,7 +66,7 @@ export const virmatorSpellcheckPlugin = defineVirmatorPlugin(import.meta.dirname
|
|
|
66
66
|
config: ['c'],
|
|
67
67
|
},
|
|
68
68
|
});
|
|
69
|
-
const configPath =
|
|
69
|
+
const configPath = check.isString(args.config)
|
|
70
70
|
? args.config
|
|
71
71
|
: toPosixPath(relative(cwd, join(cwdPackagePath, configs.spellcheck.configs.cspell.copyToPath)));
|
|
72
72
|
const filesArg = args.file ? '' : args._.length ? `--file ${args._.join(' ')}` : '.';
|
|
@@ -84,7 +84,7 @@ export const virmatorSpellcheckPlugin = defineVirmatorPlugin(import.meta.dirname
|
|
|
84
84
|
...cliInputs.filteredArgs,
|
|
85
85
|
filesArg,
|
|
86
86
|
]
|
|
87
|
-
.filter(isTruthy)
|
|
87
|
+
.filter(check.isTruthy)
|
|
88
88
|
.join(' ');
|
|
89
89
|
await runShellCommand(fullCommand);
|
|
90
90
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/spellcheck",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.14",
|
|
4
4
|
"description": "Default spellcheck 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/
|
|
35
|
-
"@augment-vir/
|
|
36
|
-
"@
|
|
37
|
-
"
|
|
38
|
-
"
|
|
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.14",
|
|
38
|
+
"mri": "^1.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
41
|
+
"@augment-vir/test": "^30.0.4",
|
|
42
|
+
"@types/node": "^22.5.5",
|
|
43
|
+
"@virmator/plugin-testing": "^13.3.14",
|
|
43
44
|
"c8": "^10.1.2",
|
|
44
|
-
"concurrently": "^9.0.
|
|
45
|
+
"concurrently": "^9.0.1",
|
|
45
46
|
"cspell": "^8.14.2",
|
|
46
47
|
"istanbul-smart-text-reporter": "^1.1.4",
|
|
47
|
-
"tsx": "^4.19.
|
|
48
|
+
"tsx": "^4.19.1"
|
|
48
49
|
},
|
|
49
50
|
"engines": {
|
|
50
51
|
"node": ">=22"
|