ember.nvp 1.16.0 → 1.17.0

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,8 +2,8 @@
2
2
  "solution": {
3
3
  "ember.nvp": {
4
4
  "impact": "minor",
5
- "oldVersion": "1.15.0",
6
- "newVersion": "1.16.0",
5
+ "oldVersion": "1.16.0",
6
+ "newVersion": "1.17.0",
7
7
  "tagName": "latest",
8
8
  "constraints": [
9
9
  {
@@ -22,38 +22,20 @@
22
22
  },
23
23
  "@nullvoxpopuli/ember-rolldown": {
24
24
  "impact": "minor",
25
- "oldVersion": "2.10.0",
26
- "newVersion": "2.11.0",
25
+ "oldVersion": "2.11.0",
26
+ "newVersion": "2.12.0",
27
27
  "tagName": "latest",
28
28
  "constraints": [
29
29
  {
30
30
  "impact": "minor",
31
31
  "reason": "Appears in changelog section :rocket: Enhancement"
32
- },
33
- {
34
- "impact": "patch",
35
- "reason": "Appears in changelog section :bug: Bug Fix"
36
32
  }
37
33
  ],
38
34
  "pkgJSONPath": "./packages/rolldown/package.json"
39
35
  },
40
36
  "@nullvoxpopuli/ember-vite": {
41
- "impact": "minor",
42
- "oldVersion": "1.2.0",
43
- "newVersion": "1.3.0",
44
- "tagName": "latest",
45
- "constraints": [
46
- {
47
- "impact": "minor",
48
- "reason": "Appears in changelog section :rocket: Enhancement"
49
- },
50
- {
51
- "impact": "patch",
52
- "reason": "Appears in changelog section :bug: Bug Fix"
53
- }
54
- ],
55
- "pkgJSONPath": "./packages/vite/package.json"
37
+ "oldVersion": "1.3.0"
56
38
  }
57
39
  },
58
- "description": "## Release (2026-10-12)\n\n* ember.nvp 1.16.0 (minor)\n* @nullvoxpopuli/ember-rolldown 2.11.0 (minor)\n* @nullvoxpopuli/ember-vite 1.3.0 (minor)\n\n#### :rocket: Enhancement\n* `@nullvoxpopuli/ember-rolldown`, `@nullvoxpopuli/ember-vite`, `ember.nvp`\n * [#163](https://github.com/NullVoxPopuli/ember.nvp/pull/163) Update the embroider dependencies, give the config hook its plugin context ([@NullVoxPopuli-ai-agent](https://github.com/NullVoxPopuli-ai-agent))\n\n#### :bug: Bug Fix\n* `@nullvoxpopuli/ember-vite`, `ember.nvp`\n * [#162](https://github.com/NullVoxPopuli/ember.nvp/pull/162) Find the embroider config plugin by name ([@NullVoxPopuli-ai-agent](https://github.com/NullVoxPopuli-ai-agent))\n* `@nullvoxpopuli/ember-rolldown`\n * [#160](https://github.com/NullVoxPopuli/ember.nvp/pull/160) Fix macOS tests ([@tcjr](https://github.com/tcjr))\n\n#### Committers: 2\n- @NullVoxPopuli's reduced-access machine account for AI usage ([@NullVoxPopuli-ai-agent](https://github.com/NullVoxPopuli-ai-agent))\n- Tom Carter ([@tcjr](https://github.com/tcjr))\n"
40
+ "description": "## Release (2026-10-16)\n\n* ember.nvp 1.17.0 (minor)\n* @nullvoxpopuli/ember-rolldown 2.12.0 (minor)\n\n#### :rocket: Enhancement\n* `@nullvoxpopuli/ember-rolldown`, `ember.nvp`\n * [#166](https://github.com/NullVoxPopuli/ember.nvp/pull/166) Require babel-plugin-ember-template-compilation 4.0.1 ([@NullVoxPopuli-ai-agent](https://github.com/NullVoxPopuli-ai-agent))\n\n#### :bug: Bug Fix\n* `ember.nvp`\n * [#164](https://github.com/NullVoxPopuli/ember.nvp/pull/164) Add vite/client types to the dev tsconfig of libraries with tests ([@NullVoxPopuli-ai-agent](https://github.com/NullVoxPopuli-ai-agent))\n\n#### Committers: 1\n- @NullVoxPopuli's reduced-access machine account for AI usage ([@NullVoxPopuli-ai-agent](https://github.com/NullVoxPopuli-ai-agent))\n"
59
41
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## Release (2026-10-16)
4
+
5
+ * ember.nvp 1.17.0 (minor)
6
+ * @nullvoxpopuli/ember-rolldown 2.12.0 (minor)
7
+
8
+ #### :rocket: Enhancement
9
+ * `@nullvoxpopuli/ember-rolldown`, `ember.nvp`
10
+ * [#166](https://github.com/NullVoxPopuli/ember.nvp/pull/166) Require babel-plugin-ember-template-compilation 4.0.1 ([@NullVoxPopuli-ai-agent](https://github.com/NullVoxPopuli-ai-agent))
11
+
12
+ #### :bug: Bug Fix
13
+ * `ember.nvp`
14
+ * [#164](https://github.com/NullVoxPopuli/ember.nvp/pull/164) Add vite/client types to the dev tsconfig of libraries with tests ([@NullVoxPopuli-ai-agent](https://github.com/NullVoxPopuli-ai-agent))
15
+
16
+ #### Committers: 1
17
+ - @NullVoxPopuli's reduced-access machine account for AI usage ([@NullVoxPopuli-ai-agent](https://github.com/NullVoxPopuli-ai-agent))
18
+
3
19
  ## Release (2026-10-12)
4
20
 
5
21
  * ember.nvp 1.16.0 (minor)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember.nvp",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nullvoxpopuli/ember-rolldown",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "Meta plugin for building ember v2 libraries/addons with rolldown & tsdown.",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -48,7 +48,7 @@
48
48
  "@embroider/core": "^4.6.9",
49
49
  "@jridgewell/remapping": "^2.3.5",
50
50
  "@nullvoxpopuli/ember-build-tooling-utils": "workspace:*",
51
- "babel-plugin-ember-template-compilation": "^4.0.0",
51
+ "babel-plugin-ember-template-compilation": "^4.0.1",
52
52
  "content-tag": "^4.2.0",
53
53
  "decorator-transforms": "^2.4.0",
54
54
  "get-tsconfig": "^4.14.3",
@@ -44,7 +44,7 @@
44
44
  "@nullvoxpopuli/ember-vite": "workspace:*",
45
45
  "@rollup/plugin-babel": "^7.1.0",
46
46
  "babel-plugin-debug-macros": "^2.0.0",
47
- "babel-plugin-ember-template-compilation": "^4.0.0",
47
+ "babel-plugin-ember-template-compilation": "^4.0.1",
48
48
  "typescript": "^6.0.3",
49
49
  "vite": "^8.0.14"
50
50
  },
@@ -45,7 +45,7 @@
45
45
  "@nullvoxpopuli/ember-vite": "workspace:*",
46
46
  "@rollup/plugin-babel": "^7.1.0",
47
47
  "babel-plugin-debug-macros": "^2.0.0",
48
- "babel-plugin-ember-template-compilation": "^4.0.0",
48
+ "babel-plugin-ember-template-compilation": "^4.0.1",
49
49
  "typescript": "^6.0.3",
50
50
  "vite": "^8.0.14"
51
51
  },
@@ -31,7 +31,7 @@ const libraryDeps = {
31
31
  ...deps,
32
32
  "@embroider/macros": "^1.21.3",
33
33
  "@nullvoxpopuli/ember-vite": "workspace:*",
34
- "babel-plugin-ember-template-compilation": "^4.0.0",
34
+ "babel-plugin-ember-template-compilation": "^4.0.1",
35
35
  vite: "^8.0.14",
36
36
  };
37
37
  const libraryTsDeps = {
@@ -223,7 +223,9 @@ async function syncTestBabelConfig(project, ts) {
223
223
  * Tests live outside `src`, and editors, `lint:types`, and eslint read tsconfig.json.
224
224
  * So in a TypeScript library, this layer:
225
225
  * - widens tsconfig.json to `src` and `tests`, without the publish-only settings
226
- * - moves those settings to `config/tsconfig.publish.json`, which the build uses
226
+ * - adds the `vite/client` types to tsconfig.json, because the tests build with Vite
227
+ * - moves the publish-only settings to `config/tsconfig.publish.json`, which the build uses.
228
+ * That file keeps the library types, without `vite/client`, because `src` does not run through Vite.
227
229
  *
228
230
  * @param {import('#utils/project.js').Project} project
229
231
  */
@@ -233,18 +235,35 @@ async function usePublishTsconfig(project) {
233
235
 
234
236
  let config = await tsconfig.read(project.directory);
235
237
 
236
- if (!needsWidening(config)) return;
238
+ if (needsWidening(config)) {
239
+ await tsconfig.modify((json) => {
240
+ json.include ||= [];
237
241
 
238
- await tsconfig.modify((json) => {
239
- json.include ||= [];
242
+ if (!json.include.includes("tests")) {
243
+ json.include.push("tests");
244
+ }
240
245
 
241
- if (!json.include.includes("tests")) {
242
- json.include.push("tests");
243
- }
246
+ delete json.compilerOptions?.rootDir;
247
+ delete json.compilerOptions?.isolatedDeclarations;
248
+ }, project.directory);
249
+ }
244
250
 
245
- delete json.compilerOptions?.rootDir;
246
- delete json.compilerOptions?.isolatedDeclarations;
247
- }, project.directory);
251
+ if (!hasViteTypes(config)) {
252
+ await tsconfig.modify((json) => {
253
+ json.compilerOptions ||= {};
254
+ json.compilerOptions.types ||= [];
255
+ json.compilerOptions.types.push(VITE_TYPES);
256
+ }, project.directory);
257
+ }
258
+ }
259
+
260
+ const VITE_TYPES = "vite/client";
261
+
262
+ /**
263
+ * @param {Record<string, any>} config
264
+ */
265
+ function hasViteTypes(config) {
266
+ return Boolean(config.compilerOptions?.types?.includes(VITE_TYPES));
248
267
  }
249
268
 
250
269
  /**
@@ -3,6 +3,7 @@
3
3
  "include": ["../src"],
4
4
  "compilerOptions": {
5
5
  "rootDir": "../src",
6
- "isolatedDeclarations": true
6
+ "isolatedDeclarations": true,
7
+ "types": ["ember-source/types", "@glint/ember-tsc/types"]
7
8
  }
8
9
  }
@@ -23,7 +23,7 @@ const deps = {
23
23
  const libraryDeps = {
24
24
  "@babel/plugin-transform-typescript": "^7.28.10",
25
25
  "@nullvoxpopuli/ember-vite": "workspace:*",
26
- "babel-plugin-ember-template-compilation": "^4.0.0",
26
+ "babel-plugin-ember-template-compilation": "^4.0.1",
27
27
  vite: "^8.0.14",
28
28
  };
29
29
 
@@ -5,6 +5,7 @@ import { execa } from "execa";
5
5
  import { mkdir, rm, writeFile } from "node:fs/promises";
6
6
  import { dirname, join } from "node:path";
7
7
 
8
+ import { generateProject } from "ember.nvp";
8
9
  import type { Project } from "ember.nvp";
9
10
 
10
11
  async function installAndTest(project: Project) {
@@ -271,7 +272,8 @@ describe("layer: qunit", () => {
271
272
  "include": ["../src"],
272
273
  "compilerOptions": {
273
274
  "rootDir": "../src",
274
- "isolatedDeclarations": true
275
+ "isolatedDeclarations": true,
276
+ "types": ["ember-source/types", "@glint/ember-tsc/types"]
275
277
  }
276
278
  }
277
279
  "
@@ -282,7 +284,7 @@ describe("layer: qunit", () => {
282
284
  "include": ["src", "tests"],
283
285
  "compilerOptions": {
284
286
  "lib": ["esnext", "dom", "dom.iterable"],
285
- "types": ["ember-source/types", "@glint/ember-tsc/types"],
287
+ "types": ["ember-source/types", "@glint/ember-tsc/types", "vite/client"],
286
288
  },
287
289
  "contentMappers": [
288
290
  {
@@ -316,6 +318,31 @@ describe("layer: qunit", () => {
316
318
  });
317
319
  });
318
320
 
321
+ describe("library (TypeScript), updating a project from before vite/client", () => {
322
+ it("adds vite/client to tsconfig.json only", async () => {
323
+ const project = await generate({
324
+ type: "library",
325
+ name: "my-lib",
326
+ layers: ["qunit", "typescript"],
327
+ });
328
+ dirs.push(project.directory);
329
+
330
+ let tsconfig = await project.read("tsconfig.json");
331
+ expect(tsconfig).toContain(', "vite/client"');
332
+ await writeFile(
333
+ join(project.directory, "tsconfig.json"),
334
+ tsconfig!.replace(', "vite/client"', ""),
335
+ );
336
+
337
+ await generateProject(project, "update");
338
+
339
+ expect(await project.read("tsconfig.json")).toContain(
340
+ '"types": ["ember-source/types", "@glint/ember-tsc/types", "vite/client"]',
341
+ );
342
+ expect(await project.read("config/tsconfig.publish.json")).not.toContain("vite/client");
343
+ });
344
+ });
345
+
319
346
  describe("library (TypeScript) with eslint", () => {
320
347
  it("lints the tests", { timeout: 300_000 }, async () => {
321
348
  const project = await generate({
@@ -126,7 +126,7 @@ describe("publish configs", () => {
126
126
 
127
127
  manifest.devDependencies["@babel/core"] = "^7.28.10";
128
128
  manifest.devDependencies["@babel/plugin-transform-typescript"] = "^7.28.10";
129
- manifest.devDependencies["babel-plugin-ember-template-compilation"] = "^4.0.0";
129
+ manifest.devDependencies["babel-plugin-ember-template-compilation"] = "^4.0.1";
130
130
 
131
131
  await writeFile(
132
132
  join(project.directory, "package.json"),