@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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Tymon Marek
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tymon Marek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/eslint.config.mts CHANGED
@@ -1,30 +1,30 @@
1
- import * as js from "@eslint/js";
2
- import * as globals from "globals";
3
- import tseslint from "typescript-eslint";
4
- import markdown from "@eslint/markdown";
5
- import { defineConfig } from "eslint/config";
6
-
7
- export default defineConfig([
8
- {
9
- files: ["src/**/*.{ts,mts,cts}"],
10
- plugins: { js },
11
- extends: ["js/recommended"],
12
- languageOptions: { globals: globals.node },
13
- },
14
- tseslint.configs.recommended,
15
- {
16
- files: ["tests/**/*.{ts,mts,cts}"],
17
- plugins: { js },
18
- extends: ["js/recommended"],
19
- languageOptions: { globals: { ...globals.node, ...globals.jest } },
20
- },
21
- {
22
- ignores: ["dist/**", "node_modules/**", "**/*.d.ts"],
23
- },
24
- {
25
- files: ["**/*.md"],
26
- plugins: { markdown },
27
- language: "markdown/gfm",
28
- extends: ["markdown/recommended"],
29
- },
30
- ]);
1
+ import * as js from "@eslint/js";
2
+ import * as globals from "globals";
3
+ import tseslint from "typescript-eslint";
4
+ import markdown from "@eslint/markdown";
5
+ import { defineConfig } from "eslint/config";
6
+
7
+ export default defineConfig([
8
+ {
9
+ files: ["src/**/*.{ts,mts,cts}"],
10
+ plugins: { js },
11
+ extends: ["js/recommended"],
12
+ languageOptions: { globals: globals.node },
13
+ },
14
+ tseslint.configs.recommended,
15
+ {
16
+ files: ["tests/**/*.{ts,mts,cts}"],
17
+ plugins: { js },
18
+ extends: ["js/recommended"],
19
+ languageOptions: { globals: { ...globals.node, ...globals.jest } },
20
+ },
21
+ {
22
+ ignores: ["dist/**", "node_modules/**", "**/*.d.ts"],
23
+ },
24
+ {
25
+ files: ["**/*.md"],
26
+ plugins: { markdown },
27
+ language: "markdown/gfm",
28
+ extends: ["markdown/recommended"],
29
+ },
30
+ ]);
package/jest.config.ts CHANGED
@@ -1,202 +1,202 @@
1
- /**
2
- * For a detailed explanation regarding each configuration property, visit:
3
- * https://jestjs.io/docs/configuration
4
- */
5
- import type { Config } from "@jest/types";
6
-
7
- const config: Config.InitialOptions = {
8
- // All imported modules in your tests should be mocked automatically
9
- // automock: false,
10
-
11
- // Stop running tests after `n` failures
12
- // bail: 0,
13
-
14
- // The directory where Jest should store its cached dependency information
15
- // cacheDirectory: "C:\\Users\\Tymon\\AppData\\Local\\Temp\\jest",
16
-
17
- // Automatically clear mock calls, instances, contexts and results before every test
18
- clearMocks: true,
19
-
20
- // Indicates whether the coverage information should be collected while executing the test
21
- collectCoverage: true,
22
-
23
- // An array of glob patterns indicating a set of files for which coverage information should be collected
24
- // collectCoverageFrom: undefined,
25
-
26
- // The directory where Jest should output its coverage files
27
- coverageDirectory: "coverage",
28
-
29
- // An array of regexp pattern strings used to skip coverage collection
30
- // coveragePathIgnorePatterns: [
31
- // "\\\\node_modules\\\\"
32
- // ],
33
-
34
- // Indicates which provider should be used to instrument code for coverage
35
- coverageProvider: "v8",
36
-
37
- // A list of reporter names that Jest uses when writing coverage reports
38
- // coverageReporters: [
39
- // "json",
40
- // "text",
41
- // "lcov",
42
- // "clover"
43
- // ],
44
-
45
- // An object that configures minimum threshold enforcement for coverage results
46
- // coverageThreshold: undefined,
47
-
48
- // A path to a custom dependency extractor
49
- // dependencyExtractor: undefined,
50
-
51
- // Make calling deprecated APIs throw helpful error messages
52
- // errorOnDeprecated: false,
53
-
54
- // The default configuration for fake timers
55
- // fakeTimers: {
56
- // "enableGlobally": false
57
- // },
58
-
59
- // Force coverage collection from ignored files using an array of glob patterns
60
- // forceCoverageMatch: [],
61
-
62
- // A path to a module which exports an async function that is triggered once before all test suites
63
- // globalSetup: undefined,
64
-
65
- // A path to a module which exports an async function that is triggered once after all test suites
66
- // globalTeardown: undefined,
67
-
68
- // A set of global variables that need to be available in all test environments
69
- // globals: {},
70
-
71
- // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
72
- // maxWorkers: "50%",
73
-
74
- // An array of directory names to be searched recursively up from the requiring module's location
75
- // moduleDirectories: [
76
- // "node_modules"
77
- // ],
78
-
79
- // An array of file extensions your modules use
80
- // moduleFileExtensions: [
81
- // "js",
82
- // "mjs",
83
- // "cjs",
84
- // "jsx",
85
- // "ts",
86
- // "mts",
87
- // "cts",
88
- // "tsx",
89
- // "json",
90
- // "node"
91
- // ],
92
-
93
- // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
94
- // moduleNameMapper: {},
95
-
96
- // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
97
- // modulePathIgnorePatterns: [],
98
-
99
- // Activates notifications for test results
100
- // notify: false,
101
-
102
- // An enum that specifies notification mode. Requires { notify: true }
103
- // notifyMode: "failure-change",
104
-
105
- // A preset that is used as a base for Jest's configuration
106
- preset: "ts-jest",
107
-
108
- // Run tests from one or more projects
109
- // projects: undefined,
110
-
111
- // Use this configuration option to add custom reporters to Jest
112
- // reporters: undefined,
113
-
114
- // Automatically reset mock state before every test
115
- // resetMocks: false,
116
-
117
- // Reset the module registry before running each individual test
118
- // resetModules: false,
119
-
120
- // A path to a custom resolver
121
- // resolver: undefined,
122
-
123
- // Automatically restore mock state and implementation before every test
124
- // restoreMocks: false,
125
-
126
- // The root directory that Jest should scan for tests and modules within
127
- // rootDir: undefined,
128
-
129
- // A list of paths to directories that Jest should use to search for files in
130
- // roots: [
131
- // "<rootDir>"
132
- // ],
133
-
134
- // Allows you to use a custom runner instead of Jest's default test runner
135
- // runner: "jest-runner",
136
-
137
- // The paths to modules that run some code to configure or set up the testing environment before each test
138
- // setupFiles: [],
139
-
140
- // A list of paths to modules that run some code to configure or set up the testing framework before each test
141
- // setupFilesAfterEnv: [],
142
-
143
- // The number of seconds after which a test is considered as slow and reported as such in the results.
144
- // slowTestThreshold: 5,
145
-
146
- // A list of paths to snapshot serializer modules Jest should use for snapshot testing
147
- // snapshotSerializers: [],
148
-
149
- // The test environment that will be used for testing
150
- testEnvironment: "node",
151
-
152
- // Options that will be passed to the testEnvironment
153
- // testEnvironmentOptions: {},
154
-
155
- // Adds a location field to test results
156
- // testLocationInResults: false,
157
-
158
- // The glob patterns Jest uses to detect test files
159
- // testMatch: [
160
- // "**/__tests__/**/*.?([mc])[jt]s?(x)",
161
- // "**/?(*.)+(spec|test).?([mc])[jt]s?(x)"
162
- // ],
163
-
164
- // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
165
- // testPathIgnorePatterns: [
166
- // "\\\\node_modules\\\\"
167
- // ],
168
-
169
- // The regexp pattern or array of patterns that Jest uses to detect test files
170
- // testRegex: [],
171
-
172
- // This option allows the use of a custom results processor
173
- // testResultsProcessor: undefined,
174
-
175
- // This option allows use of a custom test runner
176
- // testRunner: "jest-circus/runner",
177
-
178
- // A map from regular expressions to paths to transformers
179
- transform: {
180
- "^.+\\.ts$": "ts-jest", // Transform TypeScript files with ts-jest
181
- "^.+\\.js$": "ts-jest", // Transform JavaScript files too (for packages like @semantic-release/error)
182
- },
183
-
184
- // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
185
- transformIgnorePatterns: [
186
- "/node_modules/(?!@semantic-release|other-modules-to-include)/", // Transform the required modules that use ES modules
187
- ],
188
-
189
- // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
190
- // unmockedModulePathPatterns: undefined,
191
-
192
- // Indicates whether each individual test should be reported during the run
193
- // verbose: undefined,
194
-
195
- // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
196
- // watchPathIgnorePatterns: [],
197
-
198
- // Whether to use watchman for file crawling
199
- // watchman: true,
200
- };
201
-
202
- export default config;
1
+ /**
2
+ * For a detailed explanation regarding each configuration property, visit:
3
+ * https://jestjs.io/docs/configuration
4
+ */
5
+ import type { Config } from "@jest/types";
6
+
7
+ const config: Config.InitialOptions = {
8
+ // All imported modules in your tests should be mocked automatically
9
+ // automock: false,
10
+
11
+ // Stop running tests after `n` failures
12
+ // bail: 0,
13
+
14
+ // The directory where Jest should store its cached dependency information
15
+ // cacheDirectory: "C:\\Users\\Tymon\\AppData\\Local\\Temp\\jest",
16
+
17
+ // Automatically clear mock calls, instances, contexts and results before every test
18
+ clearMocks: true,
19
+
20
+ // Indicates whether the coverage information should be collected while executing the test
21
+ collectCoverage: true,
22
+
23
+ // An array of glob patterns indicating a set of files for which coverage information should be collected
24
+ // collectCoverageFrom: undefined,
25
+
26
+ // The directory where Jest should output its coverage files
27
+ coverageDirectory: "coverage",
28
+
29
+ // An array of regexp pattern strings used to skip coverage collection
30
+ // coveragePathIgnorePatterns: [
31
+ // "\\\\node_modules\\\\"
32
+ // ],
33
+
34
+ // Indicates which provider should be used to instrument code for coverage
35
+ coverageProvider: "v8",
36
+
37
+ // A list of reporter names that Jest uses when writing coverage reports
38
+ // coverageReporters: [
39
+ // "json",
40
+ // "text",
41
+ // "lcov",
42
+ // "clover"
43
+ // ],
44
+
45
+ // An object that configures minimum threshold enforcement for coverage results
46
+ // coverageThreshold: undefined,
47
+
48
+ // A path to a custom dependency extractor
49
+ // dependencyExtractor: undefined,
50
+
51
+ // Make calling deprecated APIs throw helpful error messages
52
+ // errorOnDeprecated: false,
53
+
54
+ // The default configuration for fake timers
55
+ // fakeTimers: {
56
+ // "enableGlobally": false
57
+ // },
58
+
59
+ // Force coverage collection from ignored files using an array of glob patterns
60
+ // forceCoverageMatch: [],
61
+
62
+ // A path to a module which exports an async function that is triggered once before all test suites
63
+ // globalSetup: undefined,
64
+
65
+ // A path to a module which exports an async function that is triggered once after all test suites
66
+ // globalTeardown: undefined,
67
+
68
+ // A set of global variables that need to be available in all test environments
69
+ // globals: {},
70
+
71
+ // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
72
+ // maxWorkers: "50%",
73
+
74
+ // An array of directory names to be searched recursively up from the requiring module's location
75
+ // moduleDirectories: [
76
+ // "node_modules"
77
+ // ],
78
+
79
+ // An array of file extensions your modules use
80
+ // moduleFileExtensions: [
81
+ // "js",
82
+ // "mjs",
83
+ // "cjs",
84
+ // "jsx",
85
+ // "ts",
86
+ // "mts",
87
+ // "cts",
88
+ // "tsx",
89
+ // "json",
90
+ // "node"
91
+ // ],
92
+
93
+ // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
94
+ // moduleNameMapper: {},
95
+
96
+ // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
97
+ // modulePathIgnorePatterns: [],
98
+
99
+ // Activates notifications for test results
100
+ // notify: false,
101
+
102
+ // An enum that specifies notification mode. Requires { notify: true }
103
+ // notifyMode: "failure-change",
104
+
105
+ // A preset that is used as a base for Jest's configuration
106
+ preset: "ts-jest",
107
+
108
+ // Run tests from one or more projects
109
+ // projects: undefined,
110
+
111
+ // Use this configuration option to add custom reporters to Jest
112
+ // reporters: undefined,
113
+
114
+ // Automatically reset mock state before every test
115
+ // resetMocks: false,
116
+
117
+ // Reset the module registry before running each individual test
118
+ // resetModules: false,
119
+
120
+ // A path to a custom resolver
121
+ // resolver: undefined,
122
+
123
+ // Automatically restore mock state and implementation before every test
124
+ // restoreMocks: false,
125
+
126
+ // The root directory that Jest should scan for tests and modules within
127
+ // rootDir: undefined,
128
+
129
+ // A list of paths to directories that Jest should use to search for files in
130
+ // roots: [
131
+ // "<rootDir>"
132
+ // ],
133
+
134
+ // Allows you to use a custom runner instead of Jest's default test runner
135
+ // runner: "jest-runner",
136
+
137
+ // The paths to modules that run some code to configure or set up the testing environment before each test
138
+ // setupFiles: [],
139
+
140
+ // A list of paths to modules that run some code to configure or set up the testing framework before each test
141
+ // setupFilesAfterEnv: [],
142
+
143
+ // The number of seconds after which a test is considered as slow and reported as such in the results.
144
+ // slowTestThreshold: 5,
145
+
146
+ // A list of paths to snapshot serializer modules Jest should use for snapshot testing
147
+ // snapshotSerializers: [],
148
+
149
+ // The test environment that will be used for testing
150
+ testEnvironment: "node",
151
+
152
+ // Options that will be passed to the testEnvironment
153
+ // testEnvironmentOptions: {},
154
+
155
+ // Adds a location field to test results
156
+ // testLocationInResults: false,
157
+
158
+ // The glob patterns Jest uses to detect test files
159
+ // testMatch: [
160
+ // "**/__tests__/**/*.?([mc])[jt]s?(x)",
161
+ // "**/?(*.)+(spec|test).?([mc])[jt]s?(x)"
162
+ // ],
163
+
164
+ // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
165
+ // testPathIgnorePatterns: [
166
+ // "\\\\node_modules\\\\"
167
+ // ],
168
+
169
+ // The regexp pattern or array of patterns that Jest uses to detect test files
170
+ // testRegex: [],
171
+
172
+ // This option allows the use of a custom results processor
173
+ // testResultsProcessor: undefined,
174
+
175
+ // This option allows use of a custom test runner
176
+ // testRunner: "jest-circus/runner",
177
+
178
+ // A map from regular expressions to paths to transformers
179
+ transform: {
180
+ "^.+\\.ts$": "ts-jest", // Transform TypeScript files with ts-jest
181
+ "^.+\\.js$": "ts-jest", // Transform JavaScript files too (for packages like @semantic-release/error)
182
+ },
183
+
184
+ // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
185
+ transformIgnorePatterns: [
186
+ "/node_modules/(?!@semantic-release|other-modules-to-include)/", // Transform the required modules that use ES modules
187
+ ],
188
+
189
+ // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
190
+ // unmockedModulePathPatterns: undefined,
191
+
192
+ // Indicates whether each individual test should be reported during the run
193
+ // verbose: undefined,
194
+
195
+ // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
196
+ // watchPathIgnorePatterns: [],
197
+
198
+ // Whether to use watchman for file crawling
199
+ // watchman: true,
200
+ };
201
+
202
+ export default config;
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@tymonmarek/wally",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A minimal plugin template for semantic-release.",
5
- "main": "build/index.js",
6
5
  "homepage": "https://github.com/TymonMarek/wally",
6
+ "main": "build/index.js",
7
+ "types": "build/index.d.ts",
7
8
  "repository": {
8
9
  "type": "git",
9
10
  "url": "git+https://github.com/TymonMarek/wally.git"
package/.editorconfig DELETED
@@ -1,21 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- end_of_line = lf
6
- insert_final_newline = true
7
- indent_style = space
8
- indent_size = 2
9
- trim_trailing_whitespace = true
10
-
11
- [*.md]
12
- trim_trailing_whitespace = false
13
-
14
- [*.ts]
15
- indent_size = 2
16
-
17
- [*.json]
18
- indent_size = 2
19
-
20
- [*.yml]
21
- indent_size = 2
@@ -1,6 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: "npm"
4
- directory: "/"
5
- schedule:
6
- interval: "daily"
@@ -1,31 +0,0 @@
1
- name: Build
2
-
3
- on:
4
- push:
5
- branches:
6
- - "*"
7
-
8
- permissions:
9
- contents: read
10
-
11
- jobs:
12
- build:
13
- name: Build project
14
- runs-on: ubuntu-latest
15
- permissions:
16
- contents: write
17
- steps:
18
- - name: Checkout repository
19
- uses: actions/checkout@v6
20
-
21
- - name: Setup Node.js
22
- uses: actions/setup-node@v6
23
- with:
24
- cache: npm
25
- node-version: lts/*
26
-
27
- - name: Install dependencies
28
- run: npm clean-install
29
-
30
- - name: Build project
31
- run: npm run build
@@ -1,55 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- - next
8
- - beta
9
- - "*.x"
10
-
11
- permissions:
12
- contents: read
13
-
14
- jobs:
15
- release:
16
- name: Generate a release
17
- permissions:
18
- contents: write
19
- issues: write
20
- pull-requests: write
21
- id-token: write
22
- runs-on: ubuntu-latest
23
- environment: npm
24
- steps:
25
- - name: Checkout repository
26
- uses: actions/checkout@v6
27
-
28
- - name: Setup Node.js
29
- uses: actions/setup-node@v6
30
- with:
31
- cache: npm
32
- node-version: lts/*
33
-
34
- - name: Install dependencies
35
- run: npm clean-install
36
-
37
- - name: Build project
38
- run: npm run build
39
-
40
- - name: Audit signatures
41
- run: npm run audit
42
-
43
- - name: Commit built files
44
- run: |
45
- git config --global user.name "github-actions[bot]"
46
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
47
- git add .
48
- git commit -m "chore: build files [skip ci]" || echo "No changes to commit"
49
- git push origin HEAD:${{ github.ref }}
50
-
51
- - name: Generate the release
52
- run: npm run release
53
- env:
54
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}