@nullvoxpopuli/ember-rolldown 2.10.0 → 2.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nullvoxpopuli/ember-rolldown",
3
- "version": "2.10.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": "dist/index.js",
@@ -32,9 +32,9 @@
32
32
  "dependencies": {
33
33
  "@babel/core": "^7.28.10 || ^8.0.0",
34
34
  "@babel/plugin-transform-typescript": "^7.28.10 || ^8.0.0",
35
- "@embroider/core": "^4.4.2",
35
+ "@embroider/core": "^4.6.9",
36
36
  "@jridgewell/remapping": "^2.3.5",
37
- "babel-plugin-ember-template-compilation": "^4.0.0",
37
+ "babel-plugin-ember-template-compilation": "^4.0.1",
38
38
  "content-tag": "^4.2.0",
39
39
  "decorator-transforms": "^2.4.0",
40
40
  "get-tsconfig": "^4.14.3",
@@ -1,6 +1,6 @@
1
1
  import { originalPositionFor, TraceMap } from "@jridgewell/trace-mapping";
2
2
  import { existsSync } from "node:fs";
3
- import { mkdtemp, mkdir, readFile, writeFile } from "node:fs/promises";
3
+ import { mkdtemp, mkdir, readFile, realpath, writeFile } from "node:fs/promises";
4
4
  import { tmpdir } from "node:os";
5
5
  import path from "node:path";
6
6
  import { rolldown } from "rolldown";
@@ -38,7 +38,7 @@ async function generate(
38
38
  files: Record<string, string>,
39
39
  { input = ["index.ts"], plugins = () => [], sourcemap = false }: BuildOptions = {},
40
40
  ): Promise<Build> {
41
- const dir = await mkdtemp(path.join(tmpdir(), "ember-rolldown-build-"));
41
+ const dir = await realpath(await mkdtemp(path.join(tmpdir(), "ember-rolldown-build-")));
42
42
 
43
43
  for (const [relative, source] of Object.entries(files)) {
44
44
  const full = path.join(dir, relative);
@@ -347,7 +347,7 @@ describe("emberTransform (full plugin via rolldown)", () => {
347
347
  });
348
348
 
349
349
  it("emits sourcemaps for the specifier rewrite (no SOURCEMAP_BROKEN warnings)", async () => {
350
- const dir = await mkdtemp(path.join(tmpdir(), "ember-rolldown-map-"));
350
+ const dir = await realpath(await mkdtemp(path.join(tmpdir(), "ember-rolldown-map-")));
351
351
 
352
352
  const files = {
353
353
  // index.ts contains a `.gts` specifier, so it goes through the rewrite.