Skip to content

Commit

Permalink
set as injected, patch ember-cli-addon-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauryD committed Dec 18, 2023
1 parent 4322dd1 commit 96fd0ae
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 5 deletions.
26 changes: 26 additions & 0 deletions patches/ember-cli-addon-docs@6.0.2.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000000000000000000000000000000000000..f6e1d59217c5a9a7b520c5b78336c519ca2360f1
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,6 @@
+{
+ "eslint.validate": [
+ "glimmer-ts",
+ "glimmer-js"
+ ]
+}
\ No newline at end of file
diff --git a/addon/models/module.js b/addon/models/module.js
index 4887ba3bd30829653cd6944f1097ed65db41a9da..8c10bc597ef794f99e52549d0bef31eae12b08a1 100644
--- a/addon/models/module.js
Expand All @@ -11,3 +24,16 @@ index 4887ba3bd30829653cd6944f1097ed65db41a9da..8c10bc597ef794f99e52549d0bef31ea
components;

/*
diff --git a/index.js b/index.js
index f91f1ea4d0c64c41595f7b27dca4d6618145cd0d..f4c71b7e9f7d208b31479f34c3c618b71518e88a 100644
--- a/index.js
+++ b/index.js
@@ -386,7 +386,7 @@ module.exports = {
let addon;
if (this._documentingAddonAt()) {
addon = this.project.addons.find(
- (a) => a.root === this._documentingAddonAt(),
+ (a) => a.root === this._documentingAddonAt() || a.root.endsWith(module.exports.name),
);
if (!addon) {
throw new Error(
32 changes: 28 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix",
"start": "ember serve",
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
"test": "concurrently \"npm:lint\" \"npm:test:*(!ember-compatibility)\" --names \"lint,test:\"",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each",
"prepack": "ember ts:precompile",
Expand Down Expand Up @@ -112,6 +112,11 @@
"engines": {
"node": ">= 18"
},
"dependenciesMeta": {
"ember-flatpickr": {
"injected": true
}
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
Expand Down

0 comments on commit 96fd0ae

Please sign in to comment.