@alexaegis/autotool-plugin-vitest 0.15.0 → 0.15.1
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/index.cjs +83 -97
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +83 -97
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
package/dist/index.cjs
CHANGED
|
@@ -5,31 +5,70 @@ Object.defineProperties(exports, {
|
|
|
5
5
|
let _alexaegis_predicate = require("@alexaegis/predicate");
|
|
6
6
|
require("autotool-plugin");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
8
|
+
var package_default = {
|
|
9
|
+
name: "@alexaegis/autotool-plugin-vitest",
|
|
10
|
+
description: "Setup vitest",
|
|
11
|
+
version: "0.15.1",
|
|
12
|
+
license: "MIT",
|
|
13
|
+
"private": false,
|
|
14
|
+
archetype: {
|
|
15
|
+
"platform": "node",
|
|
16
|
+
"framework": "autotool",
|
|
17
|
+
"language": "ts",
|
|
18
|
+
"kind": "lib"
|
|
19
|
+
},
|
|
20
|
+
keywords: [
|
|
21
|
+
"autotool-plugin",
|
|
22
|
+
"managed-by-autotool",
|
|
23
|
+
"vitest"
|
|
24
|
+
],
|
|
25
|
+
repository: {
|
|
26
|
+
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
27
|
+
"type": "git"
|
|
28
|
+
},
|
|
29
|
+
type: "module",
|
|
30
|
+
publishConfig: {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"import": "./dist/index.js",
|
|
36
|
+
"require": "./dist/index.cjs",
|
|
37
|
+
"default": "./dist/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
40
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
41
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
42
|
+
"./package.json": "./package.json",
|
|
43
|
+
"./readme": "./readme.md"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
files: ["dist", "static"],
|
|
47
|
+
scripts: {
|
|
48
|
+
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
49
|
+
"lint:depcheck_": "depcheck",
|
|
50
|
+
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
51
|
+
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
52
|
+
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
53
|
+
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
54
|
+
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
55
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
56
|
+
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
57
|
+
"lint:tsc_": "tsc --noEmit",
|
|
58
|
+
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
59
|
+
"publint_": "publint",
|
|
60
|
+
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
61
|
+
"test_": "vitest --passWithNoTests --coverage --run",
|
|
62
|
+
"test:watch": "vitest --passWithNoTests --coverage",
|
|
63
|
+
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
64
|
+
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
65
|
+
"build-lib_": "vite build",
|
|
66
|
+
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
67
|
+
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
68
|
+
},
|
|
69
|
+
exports: {
|
|
31
70
|
".": {
|
|
32
|
-
"types": "./
|
|
71
|
+
"types": "./src/index.ts",
|
|
33
72
|
"import": "./dist/index.js",
|
|
34
73
|
"require": "./dist/index.cjs",
|
|
35
74
|
"default": "./dist/index.js"
|
|
@@ -39,80 +78,27 @@ var publishConfig = {
|
|
|
39
78
|
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
40
79
|
"./package.json": "./package.json",
|
|
41
80
|
"./readme": "./readme.md"
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var files = ["dist", "static"];
|
|
45
|
-
var scripts = {
|
|
46
|
-
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
47
|
-
"lint:depcheck_": "depcheck",
|
|
48
|
-
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
49
|
-
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
50
|
-
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
51
|
-
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
52
|
-
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
53
|
-
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
54
|
-
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
55
|
-
"lint:tsc_": "tsc --noEmit",
|
|
56
|
-
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
57
|
-
"publint_": "publint",
|
|
58
|
-
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
59
|
-
"test_": "vitest --passWithNoTests --coverage --run",
|
|
60
|
-
"test:watch": "vitest --passWithNoTests --coverage",
|
|
61
|
-
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
62
|
-
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
63
|
-
"build-lib_": "vite build",
|
|
64
|
-
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
65
|
-
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
66
|
-
};
|
|
67
|
-
var exports$1 = {
|
|
68
|
-
".": {
|
|
69
|
-
"types": "./src/index.ts",
|
|
70
|
-
"import": "./dist/index.js",
|
|
71
|
-
"require": "./dist/index.cjs",
|
|
72
|
-
"default": "./dist/index.js"
|
|
73
81
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"publint": "^0.3.18",
|
|
95
|
-
"typescript": "^5.9.3",
|
|
96
|
-
"vite": "^8.0.1",
|
|
97
|
-
"vite-plugin-dts": "^4.5.4",
|
|
98
|
-
"vitest": "^4.1.0"
|
|
99
|
-
};
|
|
100
|
-
var package_default = {
|
|
101
|
-
name,
|
|
102
|
-
description,
|
|
103
|
-
version,
|
|
104
|
-
license: "MIT",
|
|
105
|
-
"private": false,
|
|
106
|
-
archetype,
|
|
107
|
-
keywords,
|
|
108
|
-
repository,
|
|
109
|
-
type,
|
|
110
|
-
publishConfig,
|
|
111
|
-
files,
|
|
112
|
-
scripts,
|
|
113
|
-
exports: exports$1,
|
|
114
|
-
dependencies,
|
|
115
|
-
devDependencies
|
|
82
|
+
dependencies: {
|
|
83
|
+
"@alexaegis/coverage-tools": "workspace:^",
|
|
84
|
+
"@alexaegis/logging": "workspace:^",
|
|
85
|
+
"@alexaegis/predicate": "workspace:^",
|
|
86
|
+
"autotool-plugin": "^0.6.1"
|
|
87
|
+
},
|
|
88
|
+
devDependencies: {
|
|
89
|
+
"@alexaegis/eslint-config-vitest": "workspace:^",
|
|
90
|
+
"@alexaegis/ts": "workspace:^",
|
|
91
|
+
"@alexaegis/vite": "workspace:^",
|
|
92
|
+
"@alexaegis/vitest": "workspace:^",
|
|
93
|
+
"@lcov-viewer/cli": "^1.3.0",
|
|
94
|
+
"@types/node": "^25.6.0",
|
|
95
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
96
|
+
"publint": "^0.3.18",
|
|
97
|
+
"typescript": "^6.0.3",
|
|
98
|
+
"vite": "^8.0.10",
|
|
99
|
+
"vite-plugin-dts": "^5.0.0",
|
|
100
|
+
"vitest": "^4.1.5"
|
|
101
|
+
}
|
|
116
102
|
};
|
|
117
103
|
//#endregion
|
|
118
104
|
//#region src/index.ts
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/autotool-plugin-vitest\",\n\t\"description\": \"Setup vitest\",\n\t\"version\": \"0.15.
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/autotool-plugin-vitest\",\n\t\"description\": \"Setup vitest\",\n\t\"version\": \"0.15.1\",\n\t\"license\": \"MIT\",\n\t\"private\": false,\n\t\"archetype\": {\n\t\t\"platform\": \"node\",\n\t\t\"framework\": \"autotool\",\n\t\t\"language\": \"ts\",\n\t\t\"kind\": \"lib\"\n\t},\n\t\"keywords\": [\n\t\t\"autotool-plugin\",\n\t\t\"managed-by-autotool\",\n\t\t\"vitest\"\n\t],\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling\",\n\t\t\"type\": \"git\"\n\t},\n\t\"type\": \"module\",\n\t\"publishConfig\": {\n\t\t\"access\": \"public\",\n\t\t\"exports\": {\n\t\t\t\".\": {\n\t\t\t\t\"types\": \"./dist/index.d.ts\",\n\t\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\t\"default\": \"./dist/index.js\"\n\t\t\t},\n\t\t\t\"./package-node-vitest.config\": \"./static/package-node-vitest.config.ts\",\n\t\t\t\"./package-svelte-vitest.config\": \"./static/package-svelte-vitest.config.ts\",\n\t\t\t\"./package-web-vitest.config\": \"./static/package-web-vitest.config.ts\",\n\t\t\t\"./package.json\": \"./package.json\",\n\t\t\t\"./readme\": \"./readme.md\"\n\t\t}\n\t},\n\t\"files\": [\n\t\t\"dist\",\n\t\t\"static\"\n\t],\n\t\"scripts\": {\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:es_\": \"eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore .\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:tsc_\": \"tsc --noEmit\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"publint_\": \"publint\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"test_\": \"vitest --passWithNoTests --coverage --run\",\n\t\t\"test:watch\": \"vitest --passWithNoTests --coverage\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"build\": \"turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"build-lib_\": \"vite build\",\n\t\t\"format\": \"turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .\"\n\t},\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./src/index.ts\",\n\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\"default\": \"./dist/index.js\"\n\t\t},\n\t\t\"./package-node-vitest.config\": \"./static/package-node-vitest.config.ts\",\n\t\t\"./package-svelte-vitest.config\": \"./static/package-svelte-vitest.config.ts\",\n\t\t\"./package-web-vitest.config\": \"./static/package-web-vitest.config.ts\",\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./readme\": \"./readme.md\"\n\t},\n\t\"dependencies\": {\n\t\t\"@alexaegis/coverage-tools\": \"workspace:^\",\n\t\t\"@alexaegis/logging\": \"workspace:^\",\n\t\t\"@alexaegis/predicate\": \"workspace:^\",\n\t\t\"autotool-plugin\": \"^0.6.1\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/eslint-config-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@alexaegis/vite\": \"workspace:^\",\n\t\t\"@alexaegis/vitest\": \"workspace:^\",\n\t\t\"@lcov-viewer/cli\": \"^1.3.0\",\n\t\t\"@types/node\": \"^25.6.0\",\n\t\t\"@vitest/coverage-v8\": \"^4.1.5\",\n\t\t\"publint\": \"^0.3.18\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vite\": \"^8.0.10\",\n\t\t\"vite-plugin-dts\": \"^5.0.0\",\n\t\t\"vitest\": \"^4.1.5\"\n\t}\n}\n","import { contains, equal, not, or } from '@alexaegis/predicate';\nimport {\n\ttype AutotoolPlugin,\n\ttype AutotoolPluginObject,\n\ttype NormalizedAutotoolPluginOptions,\n} from 'autotool-plugin';\nimport { join } from 'node:path';\nimport packageJson from '../package.json' with { type: 'json' };\n\nconst appOrLib = or(equal('app'), equal('lib'));\n\nexport const plugin: AutotoolPlugin = (\n\t_options: NormalizedAutotoolPluginOptions,\n): AutotoolPluginObject => {\n\treturn {\n\t\tname: packageJson.name,\n\t\telements: [\n\t\t\t{\n\t\t\t\tdescription: 'workspace test scripts and devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\ttest: 'turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@vitest/coverage-v8': packageJson.devDependencies['@vitest/coverage-v8'],\n\t\t\t\t\t\t'@lcov-viewer/cli': packageJson.devDependencies['@lcov-viewer/cli'],\n\t\t\t\t\t\t'@alexaegis/coverage-tools':\n\t\t\t\t\t\t\tpackageJson.dependencies['@alexaegis/coverage-tools'],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package test scripts',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\ttest: 'turbo run test_ --concurrency 16 --filter ${packageName}',\n\t\t\t\t\t\ttest_: 'vitest --passWithNoTests --coverage --run',\n\t\t\t\t\t\t'test:watch': 'vitest --passWithNoTests --coverage',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package test devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tname: not(or(equal('@alexaegis/vite'), equal('@alexaegis/vitest'))), // Don't add it for itself and 'vite' it would cause a circle\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdata: {\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@alexaegis/vitest': packageJson.devDependencies['@alexaegis/vitest'],\n\t\t\t\t\t\tvitest: packageJson.devDependencies.vitest,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for web packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tplatform: 'web',\n\t\t\t\t\t\tframework: not(contains('svelte')),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-web-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for node packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tplatform: 'node',\n\t\t\t\t\t\tframework: not(contains('svelte')),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-node-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for svelte packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tframework: 'svelte',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-svelte-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\t\t],\n\t};\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACSA,IAAM,YAAA,GAAA,qBAAA,KAAA,GAAA,qBAAA,OAAoB,MAAM,GAAA,GAAA,qBAAA,OAAQ,MAAM,CAAC;AAE/C,IAAa,UACZ,aAC0B;AAC1B,QAAO;EACN,MAAM,gBAAY;EAClB,UAAU;GACT;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,MAAM;KACL,SAAS,EACR,MAAM,2HACN;KACD,iBAAiB;MAChB,uBAAuB,gBAAY,gBAAgB;MACnD,oBAAoB,gBAAY,gBAAgB;MAChD,6BACC,gBAAY,aAAa;MAC1B;KACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB,EAClB,WAAW,EACV,MAAM,UACN,EACD;IACD,MAAM,EACL,SAAS;KACR,MAAM;KACN,OAAO;KACP,cAAc;KACd,EACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB;KAClB,OAAA,GAAA,qBAAA,MAAA,GAAA,qBAAA,KAAA,GAAA,qBAAA,OAAmB,kBAAkB,GAAA,GAAA,qBAAA,OAAQ,oBAAoB,CAAC,CAAC;KACnE,WAAW,EACV,MAAM,UACN;KACD;IACD,MAAM,EACL,iBAAiB;KAChB,qBAAqB,gBAAY,gBAAgB;KACjD,QAAQ,gBAAY,gBAAgB;KACpC,EACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,YAAA,GAAA,qBAAA,MAAA,GAAA,qBAAA,UAAwB,SAAS,CAAC;KAClC,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,aAAA,GAAA,UAAA,MAAiB,UAAU,+BAA+B;IAC1D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GAED;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,YAAA,GAAA,qBAAA,MAAA,GAAA,qBAAA,UAAwB,SAAS,CAAC;KAClC,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,aAAA,GAAA,UAAA,MAAiB,UAAU,gCAAgC;IAC3D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GACD;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,WAAW;KACX,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,aAAA,GAAA,UAAA,MAAiB,UAAU,kCAAkC;IAC7D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GACD;EACD"}
|
package/dist/index.js
CHANGED
|
@@ -1,31 +1,70 @@
|
|
|
1
1
|
import { contains, equal, not, or } from "@alexaegis/predicate";
|
|
2
2
|
import "autotool-plugin";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
var package_default = {
|
|
5
|
+
name: "@alexaegis/autotool-plugin-vitest",
|
|
6
|
+
description: "Setup vitest",
|
|
7
|
+
version: "0.15.1",
|
|
8
|
+
license: "MIT",
|
|
9
|
+
"private": false,
|
|
10
|
+
archetype: {
|
|
11
|
+
"platform": "node",
|
|
12
|
+
"framework": "autotool",
|
|
13
|
+
"language": "ts",
|
|
14
|
+
"kind": "lib"
|
|
15
|
+
},
|
|
16
|
+
keywords: [
|
|
17
|
+
"autotool-plugin",
|
|
18
|
+
"managed-by-autotool",
|
|
19
|
+
"vitest"
|
|
20
|
+
],
|
|
21
|
+
repository: {
|
|
22
|
+
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
23
|
+
"type": "git"
|
|
24
|
+
},
|
|
25
|
+
type: "module",
|
|
26
|
+
publishConfig: {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"require": "./dist/index.cjs",
|
|
33
|
+
"default": "./dist/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
36
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
37
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
38
|
+
"./package.json": "./package.json",
|
|
39
|
+
"./readme": "./readme.md"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
files: ["dist", "static"],
|
|
43
|
+
scripts: {
|
|
44
|
+
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
45
|
+
"lint:depcheck_": "depcheck",
|
|
46
|
+
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
47
|
+
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
48
|
+
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
49
|
+
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
50
|
+
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
51
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
52
|
+
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
53
|
+
"lint:tsc_": "tsc --noEmit",
|
|
54
|
+
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
55
|
+
"publint_": "publint",
|
|
56
|
+
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
57
|
+
"test_": "vitest --passWithNoTests --coverage --run",
|
|
58
|
+
"test:watch": "vitest --passWithNoTests --coverage",
|
|
59
|
+
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
60
|
+
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
61
|
+
"build-lib_": "vite build",
|
|
62
|
+
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
63
|
+
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
64
|
+
},
|
|
65
|
+
exports: {
|
|
27
66
|
".": {
|
|
28
|
-
"types": "./
|
|
67
|
+
"types": "./src/index.ts",
|
|
29
68
|
"import": "./dist/index.js",
|
|
30
69
|
"require": "./dist/index.cjs",
|
|
31
70
|
"default": "./dist/index.js"
|
|
@@ -35,80 +74,27 @@ var publishConfig = {
|
|
|
35
74
|
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
36
75
|
"./package.json": "./package.json",
|
|
37
76
|
"./readme": "./readme.md"
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var files = ["dist", "static"];
|
|
41
|
-
var scripts = {
|
|
42
|
-
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
43
|
-
"lint:depcheck_": "depcheck",
|
|
44
|
-
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
45
|
-
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
46
|
-
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
47
|
-
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
48
|
-
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
49
|
-
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
50
|
-
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
51
|
-
"lint:tsc_": "tsc --noEmit",
|
|
52
|
-
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
53
|
-
"publint_": "publint",
|
|
54
|
-
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
55
|
-
"test_": "vitest --passWithNoTests --coverage --run",
|
|
56
|
-
"test:watch": "vitest --passWithNoTests --coverage",
|
|
57
|
-
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
58
|
-
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
59
|
-
"build-lib_": "vite build",
|
|
60
|
-
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
61
|
-
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
62
|
-
};
|
|
63
|
-
var exports = {
|
|
64
|
-
".": {
|
|
65
|
-
"types": "./src/index.ts",
|
|
66
|
-
"import": "./dist/index.js",
|
|
67
|
-
"require": "./dist/index.cjs",
|
|
68
|
-
"default": "./dist/index.js"
|
|
69
77
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"publint": "^0.3.18",
|
|
91
|
-
"typescript": "^5.9.3",
|
|
92
|
-
"vite": "^8.0.1",
|
|
93
|
-
"vite-plugin-dts": "^4.5.4",
|
|
94
|
-
"vitest": "^4.1.0"
|
|
95
|
-
};
|
|
96
|
-
var package_default = {
|
|
97
|
-
name,
|
|
98
|
-
description,
|
|
99
|
-
version,
|
|
100
|
-
license: "MIT",
|
|
101
|
-
"private": false,
|
|
102
|
-
archetype,
|
|
103
|
-
keywords,
|
|
104
|
-
repository,
|
|
105
|
-
type,
|
|
106
|
-
publishConfig,
|
|
107
|
-
files,
|
|
108
|
-
scripts,
|
|
109
|
-
exports,
|
|
110
|
-
dependencies,
|
|
111
|
-
devDependencies
|
|
78
|
+
dependencies: {
|
|
79
|
+
"@alexaegis/coverage-tools": "workspace:^",
|
|
80
|
+
"@alexaegis/logging": "workspace:^",
|
|
81
|
+
"@alexaegis/predicate": "workspace:^",
|
|
82
|
+
"autotool-plugin": "^0.6.1"
|
|
83
|
+
},
|
|
84
|
+
devDependencies: {
|
|
85
|
+
"@alexaegis/eslint-config-vitest": "workspace:^",
|
|
86
|
+
"@alexaegis/ts": "workspace:^",
|
|
87
|
+
"@alexaegis/vite": "workspace:^",
|
|
88
|
+
"@alexaegis/vitest": "workspace:^",
|
|
89
|
+
"@lcov-viewer/cli": "^1.3.0",
|
|
90
|
+
"@types/node": "^25.6.0",
|
|
91
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
92
|
+
"publint": "^0.3.18",
|
|
93
|
+
"typescript": "^6.0.3",
|
|
94
|
+
"vite": "^8.0.10",
|
|
95
|
+
"vite-plugin-dts": "^5.0.0",
|
|
96
|
+
"vitest": "^4.1.5"
|
|
97
|
+
}
|
|
112
98
|
};
|
|
113
99
|
//#endregion
|
|
114
100
|
//#region src/index.ts
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/autotool-plugin-vitest\",\n\t\"description\": \"Setup vitest\",\n\t\"version\": \"0.15.
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/autotool-plugin-vitest\",\n\t\"description\": \"Setup vitest\",\n\t\"version\": \"0.15.1\",\n\t\"license\": \"MIT\",\n\t\"private\": false,\n\t\"archetype\": {\n\t\t\"platform\": \"node\",\n\t\t\"framework\": \"autotool\",\n\t\t\"language\": \"ts\",\n\t\t\"kind\": \"lib\"\n\t},\n\t\"keywords\": [\n\t\t\"autotool-plugin\",\n\t\t\"managed-by-autotool\",\n\t\t\"vitest\"\n\t],\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling\",\n\t\t\"type\": \"git\"\n\t},\n\t\"type\": \"module\",\n\t\"publishConfig\": {\n\t\t\"access\": \"public\",\n\t\t\"exports\": {\n\t\t\t\".\": {\n\t\t\t\t\"types\": \"./dist/index.d.ts\",\n\t\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\t\"default\": \"./dist/index.js\"\n\t\t\t},\n\t\t\t\"./package-node-vitest.config\": \"./static/package-node-vitest.config.ts\",\n\t\t\t\"./package-svelte-vitest.config\": \"./static/package-svelte-vitest.config.ts\",\n\t\t\t\"./package-web-vitest.config\": \"./static/package-web-vitest.config.ts\",\n\t\t\t\"./package.json\": \"./package.json\",\n\t\t\t\"./readme\": \"./readme.md\"\n\t\t}\n\t},\n\t\"files\": [\n\t\t\"dist\",\n\t\t\"static\"\n\t],\n\t\"scripts\": {\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:es_\": \"eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore .\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:tsc_\": \"tsc --noEmit\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"publint_\": \"publint\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"test_\": \"vitest --passWithNoTests --coverage --run\",\n\t\t\"test:watch\": \"vitest --passWithNoTests --coverage\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"build\": \"turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"build-lib_\": \"vite build\",\n\t\t\"format\": \"turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .\"\n\t},\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./src/index.ts\",\n\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\"default\": \"./dist/index.js\"\n\t\t},\n\t\t\"./package-node-vitest.config\": \"./static/package-node-vitest.config.ts\",\n\t\t\"./package-svelte-vitest.config\": \"./static/package-svelte-vitest.config.ts\",\n\t\t\"./package-web-vitest.config\": \"./static/package-web-vitest.config.ts\",\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./readme\": \"./readme.md\"\n\t},\n\t\"dependencies\": {\n\t\t\"@alexaegis/coverage-tools\": \"workspace:^\",\n\t\t\"@alexaegis/logging\": \"workspace:^\",\n\t\t\"@alexaegis/predicate\": \"workspace:^\",\n\t\t\"autotool-plugin\": \"^0.6.1\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/eslint-config-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@alexaegis/vite\": \"workspace:^\",\n\t\t\"@alexaegis/vitest\": \"workspace:^\",\n\t\t\"@lcov-viewer/cli\": \"^1.3.0\",\n\t\t\"@types/node\": \"^25.6.0\",\n\t\t\"@vitest/coverage-v8\": \"^4.1.5\",\n\t\t\"publint\": \"^0.3.18\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vite\": \"^8.0.10\",\n\t\t\"vite-plugin-dts\": \"^5.0.0\",\n\t\t\"vitest\": \"^4.1.5\"\n\t}\n}\n","import { contains, equal, not, or } from '@alexaegis/predicate';\nimport {\n\ttype AutotoolPlugin,\n\ttype AutotoolPluginObject,\n\ttype NormalizedAutotoolPluginOptions,\n} from 'autotool-plugin';\nimport { join } from 'node:path';\nimport packageJson from '../package.json' with { type: 'json' };\n\nconst appOrLib = or(equal('app'), equal('lib'));\n\nexport const plugin: AutotoolPlugin = (\n\t_options: NormalizedAutotoolPluginOptions,\n): AutotoolPluginObject => {\n\treturn {\n\t\tname: packageJson.name,\n\t\telements: [\n\t\t\t{\n\t\t\t\tdescription: 'workspace test scripts and devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\ttest: 'turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@vitest/coverage-v8': packageJson.devDependencies['@vitest/coverage-v8'],\n\t\t\t\t\t\t'@lcov-viewer/cli': packageJson.devDependencies['@lcov-viewer/cli'],\n\t\t\t\t\t\t'@alexaegis/coverage-tools':\n\t\t\t\t\t\t\tpackageJson.dependencies['@alexaegis/coverage-tools'],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package test scripts',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\ttest: 'turbo run test_ --concurrency 16 --filter ${packageName}',\n\t\t\t\t\t\ttest_: 'vitest --passWithNoTests --coverage --run',\n\t\t\t\t\t\t'test:watch': 'vitest --passWithNoTests --coverage',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package test devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tname: not(or(equal('@alexaegis/vite'), equal('@alexaegis/vitest'))), // Don't add it for itself and 'vite' it would cause a circle\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdata: {\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@alexaegis/vitest': packageJson.devDependencies['@alexaegis/vitest'],\n\t\t\t\t\t\tvitest: packageJson.devDependencies.vitest,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for web packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tplatform: 'web',\n\t\t\t\t\t\tframework: not(contains('svelte')),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-web-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for node packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tplatform: 'node',\n\t\t\t\t\t\tframework: not(contains('svelte')),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-node-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for svelte packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tframework: 'svelte',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-svelte-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\t\t],\n\t};\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACSA,IAAM,WAAW,GAAG,MAAM,MAAM,EAAE,MAAM,MAAM,CAAC;AAE/C,IAAa,UACZ,aAC0B;AAC1B,QAAO;EACN,MAAM,gBAAY;EAClB,UAAU;GACT;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,MAAM;KACL,SAAS,EACR,MAAM,2HACN;KACD,iBAAiB;MAChB,uBAAuB,gBAAY,gBAAgB;MACnD,oBAAoB,gBAAY,gBAAgB;MAChD,6BACC,gBAAY,aAAa;MAC1B;KACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB,EAClB,WAAW,EACV,MAAM,UACN,EACD;IACD,MAAM,EACL,SAAS;KACR,MAAM;KACN,OAAO;KACP,cAAc;KACd,EACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB;KAClB,MAAM,IAAI,GAAG,MAAM,kBAAkB,EAAE,MAAM,oBAAoB,CAAC,CAAC;KACnE,WAAW,EACV,MAAM,UACN;KACD;IACD,MAAM,EACL,iBAAiB;KAChB,qBAAqB,gBAAY,gBAAgB;KACjD,QAAQ,gBAAY,gBAAgB;KACpC,EACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,WAAW,IAAI,SAAS,SAAS,CAAC;KAClC,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,YAAY,KAAK,UAAU,+BAA+B;IAC1D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GAED;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,WAAW,IAAI,SAAS,SAAS,CAAC;KAClC,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,YAAY,KAAK,UAAU,gCAAgC;IAC3D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GACD;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,WAAW;KACX,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,YAAY,KAAK,UAAU,kCAAkC;IAC7D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GACD;EACD"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexaegis/autotool-plugin-vitest",
|
|
3
3
|
"description": "Setup vitest",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"archetype": {
|
|
@@ -42,23 +42,23 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"autotool-plugin": "^0.6.1",
|
|
45
|
-
"@alexaegis/coverage-tools": "^0.15.
|
|
46
|
-
"@alexaegis/
|
|
47
|
-
"@alexaegis/
|
|
45
|
+
"@alexaegis/coverage-tools": "^0.15.1",
|
|
46
|
+
"@alexaegis/logging": "^0.15.1",
|
|
47
|
+
"@alexaegis/predicate": "^0.15.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@lcov-viewer/cli": "^1.3.0",
|
|
51
|
-
"@types/node": "^25.
|
|
52
|
-
"@vitest/coverage-v8": "^4.1.
|
|
51
|
+
"@types/node": "^25.6.0",
|
|
52
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
53
53
|
"publint": "^0.3.18",
|
|
54
|
-
"typescript": "^
|
|
55
|
-
"vite": "^8.0.
|
|
56
|
-
"vite-plugin-dts": "^
|
|
57
|
-
"vitest": "^4.1.
|
|
58
|
-
"@alexaegis/eslint-config-vitest": "^0.15.
|
|
59
|
-
"@alexaegis/ts": "^0.15.
|
|
60
|
-
"@alexaegis/
|
|
61
|
-
"@alexaegis/
|
|
54
|
+
"typescript": "^6.0.3",
|
|
55
|
+
"vite": "^8.0.10",
|
|
56
|
+
"vite-plugin-dts": "^5.0.0",
|
|
57
|
+
"vitest": "^4.1.5",
|
|
58
|
+
"@alexaegis/eslint-config-vitest": "^0.15.1",
|
|
59
|
+
"@alexaegis/ts": "^0.15.1",
|
|
60
|
+
"@alexaegis/vite": "^0.15.1",
|
|
61
|
+
"@alexaegis/vitest": "^0.15.1"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|