ember.nvp 0.2.2 → 0.2.4

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.
@@ -2,30 +2,20 @@
2
2
  "solution": {
3
3
  "ember.nvp": {
4
4
  "impact": "patch",
5
- "oldVersion": "0.2.1",
6
- "newVersion": "0.2.2",
5
+ "oldVersion": "0.2.3",
6
+ "newVersion": "0.2.4",
7
7
  "tagName": "latest",
8
8
  "constraints": [
9
9
  {
10
10
  "impact": "patch",
11
- "reason": "Appears in changelog section :house: Internal"
11
+ "reason": "Appears in changelog section :bug: Bug Fix"
12
12
  }
13
13
  ],
14
14
  "pkgJSONPath": "./package.json"
15
15
  },
16
16
  "@nullvoxpopuli/ember-vite": {
17
- "impact": "patch",
18
- "oldVersion": "1.0.0",
19
- "newVersion": "1.0.1",
20
- "tagName": "latest",
21
- "constraints": [
22
- {
23
- "impact": "patch",
24
- "reason": "Appears in changelog section :house: Internal"
25
- }
26
- ],
27
- "pkgJSONPath": "./packages/vite/package.json"
17
+ "oldVersion": "1.0.2"
28
18
  }
29
19
  },
30
- "description": "## Release (2026-06-01)\n\n* ember.nvp 0.2.2 (patch)\n* @nullvoxpopuli/ember-vite 1.0.1 (patch)\n\n#### :house: Internal\n* `@nullvoxpopuli/ember-vite`\n * [#36](https://github.com/NullVoxPopuli/ember.nvp/pull/36) Fix npm provenance failure for @nullvoxpopuli/ember-vite publish ([@Copilot](https://github.com/apps/copilot-swe-agent))\n* `ember.nvp`, `@nullvoxpopuli/ember-vite`\n * [#37](https://github.com/NullVoxPopuli/ember.nvp/pull/37) Revert \"Prepare Release\" ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n\n#### Committers: 2\n- Copilot [Bot] ([@copilot-swe-agent](https://github.com/apps/copilot-swe-agent))\n- [@NullVoxPopuli](https://github.com/NullVoxPopuli)\n"
20
+ "description": "## Release (2026-06-22)\n\n* ember.nvp 0.2.4 (patch)\n\n#### :bug: Bug Fix\n* `ember.nvp`\n * [#42](https://github.com/NullVoxPopuli/ember.nvp/pull/42) fix falsey depndencies ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n\n#### Committers: 1\n- [@NullVoxPopuli](https://github.com/NullVoxPopuli)\n"
31
21
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## Release (2026-06-22)
4
+
5
+ * ember.nvp 0.2.4 (patch)
6
+
7
+ #### :bug: Bug Fix
8
+ * `ember.nvp`
9
+ * [#42](https://github.com/NullVoxPopuli/ember.nvp/pull/42) fix falsey depndencies ([@NullVoxPopuli](https://github.com/NullVoxPopuli))
10
+
11
+ #### Committers: 1
12
+ - [@NullVoxPopuli](https://github.com/NullVoxPopuli)
13
+
14
+ ## Release (2026-06-22)
15
+
16
+ * ember.nvp 0.2.3 (patch)
17
+ * @nullvoxpopuli/ember-vite 1.0.2 (patch)
18
+
19
+ #### :bug: Bug Fix
20
+ * `@nullvoxpopuli/ember-vite`, `ember.nvp`
21
+ * [#41](https://github.com/NullVoxPopuli/ember.nvp/pull/41) Fix version range usage ([@NullVoxPopuli](https://github.com/NullVoxPopuli))
22
+ * `ember.nvp`
23
+ * [#40](https://github.com/NullVoxPopuli/ember.nvp/pull/40) Ensure imports exist ([@NullVoxPopuli](https://github.com/NullVoxPopuli))
24
+
25
+ #### Committers: 1
26
+ - [@NullVoxPopuli](https://github.com/NullVoxPopuli)
27
+
3
28
  ## Release (2026-06-01)
4
29
 
5
30
  * ember.nvp 0.2.2 (patch)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember.nvp",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "ember project generator, alternative to the official blueprints, but more modern -- hopefully one day to upstream back in to ember-cli / official blueprints",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,6 +31,12 @@ Then delete from your package.json: `@rollup/plugin-babel`, `@embroider/core`, `
31
31
  > [!NOTE]
32
32
  > babel related deps are still needed for linting, so don't delete those
33
33
 
34
+ ## Requirements
35
+
36
+ - `type=module` in your ember app
37
+ - babel config must be named `babel.config.js`
38
+ - `@embroider/vite` is up to date~ish
39
+
34
40
  ## Configuration
35
41
 
36
42
  The `ember()` plugin takes the following options:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nullvoxpopuli/ember-vite",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Meta plugin for ember projects focusing on speed.",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "packageManager": "pnpm@10.28.0",
20
20
  "dependencies": {
21
- "@babel/core": "^7.28.6",
21
+ "@babel/core": "^7.28.10",
22
22
  "@embroider/core": "^4.4.2",
23
23
  "@embroider/vite": "^1.5.0",
24
24
  "@rollup/plugin-babel": "^7.1.0",
@@ -91,6 +91,7 @@ async function makeJavaScript(project) {
91
91
  await project.removeFile("tsconfig.json");
92
92
 
93
93
  await packageJson.modify((json) => {
94
+ json.imports ||= {};
94
95
  json.imports["#config"] = "./app/config.js";
95
96
  }, project.directory);
96
97
  }
@@ -105,7 +106,11 @@ async function upgradeDependencies(project) {
105
106
  let existing = await packageJson.read(project.directory);
106
107
 
107
108
  await packageJson.modify(async (json) => {
108
- Object.assign(json.dependencies, await getLatest(existing.dependencies));
109
- Object.assign(json.devDependencies, await getLatest(existing.devDependencies));
109
+ if (json.dependencies) {
110
+ Object.assign(json.dependencies, await getLatest(existing.dependencies));
111
+ }
112
+ if (json.devDependencies) {
113
+ Object.assign(json.devDependencies, await getLatest(existing.devDependencies));
114
+ }
110
115
  }, project.directory);
111
116
  }
package/src/utils/npm.js CHANGED
@@ -16,6 +16,7 @@ export async function getLatest(deps) {
16
16
  let results = await Promise.all(
17
17
  Object.entries(deps).map(async ([dep, range]) => {
18
18
  let existing = CACHE[dep]?.[range];
19
+
19
20
  if (existing) {
20
21
  return [dep, existing];
21
22
  }
@@ -37,6 +38,9 @@ export async function getLatest(deps) {
37
38
  if (needsLocalLink && dep === "@nullvoxpopuli/ember-vite") {
38
39
  version = "link:" + resolve(join(import.meta.dirname, "../../packages/vite"));
39
40
  } else {
41
+ if (range == "workspace:*") {
42
+ range = "latest";
43
+ }
40
44
  version = await latestVersion(dep, { version: range });
41
45
  }
42
46