@tryghost/mg-context 0.3.0 → 0.5.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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +13 -14
package/README.md CHANGED
@@ -9,7 +9,7 @@ Data is persisted to SQLite (in-memory by default), so migrations with tens of t
9
9
  ```bash
10
10
  npm install @tryghost/mg-context --save
11
11
  # or
12
- yarn add @tryghost/mg-context
12
+ pnpm add @tryghost/mg-context
13
13
  ```
14
14
 
15
15
  ## Quick start
@@ -674,16 +674,16 @@ npx tsx examples/generate-and-export.ts
674
674
 
675
675
  ## Develop
676
676
 
677
- This is a mono repository, managed with [Nx](https://nx.dev/) and yarn workspaces.
677
+ This is a mono repository, managed with [Nx](https://nx.dev/) and pnpm workspaces.
678
678
 
679
679
  Follow the instructions for the top-level repo.
680
680
  1. `git clone` this repo & `cd` into it as usual
681
- 2. Run `yarn` to install top-level dependencies.
681
+ 2. Run `pnpm install` to install top-level dependencies.
682
682
 
683
683
  ## Test
684
684
 
685
- - `yarn lint` run just eslint
686
- - `yarn test` run lint and tests
685
+ - `pnpm lint` run just eslint
686
+ - `pnpm test` run lint and tests
687
687
 
688
688
  # Copyright & License
689
689
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-context",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/TryGhost/migrate.git",
@@ -17,15 +17,6 @@
17
17
  "default": "./build/index.js"
18
18
  }
19
19
  },
20
- "scripts": {
21
- "dev": "echo \"Implement me!\"",
22
- "build:watch": "tsc --watch --preserveWatchOutput --sourceMap",
23
- "build": "rm -rf build && rm -rf tsconfig.tsbuildinfo && tsc --build --sourceMap",
24
- "prepare": "yarn build",
25
- "lint": "eslint src/ --ext .ts --cache",
26
- "test": "rm -rf build && yarn build --force && c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura node --test 'build/test/**/*.test.js'",
27
- "posttest": "yarn lint"
28
- },
29
20
  "files": [
30
21
  "build"
31
22
  ],
@@ -44,14 +35,22 @@
44
35
  "@tryghost/errors": "3.0.3",
45
36
  "@tryghost/html-to-mobiledoc": "3.2.21",
46
37
  "@tryghost/kg-html-to-lexical": "1.2.38",
47
- "@tryghost/listr-smart-renderer": "0.7.0",
48
- "@tryghost/mg-json": "0.14.0",
49
38
  "@tryghost/validator": "2.0.3",
50
39
  "@typescript-eslint/eslint-plugin": "8.58.0",
51
40
  "@typescript-eslint/parser": "8.58.0",
52
41
  "c8": "11.0.0",
53
42
  "eslint": "8.57.1",
54
43
  "typescript": "6.0.2",
55
- "zod": "4.3.6"
44
+ "zod": "4.3.6",
45
+ "@tryghost/listr-smart-renderer": "0.9.0",
46
+ "@tryghost/mg-json": "0.16.0"
47
+ },
48
+ "scripts": {
49
+ "dev": "echo \"Implement me!\"",
50
+ "build:watch": "tsc --watch --preserveWatchOutput --sourceMap",
51
+ "build": "rm -rf build && rm -rf tsconfig.tsbuildinfo && tsc --build --sourceMap",
52
+ "lint": "eslint src/ --ext .ts --cache",
53
+ "test": "rm -rf build && pnpm build --force && c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura node --test 'build/test/**/*.test.js'",
54
+ "posttest": "pnpm lint"
56
55
  }
57
- }
56
+ }