Skip to content

Commit

Permalink
fix(deps): revert rollup, unified
Browse files Browse the repository at this point in the history
  • Loading branch information
DuCanhGH committed Oct 12, 2023
1 parent 4f72f43 commit e1053f4
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 304 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"rehype-sanitize": "6.0.0",
"tailwindcss": "3.3.3",
"typescript": "5.3.0-dev.20231011",
"unified": "11.0.3",
"unified": "10.1.2",
"unist-util-is": "6.0.0",
"unist-util-visit": "5.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/next-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
"next": "13.5.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"rollup": "4.0.2",
"rollup-plugin-dts": "6.1.0",
"rollup": "3.28.1",
"rollup-plugin-dts": "6.0.2",
"type-fest": "4.4.0",
"typescript": "5.3.0-dev.20231011",
"webpack": "5.88.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/next-sw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"next": "13.5.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"rollup": "4.0.2",
"rollup-plugin-dts": "6.1.0",
"rollup": "3.28.1",
"rollup-plugin-dts": "6.0.2",
"typescript": "5.3.0-dev.20231011",
"webpack": "5.88.2"
},
Expand Down
10 changes: 4 additions & 6 deletions packages/test-utils/src/create-describe.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { NextInstance, NextInstanceOpts } from "./next-instance-base";
import { NextInstanceDev } from "./next-instance-dev";
import { NextInstanceStart } from "./next-instance-start";
import type { NextInstance, NextInstanceOpts } from "./next-instance-base.js";
import { NextInstanceDev } from "./next-instance-dev.js";
import { NextInstanceStart } from "./next-instance-start.js";

const validTestModes = ["dev", "start"] as const;

Expand Down Expand Up @@ -36,9 +36,7 @@ const createNext = async (opts: NextTestOpts) => {
await nextInstance.spawn();
return nextInstance;
} catch (err) {
console.error(
`failed to create next instance: ${JSON.stringify(err, null, 2)}`
);
console.error(`failed to create next instance: ${err}`);
try {
await nextInstance?.destroy();
} catch {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { createDescribe } from "./create-describe";
export { createDescribe } from "./create-describe.js";
4 changes: 2 additions & 2 deletions packages/test-utils/src/next-instance-dev.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { SpawnOptionsWithoutStdio } from "node:child_process";
import { spawn } from "node:child_process";

import { NextInstance } from "./next-instance-base";
import { getURLFromLog } from "./utils";
import { NextInstance } from "./next-instance-base.js";
import { getURLFromLog } from "./utils.js";

export class NextInstanceDev extends NextInstance {
public async setup(sourceDir: string) {
Expand Down
4 changes: 2 additions & 2 deletions packages/test-utils/src/next-instance-start.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { SpawnOptionsWithoutStdio } from "node:child_process";
import { spawn } from "node:child_process";

import { NextInstance } from "./next-instance-base";
import { getURLFromLog } from "./utils";
import { NextInstance } from "./next-instance-base.js";
import { getURLFromLog } from "./utils.js";

export class NextInstanceStart extends NextInstance {
public async setup(sourceDir: string) {
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@rollup/plugin-swc": "0.2.1",
"@swc/core": "1.3.92",
"@types/semver": "7.5.3",
"rollup": "4.0.2",
"rollup": "3.28.1",
"terser-webpack-plugin": "5.3.9",
"type-fest": "4.4.0",
"typescript": "5.3.0-dev.20231011"
Expand Down
Loading

0 comments on commit e1053f4

Please sign in to comment.