@content-collections/integrations 0.2.0 → 0.2.1

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.
@@ -1,18 +1,18 @@
1
1
 
2
- > @content-collections/integrations@0.2.0 build /home/runner/work/content-collections/content-collections/packages/integrations
2
+ > @content-collections/integrations@0.2.1 build /home/runner/work/content-collections/content-collections/packages/integrations
3
3
  > tsup src/index.ts --format esm,cjs --dts -d dist
4
4
 
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.0.2
8
- CLI Target: es2022
9
- ESM Build start
10
- CJS Build start
11
- CJS dist/index.cjs 3.49 KB
12
- CJS ⚡️ Build success in 21ms
13
- ESM dist/index.js 1.80 KB
14
- ESM ⚡️ Build success in 21ms
15
- DTS Build start
16
- DTS ⚡️ Build success in 811ms
17
- DTS dist/index.d.ts 143.00 B
18
- DTS dist/index.d.cts 143.00 B
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.2.4
8
+ CLI Target: es2022
9
+ ESM Build start
10
+ CJS Build start
11
+ CJS dist/index.cjs 3.49 KB
12
+ CJS ⚡️ Build success in 21ms
13
+ ESM dist/index.js 1.81 KB
14
+ ESM ⚡️ Build success in 22ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 849ms
17
+ DTS dist/index.d.ts 143.00 B
18
+ DTS dist/index.d.cts 143.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @content-collections/integrations
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#330](https://github.com/sdorra/content-collections/pull/330) [`b2c89ce`](https://github.com/sdorra/content-collections/commit/b2c89ce6075d9a5115486d8ff9c0b84f4c0841dd) Thanks [@sdorra](https://github.com/sdorra)! - Ensure types is exported before imports and require
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  // src/index.ts
2
- import path2 from "path";
2
+ import path2 from "node:path";
3
3
 
4
4
  // src/errors.ts
5
- import path from "path";
5
+ import path from "node:path";
6
6
  var handledErrors = ["transformer:validation-error", "collector:parse-error"];
7
7
  function isUnknownError(event) {
8
8
  return !handledErrors.includes(event);
package/package.json CHANGED
@@ -1,23 +1,24 @@
1
1
  {
2
2
  "name": "@content-collections/integrations",
3
3
  "description": "Utils for integrating Content Collections with other tools",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "type": "module",
6
- "main": "dist/index.js",
6
+ "main": "dist/index.cjs",
7
+ "module": "dist/index.js",
7
8
  "types": "./dist/index.d.ts",
8
9
  "exports": {
9
10
  "./package.json": "./package.json",
10
11
  ".": {
12
+ "types": "./dist/index.d.ts",
11
13
  "import": "./dist/index.js",
12
- "require": "./dist/index.cjs",
13
- "types": "./dist/index.d.ts"
14
+ "require": "./dist/index.cjs"
14
15
  }
15
16
  },
16
17
  "devDependencies": {
17
18
  "@types/node": "20",
18
- "tsup": "^8.0.2",
19
+ "tsup": "^8.2.4",
19
20
  "typescript": "^5.5.4",
20
- "@content-collections/core": "0.7.0"
21
+ "@content-collections/core": "0.7.2"
21
22
  },
22
23
  "peerDependencies": {
23
24
  "@content-collections/core": "0.x"
package/src/errors.ts CHANGED
@@ -12,7 +12,7 @@ export function registerErrorListeners(builder: Builder) {
12
12
  console.log();
13
13
  console.log(
14
14
  "Validation failed on",
15
- path.join(event.collection.directory, event.file.path) + ":"
15
+ path.join(event.collection.directory, event.file.path) + ":",
16
16
  );
17
17
  console.log(event.error.message);
18
18
  console.log();
package/src/index.ts CHANGED
@@ -16,7 +16,7 @@ export function configureLogging(builder: Builder) {
16
16
  event.stats.documents,
17
17
  event.stats.documents === 1 ? "document" : "documents",
18
18
  "in",
19
- event.endedAt - event.startedAt + "ms"
19
+ event.endedAt - event.startedAt + "ms",
20
20
  );
21
21
  });
22
22
 
package/tsconfig.json CHANGED
@@ -21,4 +21,4 @@
21
21
  /* If your code doesn't run in the DOM: */
22
22
  "lib": ["es2022"]
23
23
  }
24
- }
24
+ }