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/dist/index.cjs +26 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.min.umd.js +2 -0
- package/dist/index.min.umd.js.map +1 -0
- package/dist/index.mjs +26 -31
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +82 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/native/darwin-arm64/index.node +0 -0
- package/dist/native/win32-x64/index.node +0 -0
- package/dist/typings/index.d.ts +30 -0
- package/package.json +9 -3
- package/.eslintignore +0 -2
- package/.eslintrc.json +0 -11
- package/.gitattributes +0 -1
- package/.prettierignore +0 -3
- package/.prettierrc +0 -1
- package/.xmldisassemblerignore +0 -1
- package/CHANGELOG.md +0 -666
- package/CONTRIBUTING.md +0 -54
- package/dist/native-loader.cjs +0 -3
- package/jest.config.json +0 -21
- /package/dist/native/{index.node → linux-x64/index.node} +0 -0
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.
|
package/dist/native-loader.cjs
DELETED
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
|
-
}
|
|
File without changes
|