Skip to content

Commit ac2b722

Browse files
authored
Fix scripts/tests.meta file issue in npm package (#145)
## Description `scripts/tests/meta` was missing from the npm bundle. The gitignore and npmignore are now more aligned. ## Related Issue Fixes # Unity error messages on package load (very annoying and can break user workflows) ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Refactor (code change that neither fixes a bug nor adds a feature) ## Checklist <!-- Ensure all items are completed before requesting review --> - [ ] I have added tests that prove my fix is effective or my feature works - [ ] I have updated the documentation accordingly - [x] I have updated the [CHANGELOG](../CHANGELOG.md) - [x] My changes do not introduce breaking changes, or breaking changes are documented
1 parent 0ed5759 commit ac2b722

File tree

4 files changed

+35
-26
lines changed

4 files changed

+35
-26
lines changed

.npmignore

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,36 +40,38 @@ _llm_*.meta
4040
.npmignore.meta
4141

4242
# Agent/AI instruction files (keep for npm but exclude from published package)
43-
AGENTS.md
44-
AGENTS.md.meta
45-
CLAUDE.md
46-
CLAUDE.md.meta
47-
PLAN.md
48-
PLAN.md.meta
43+
# Use leading slash to match only root-level files
44+
/AGENTS.md
45+
/AGENTS.md.meta
46+
/CLAUDE.md
47+
/CLAUDE.md.meta
48+
/PLAN.md
49+
/PLAN.md.meta
4950

5051
# Progress tracking folder (development notes - root level only)
5152
/progress/
5253
/progress.meta
5354

54-
# Artifacts and build outputs
55-
artifacts/
56-
artifacts.meta
55+
# Artifacts and build outputs (root level only)
56+
/artifacts/
57+
/artifacts.meta
5758

58-
# Test failures and logs
59-
TestFailures.txt
60-
TestFailures.txt.meta
59+
# Test failures and logs (root level only)
60+
/TestFailures.txt
61+
/TestFailures.txt.meta
6162
logs_*.zip
6263
logs_*.zip.meta
6364

64-
# Node.js
65-
node_modules/
66-
node_modules.meta
67-
package-lock.json
68-
package-lock.json.meta
65+
# Node.js (root level only)
66+
/node_modules/
67+
/node_modules.meta
68+
/package-lock.json
69+
/package-lock.json.meta
6970

7071
# Tests (not needed in published Unity package)
71-
Tests/
72-
Tests.meta
72+
# Use leading slash to match only root-level Tests, not scripts/tests
73+
/Tests/
74+
/Tests.meta
7375

7476
# Windows reserved device name artifacts
7577
nul
@@ -86,9 +88,9 @@ nul.meta
8688
*.userosscache
8789
*.sln.docstates
8890

89-
# Placeholder files
90-
PlaceHolderSummary.md
91-
PlaceHolderSummary.md.meta
91+
# Placeholder files (root level only)
92+
/PlaceHolderSummary.md
93+
/PlaceHolderSummary.md.meta
9294

9395
# Unity Editor Analyzers (built DLLs)
9496
Editor/Analyzers/*.dll
@@ -102,6 +104,7 @@ Editor/Analyzers/*.pdb
102104
*.log
103105
*.log.meta
104106
method-analysis-*
105-
TestProjects.meta
106-
TestProjects/
107+
# TestProjects (root level only)
108+
/TestProjects.meta
109+
/TestProjects/
107110
scripts/run-unity*

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
See [the roadmap](./docs/overview/roadmap.md) for details
1111

12+
## [3.1.2]
13+
14+
### Fixed
15+
16+
- Updated npmignore to align more closely with gitignore. The `scripts/tests` meta file error when sourcing from npm should be gone.
17+
1218
## [3.1.1]
1319

1420
### Fixed

docs/images/unity-helpers-banner.svg

Lines changed: 1 addition & 1 deletion
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.wallstop-studios.unity-helpers",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"displayName": "Unity Helpers",
55
"description": "Treasure chest of Unity developer tools ",
66
"unity": "2021.3",

0 commit comments

Comments
 (0)