@content-collections/vite 0.2.1 → 0.2.3
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/.turbo/turbo-build.log +14 -15
- package/CHANGELOG.md +16 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +8 -8
- package/src/index.ts +6 -6
- package/tsconfig.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[34mCLI[39m
|
|
7
|
-
[34mCLI[39m
|
|
8
|
-
[34mCLI[39m
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[32mESM[39m
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[32mDTS[39m
|
|
15
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m274.00 B[39m
|
|
1
|
+
|
|
2
|
+
> @content-collections/vite@0.2.3 build /home/runner/work/content-collections/content-collections/packages/vite
|
|
3
|
+
> tsup src/index.ts --format esm --dts -d dist
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.2.4
|
|
8
|
+
[34mCLI[39m Target: es2022
|
|
9
|
+
[34mESM[39m Build start
|
|
10
|
+
[32mESM[39m [1mdist/index.js [22m[32m2.07 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 44ms
|
|
12
|
+
[34mDTS[39m Build start
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 2609ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m279.00 B[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @content-collections/vite
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
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
|
+
|
|
9
|
+
- Updated dependencies [[`b2c89ce`](https://github.com/sdorra/content-collections/commit/b2c89ce6075d9a5115486d8ff9c0b84f4c0841dd)]:
|
|
10
|
+
- @content-collections/integrations@0.2.1
|
|
11
|
+
|
|
12
|
+
## 0.2.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`207a3de`](https://github.com/sdorra/content-collections/commit/207a3deaa95e34902c262ed8abc6320880b43dc2), [`2af05da`](https://github.com/sdorra/content-collections/commit/2af05da080720c16a02565cac9228d1ebcd9f649), [`a1dd55b`](https://github.com/sdorra/content-collections/commit/a1dd55bcfe198487de40402284d907b977eedcec)]:
|
|
17
|
+
- @content-collections/integrations@0.2.0
|
|
18
|
+
|
|
3
19
|
## 0.2.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import { createBuilder } from "@content-collections/core";
|
|
3
|
-
import path from "path";
|
|
4
3
|
import { configureLogging } from "@content-collections/integrations";
|
|
4
|
+
import path from "node:path";
|
|
5
5
|
var defaultOptions = {
|
|
6
6
|
configPath: "content-collections.ts"
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@content-collections/vite",
|
|
3
3
|
"description": "Use content-collections with Vite",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
"./package.json": "./package.json",
|
|
10
10
|
".": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@content-collections/integrations": "0.
|
|
16
|
+
"@content-collections/integrations": "0.2.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "20.x",
|
|
20
|
-
"tsup": "^
|
|
21
|
-
"typescript": "^5.
|
|
22
|
-
"vite": "^5.
|
|
23
|
-
"@content-collections/core": "0.
|
|
20
|
+
"tsup": "^8.2.4",
|
|
21
|
+
"typescript": "^5.5.4",
|
|
22
|
+
"vite": "^5.4.6",
|
|
23
|
+
"@content-collections/core": "0.7.2"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@content-collections/core": "^0.x",
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Builder, createBuilder } from "@content-collections/core";
|
|
2
|
-
import { Plugin, UserConfig } from "vite";
|
|
3
|
-
import path from "node:path";
|
|
4
2
|
import { configureLogging } from "@content-collections/integrations";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { Plugin, UserConfig } from "vite";
|
|
5
5
|
|
|
6
6
|
export type Options = {
|
|
7
7
|
configPath: string;
|
|
@@ -20,7 +20,7 @@ function resolveConfigPath(root: string, configPath: string) {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export default function contentCollectionsPlugin(
|
|
23
|
-
options: Partial<Options> = {}
|
|
23
|
+
options: Partial<Options> = {},
|
|
24
24
|
): Plugin {
|
|
25
25
|
const pluginOptions = { ...defaultOptions, ...options };
|
|
26
26
|
|
|
@@ -39,12 +39,12 @@ export default function contentCollectionsPlugin(
|
|
|
39
39
|
|
|
40
40
|
let configPath = resolveConfigPath(
|
|
41
41
|
config.root || process.cwd(),
|
|
42
|
-
pluginOptions.configPath
|
|
42
|
+
pluginOptions.configPath,
|
|
43
43
|
);
|
|
44
44
|
|
|
45
45
|
const directory = path.resolve(
|
|
46
46
|
path.dirname(configPath),
|
|
47
|
-
"./.content-collections/generated"
|
|
47
|
+
"./.content-collections/generated",
|
|
48
48
|
);
|
|
49
49
|
|
|
50
50
|
const configPatch: Partial<UserConfig> = {
|
|
@@ -77,7 +77,7 @@ export default function contentCollectionsPlugin(
|
|
|
77
77
|
let configPath = resolveConfigPath(config.root, pluginOptions.configPath);
|
|
78
78
|
console.log(
|
|
79
79
|
"Starting content-collections with config",
|
|
80
|
-
path.relative(process.cwd(), configPath)
|
|
80
|
+
path.relative(process.cwd(), configPath),
|
|
81
81
|
);
|
|
82
82
|
|
|
83
83
|
builder = await createBuilder(configPath);
|
package/tsconfig.json
CHANGED