tstyche 1.0.0-beta.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.
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "definitions": {},
4
+ "properties": {
5
+ "allowNoTestFiles": {
6
+ "default": false,
7
+ "description": "Do not raise an error, if no test files are selected.",
8
+ "type": "boolean"
9
+ },
10
+ "failFast": {
11
+ "default": false,
12
+ "description": "Stop running tests after the first failed assertion.",
13
+ "type": "boolean"
14
+ },
15
+ "rootPath": {
16
+ "default": "./",
17
+ "description": "The path to a directory containing files of a test project.",
18
+ "type": "string"
19
+ },
20
+ "target": {
21
+ "default": [
22
+ "latest"
23
+ ],
24
+ "description": "The list of TypeScript versions to be tested on.",
25
+ "items": {
26
+ "pattern": "^([45]\\.[0-9](\\.[0-9])?)|beta|latest|next|rc$",
27
+ "type": "string"
28
+ },
29
+ "type": "array",
30
+ "uniqueItems": true
31
+ },
32
+ "testFileMatch": {
33
+ "default": [
34
+ "**/*.tst.*",
35
+ "**/__typetests__/*.test.*",
36
+ "**/typetests/*.test.*"
37
+ ],
38
+ "description": "The list of glob patterns matching the test files.",
39
+ "items": {
40
+ "type": "string"
41
+ },
42
+ "type": "array",
43
+ "uniqueItems": true
44
+ }
45
+ },
46
+ "type": "object"
47
+ }
package/package.json ADDED
@@ -0,0 +1,128 @@
1
+ {
2
+ "name": "tstyche",
3
+ "version": "1.0.0-beta.0",
4
+ "description": "The Essential Type Testing Tool.",
5
+ "keywords": [
6
+ "typescript",
7
+ "types",
8
+ "test",
9
+ "runner"
10
+ ],
11
+ "homepage": "https://tstyche.org",
12
+ "bugs": {
13
+ "url": "https://github.com/tstyche/tstyche/issues"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/tstyche/tstyche.git"
18
+ },
19
+ "license": "MIT",
20
+ "type": "module",
21
+ "exports": {
22
+ ".": {
23
+ "import": "./build/index.js",
24
+ "require": "./build/index.cjs"
25
+ },
26
+ "./package.json": "./package.json",
27
+ "./tstyche": "./build/tstyche.js"
28
+ },
29
+ "main": "./build/index.cjs",
30
+ "types": "./build/index.d.cts",
31
+ "bin": "build/bin.js",
32
+ "files": [
33
+ "build/**/*.d.ts",
34
+ "build/**/*.js",
35
+ "lib/*.json"
36
+ ],
37
+ "scripts": {
38
+ "build": "rollup --config rollup.config.js",
39
+ "build:watch": "yarn build --sourcemap --watch",
40
+ "clean": "rm -rf build",
41
+ "generate": "wireit",
42
+ "lint": "yarn lint:cspell && yarn lint:eslint && yarn lint:prettier",
43
+ "lint:cspell": "cspell --cache --config cspell.config.json --quiet",
44
+ "lint:eslint": "yarn lint:eslint:md && yarn lint:eslint:ts",
45
+ "lint:eslint:md": "eslint ./ --cache --config eslint.md.json --ext .md",
46
+ "lint:eslint:ts": "eslint ./ --cache --config eslint.config.json --ext .js,.cts,.ts,.tsx",
47
+ "lint:prettier": "prettier ./ --cache --check",
48
+ "pretest": "yarn tstyche --install --target 4.8,latest",
49
+ "test": "yarn pretest && NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.js",
50
+ "test:coverage": "yarn build --sourcemap && c8 --config c8.config.json yarn test",
51
+ "test:e2e": "yarn test --testMatch '**/tests/*.test.ts'",
52
+ "test:examples": "tstyche examples",
53
+ "test:types": "tstyche tests",
54
+ "test:unit": "yarn test --testMatch '**/src/**/__tests__/*.test.ts?(x)'",
55
+ "typecheck": "yarn tsc --noEmit --project tsconfig.json"
56
+ },
57
+ "devDependencies": {
58
+ "@jest/globals": "29.7.0",
59
+ "@rollup/plugin-typescript": "11.1.5",
60
+ "@types/node": "20.9.0",
61
+ "@typescript-eslint/eslint-plugin": "6.10.0",
62
+ "@typescript-eslint/parser": "6.10.0",
63
+ "ajv": "8.12.0",
64
+ "c8": "8.0.1",
65
+ "cspell": "8.0.0",
66
+ "eslint": "8.53.0",
67
+ "eslint-config-prettier": "9.0.0",
68
+ "eslint-import-resolver-typescript": "3.6.1",
69
+ "eslint-plugin-import": "2.29.0",
70
+ "eslint-plugin-jest": "27.6.0",
71
+ "eslint-plugin-jest-formatting": "3.1.0",
72
+ "eslint-plugin-markdown": "3.0.1",
73
+ "eslint-plugin-simple-import-sort": "10.0.0",
74
+ "eslint-plugin-tsdoc": "0.2.17",
75
+ "jest": "29.7.0",
76
+ "jest-serializer-ansi-escapes": "2.0.1",
77
+ "magic-string": "0.30.5",
78
+ "prettier": "3.0.3",
79
+ "rollup": "4.3.0",
80
+ "rollup-plugin-dts": "6.1.0",
81
+ "rollup-plugin-tsconfig-paths": "1.5.2",
82
+ "ts-node": "10.9.1",
83
+ "tslib": "2.6.2",
84
+ "typescript": "5.2.2",
85
+ "wireit": "0.14.1"
86
+ },
87
+ "peerDependencies": {
88
+ "typescript": "4.x || 5.x"
89
+ },
90
+ "peerDependenciesMeta": {
91
+ "typescript": {
92
+ "optional": true
93
+ }
94
+ },
95
+ "packageManager": "yarn@4.0.1",
96
+ "engines": {
97
+ "node": "^16.14 || 18.x || >=20.x"
98
+ },
99
+ "wireit": {
100
+ "generate": {
101
+ "dependencies": [
102
+ "generate:schema",
103
+ "generate:types"
104
+ ]
105
+ },
106
+ "generate:schema": {
107
+ "command": "node scripts/generate-schema.js",
108
+ "files": [
109
+ "./build",
110
+ "./scripts/generate-schema.js"
111
+ ],
112
+ "output": [
113
+ "./lib/schema.json"
114
+ ]
115
+ },
116
+ "generate:types": {
117
+ "command": "node scripts/generate-types.js",
118
+ "files": [
119
+ "./build",
120
+ "./scripts/generate-types.js"
121
+ ],
122
+ "output": [
123
+ "./lib/CommandLineOptions.ts",
124
+ "./lib/ConfigFileOptions.ts"
125
+ ]
126
+ }
127
+ }
128
+ }