@tryghost/bookshelf-order 2.0.3 → 2.2.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/README.md CHANGED
@@ -6,8 +6,7 @@
6
6
 
7
7
  or
8
8
 
9
- `yarn add @tryghost/bookshelf-order`
10
-
9
+ `pnpm add @tryghost/bookshelf-order`
11
10
 
12
11
  ## Purpose
13
12
 
@@ -15,29 +14,24 @@ Bookshelf plugin that adds standardized ordering helpers to model queries.
15
14
 
16
15
  ## Usage
17
16
 
18
-
19
17
  ## Develop
20
18
 
21
- This is a mono repository, managed with [lerna](https://lernajs.io/).
19
+ This is a mono repository, managed with [Nx](https://nx.dev).
22
20
 
23
21
  Follow the instructions for the top-level repo.
24
- 1. `git clone` this repo & `cd` into it as usual
25
- 2. Run `yarn` to install top-level dependencies.
26
22
 
23
+ 1. `git clone` this repo & `cd` into it as usual
24
+ 2. Run `pnpm install` to install top-level dependencies.
27
25
 
28
26
  ## Run
29
27
 
30
- - `yarn dev`
31
-
28
+ - `pnpm dev`
32
29
 
33
30
  ## Test
34
31
 
35
- - `yarn lint` run just eslint
36
- - `yarn test` run lint and tests
37
-
38
-
39
-
32
+ - `pnpm lint` runs oxlint
33
+ - `pnpm test` runs lint and tests
40
34
 
41
- # Copyright & License
35
+ # Copyright & License
42
36
 
43
- Copyright (c) 2013-2026 Ghost Foundation - Released under the [MIT license](LICENSE).
37
+ Copyright (c) 2013-2026 Ghost Foundation - Released under the [MIT license](LICENSE).
@@ -71,9 +71,9 @@ const orderPlugin = function orderPlugin(Bookshelf) {
71
71
  return {
72
72
  order,
73
73
  orderRaw: orderRaw.join(', '),
74
- eagerLoad: _.uniq(eagerLoadArray)
74
+ eagerLoad: _.uniq(eagerLoadArray),
75
75
  };
76
- }
76
+ },
77
77
  });
78
78
  };
79
79
 
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@tryghost/bookshelf-order",
3
- "version": "2.0.3",
3
+ "version": "2.2.0",
4
+ "license": "MIT",
5
+ "author": "Ghost Foundation",
4
6
  "repository": {
5
7
  "type": "git",
6
8
  "url": "git+https://github.com/TryGhost/framework.git",
7
9
  "directory": "packages/bookshelf-order"
8
10
  },
9
- "author": "Ghost Foundation",
10
- "license": "MIT",
11
- "main": "index.js",
12
- "scripts": {
13
- "dev": "echo \"Implement me!\"",
14
- "test": "NODE_ENV=testing vitest run --coverage --config ../../vitest.config.ts",
15
- "lint": "eslint . --ext .js --cache",
16
- "posttest": "yarn lint"
17
- },
18
11
  "files": [
19
12
  "index.js",
20
13
  "lib"
21
14
  ],
15
+ "main": "index.js",
22
16
  "publishConfig": {
23
17
  "access": "public"
24
18
  },
19
+ "dependencies": {
20
+ "lodash": "4.18.1"
21
+ },
25
22
  "devDependencies": {
26
- "sinon": "21.0.2"
23
+ "sinon": "21.1.2"
27
24
  },
28
- "dependencies": {
29
- "lodash": "4.17.23"
25
+ "scripts": {
26
+ "dev": "echo \"Implement me!\"",
27
+ "test": "NODE_ENV=testing vitest run --coverage",
28
+ "lint": "oxlint -c ../../.oxlintrc.json .",
29
+ "posttest": "pnpm run lint"
30
30
  }
31
- }
31
+ }