xml-disassembler 2.0.2 → 2.0.5

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/CONTRIBUTING.md DELETED
@@ -1,54 +0,0 @@
1
- # Contributing to xml-disassembler
2
-
3
- Contributions are welcome. This guide covers how to set up the project, run checks, and submit changes.
4
-
5
- ## Requirements
6
-
7
- - **Node.js** ≥ 20
8
- - **pnpm** ≥ 9
9
-
10
- ## Setup
11
-
12
- 1. **Fork and clone**
13
-
14
- Fork the repo on GitHub, then clone your fork:
15
-
16
- ```bash
17
- git clone https://github.com/mcarvin8/xml-disassembler.git
18
- cd xml-disassembler
19
- ```
20
-
21
- 2. **Install dependencies**
22
-
23
- ```bash
24
- pnpm install
25
- ```
26
-
27
- ## Development workflow
28
-
29
- 1. Create a branch for your change.
30
- 2. Make your changes.
31
- 3. Run tests and lint (see below).
32
- 4. Commit. Pre-commit hooks will run Prettier via lint-staged.
33
- 5. Push and open a pull request.
34
-
35
- ## Scripts
36
-
37
- | Command | Description |
38
- | ---------------- | -------------------------- |
39
- | `pnpm test` | Run Jest with coverage |
40
- | `pnpm run lint` | Run ESLint |
41
- | `pnpm format` | Format code with Prettier |
42
- | `pnpm run build` | Build the library (Rollup) |
43
-
44
- ## Code quality
45
-
46
- - **Tests** – New or changed behavior should have tests. The project aims for **≥ 90% code coverage**; keep coverage at or above that.
47
- - **Linting** – Code must pass `pnpm run lint` (ESLint).
48
- - **Formatting** – Code is formatted with Prettier. Use `pnpm format` to fix formatting; the pre-commit hook also runs Prettier on staged files via lint-staged.
49
-
50
- ## Submitting changes
51
-
52
- 1. **Pull request** – Open a PR against `main`. Describe what changed and why.
53
- 2. **Scope** – Prefer one logical change per PR (one fix or one feature).
54
- 3. **Checks** – Ensure CI passes (tests and lint). Run `pnpm test` and `pnpm run lint` locally before pushing.
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const path = require("path");
3
- module.exports = require(path.join(__dirname, "native", "index.node"));
package/jest.config.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "preset": "ts-jest",
3
- "testEnvironment": "node",
4
- "testMatch": ["**/?(*.)+(spec|test).ts?(x)"],
5
- "collectCoverageFrom": ["src/**/*.{ts,tsx}"],
6
- "verbose": true,
7
- "transform": {
8
- "^.+\\.(ts|tsx)$": "ts-jest"
9
- },
10
- "moduleNameMapper": {
11
- "^@src/(.*)$": "<rootDir>/src/$1"
12
- },
13
- "coverageThreshold": {
14
- "global": {
15
- "branches": 90,
16
- "functions": 90,
17
- "lines": 90,
18
- "statements": 90
19
- }
20
- }
21
- }