@tymonmarek/wally 0.1.0 → 0.2.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.
package/src/index.ts DELETED
@@ -1,56 +0,0 @@
1
- // import {
2
- // AnalyzeCommitsContext,
3
- // GenerateNotesContext,
4
- // PublishContext,
5
- // PrepareContext,
6
- // VerifyConditionsContext,
7
- // VerifyReleaseContext,
8
- // SuccessContext,
9
- // FailContext,
10
- // GlobalConfig,
11
- // } from "semantic-release";
12
-
13
- // export async function verifyConditions(
14
- // pluginConfig: GlobalConfig,
15
- // context: VerifyConditionsContext,
16
- // ) {}
17
-
18
- // export async function analyzeCommits(
19
- // pluginConfig: GlobalConfig,
20
- // context: AnalyzeCommitsContext,
21
- // ) {}
22
-
23
- // export async function verifyRelease(
24
- // pluginConfig: GlobalConfig,
25
- // context: VerifyReleaseContext,
26
- // ) {}
27
-
28
- // export async function generateNotes(
29
- // pluginConfig: GlobalConfig,
30
- // context: GenerateNotesContext,
31
- // ) {}
32
-
33
- // export async function addChannel(
34
- // pluginConfig: GlobalConfig,
35
- // context: VerifyReleaseContext,
36
- // ) {}
37
-
38
- // export async function prepare(
39
- // pluginConfig: GlobalConfig,
40
- // context: PrepareContext,
41
- // ) {}
42
-
43
- // export async function publish(
44
- // pluginConfig: GlobalConfig,
45
- // context: PublishContext,
46
- // ) {}
47
-
48
- // export async function success(
49
- // pluginConfig: GlobalConfig,
50
- // context: SuccessContext,
51
- // ) {}
52
-
53
- // export async function fail(
54
- // pluginConfig: GlobalConfig,
55
- // context: FailContext,
56
- // ) {}
@@ -1,31 +0,0 @@
1
- import SemanticReleaseError from "@semantic-release/error";
2
- import { ERROR_DEFINITIONS, ErrorCode, getError, link } from "../src/error";
3
-
4
- test("error definition generates error link correctly", () => {
5
- expect(link("README.md#usage")).toBe(
6
- "https://github.com/TymonMarek/wally/blob/main/README.md#usage",
7
- );
8
- });
9
-
10
- test("error definition generates error link without fragment", () => {
11
- expect(link("src/index.ts")).toBe(
12
- "https://github.com/TymonMarek/wally/blob/main/src/index.ts",
13
- );
14
- });
15
-
16
- test("error definition generates error link with empty input", () => {
17
- expect(link("")).toBe("https://github.com/TymonMarek/wally/blob/main/");
18
- });
19
-
20
- test("getError generates SemanticReleaseError with correct properties", () => {
21
- const semanticError = getError(ErrorCode.WallyNotInstalled);
22
-
23
- expect(semanticError).toBeInstanceOf(SemanticReleaseError);
24
- expect(semanticError.message).toBe(
25
- ERROR_DEFINITIONS[ErrorCode.WallyNotInstalled].message,
26
- );
27
- expect(semanticError.code).toBe(ErrorCode.WallyNotInstalled.toString());
28
- expect(semanticError.details).toBe(
29
- ERROR_DEFINITIONS[ErrorCode.WallyNotInstalled].details,
30
- );
31
- });
@@ -1,13 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "extends": "./tsconfig.json",
4
- "compilerOptions": {
5
- "sourceMap": true,
6
- "declaration": true,
7
- "declarationMap": true,
8
- "rootDir": "./src",
9
- "outDir": "./build"
10
- },
11
- "include": ["src/**/*.ts"],
12
- "exclude": ["tests/**/*.ts"]
13
- }
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
-
4
- "compilerOptions": {
5
- "lib": ["ESNext"],
6
- "module": "nodenext",
7
- "moduleResolution": "nodenext",
8
-
9
- "strict": true,
10
- "alwaysStrict": true,
11
- "strictNullChecks": true,
12
- "strictFunctionTypes": true,
13
- "strictBindCallApply": true,
14
-
15
- "noImplicitAny": true,
16
- "noUnusedLocals": true,
17
- "noImplicitThis": true,
18
- "noErrorTruncation": true,
19
- "noUnusedParameters": true,
20
- "forceConsistentCasingInFileNames": true,
21
-
22
- "esModuleInterop": true,
23
- "skipLibCheck": false,
24
- "resolveJsonModule": true,
25
- "isolatedModules": true,
26
- "removeComments": true
27
- }
28
- }