@powerlines/plugin-content-collections 0.1.36 → 0.1.38
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/dist/helpers/create-writer.cjs +1 -1
- package/dist/helpers/create-writer.d.cts +1 -2
- package/dist/helpers/create-writer.d.ts +1 -2
- package/dist/helpers/create-writer.js +1 -1
- package/dist/helpers/index.d.cts +1 -2
- package/dist/helpers/index.d.ts +1 -2
- package/dist/{index-BjSxEszb.d.cts → index-GRKtdNQI.d.cts} +186 -229
- package/dist/{index-BjSxEszb.d.ts → index-GRKtdNQI.d.ts} +186 -229
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/plugin.d.cts +1 -2
- package/dist/types/plugin.d.ts +1 -2
- package/package.json +10 -10
|
@@ -9,4 +9,4 @@ ${r.collections.map(({name:e})=>`import ${s(e)} from "./${kebabCase.kebabCase(e)
|
|
|
9
9
|
`)}
|
|
10
10
|
|
|
11
11
|
export { ${r.collections.map(({name:e})=>s(e)).join(", ")} };
|
|
12
|
-
`,"content"),"createJavaScriptFile"),createTypeDefinitionFile:chunkFBBMZ4NC_cjs.a(async r=>Promise.resolve(),"createTypeDefinitionFile"),createDataFiles:chunkFBBMZ4NC_cjs.a(async r=>{await Promise.all(r.map(async e=>t.config.contentCollections.outputPath?t.fs.
|
|
12
|
+
`,"content"),"createJavaScriptFile"),createTypeDefinitionFile:chunkFBBMZ4NC_cjs.a(async r=>Promise.resolve(),"createTypeDefinitionFile"),createDataFiles:chunkFBBMZ4NC_cjs.a(async r=>{await Promise.all(r.map(async e=>t.config.contentCollections.outputPath?t.fs.write(joinPaths.joinPaths(t.config.contentCollections.outputPath,kebabCase.kebabCase(e.name)),core.serialize(e.documents.map(o=>o.document))):t.emitBuiltin(core.serialize(e.documents.map(o=>o.document)),joinPaths.joinPaths("content",kebabCase.kebabCase(e.name)))));},"createDataFiles")}),"createWriter");exports.createWriter=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Writer } from '@content-collections/core';
|
|
2
|
-
import { C as ContentCollectionsPluginContext } from '../index-
|
|
2
|
+
import { C as ContentCollectionsPluginContext } from '../index-GRKtdNQI.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -15,7 +15,6 @@ import 'semver';
|
|
|
15
15
|
import 'ts-morph';
|
|
16
16
|
import 'unplugin';
|
|
17
17
|
import '@stryke/fs/resolve';
|
|
18
|
-
import 'node:fs';
|
|
19
18
|
import '@stryke/types/tsconfig';
|
|
20
19
|
import 'typescript';
|
|
21
20
|
import '@stryke/types/array';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Writer } from '@content-collections/core';
|
|
2
|
-
import { C as ContentCollectionsPluginContext } from '../index-
|
|
2
|
+
import { C as ContentCollectionsPluginContext } from '../index-GRKtdNQI.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -15,7 +15,6 @@ import 'semver';
|
|
|
15
15
|
import 'ts-morph';
|
|
16
16
|
import 'unplugin';
|
|
17
17
|
import '@stryke/fs/resolve';
|
|
18
|
-
import 'node:fs';
|
|
19
18
|
import '@stryke/types/tsconfig';
|
|
20
19
|
import 'typescript';
|
|
21
20
|
import '@stryke/types/array';
|
|
@@ -9,4 +9,4 @@ ${r.collections.map(({name:e})=>`import ${s(e)} from "./${kebabCase(e)}";`).join
|
|
|
9
9
|
`)}
|
|
10
10
|
|
|
11
11
|
export { ${r.collections.map(({name:e})=>s(e)).join(", ")} };
|
|
12
|
-
`,"content"),"createJavaScriptFile"),createTypeDefinitionFile:a(async r=>Promise.resolve(),"createTypeDefinitionFile"),createDataFiles:a(async r=>{await Promise.all(r.map(async e=>t.config.contentCollections.outputPath?t.fs.
|
|
12
|
+
`,"content"),"createJavaScriptFile"),createTypeDefinitionFile:a(async r=>Promise.resolve(),"createTypeDefinitionFile"),createDataFiles:a(async r=>{await Promise.all(r.map(async e=>t.config.contentCollections.outputPath?t.fs.write(joinPaths(t.config.contentCollections.outputPath,kebabCase(e.name)),serialize(e.documents.map(o=>o.document))):t.emitBuiltin(serialize(e.documents.map(o=>o.document)),joinPaths("content",kebabCase(e.name)))));},"createDataFiles")}),"createWriter");export{A as createWriter};
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { createEmitter } from './create-emitter.cjs';
|
|
2
2
|
export { createWriter } from './create-writer.cjs';
|
|
3
3
|
import '@content-collections/core';
|
|
4
|
-
import '../index-
|
|
4
|
+
import '../index-GRKtdNQI.cjs';
|
|
5
5
|
import '@storm-software/build-tools/types';
|
|
6
6
|
import '@storm-software/config-tools/types';
|
|
7
7
|
import '@storm-software/config/types';
|
|
@@ -17,7 +17,6 @@ import 'semver';
|
|
|
17
17
|
import 'ts-morph';
|
|
18
18
|
import 'unplugin';
|
|
19
19
|
import '@stryke/fs/resolve';
|
|
20
|
-
import 'node:fs';
|
|
21
20
|
import '@stryke/types/tsconfig';
|
|
22
21
|
import 'typescript';
|
|
23
22
|
import '@stryke/types/array';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { createEmitter } from './create-emitter.js';
|
|
2
2
|
export { createWriter } from './create-writer.js';
|
|
3
3
|
import '@content-collections/core';
|
|
4
|
-
import '../index-
|
|
4
|
+
import '../index-GRKtdNQI.js';
|
|
5
5
|
import '@storm-software/build-tools/types';
|
|
6
6
|
import '@storm-software/config-tools/types';
|
|
7
7
|
import '@storm-software/config/types';
|
|
@@ -17,7 +17,6 @@ import 'semver';
|
|
|
17
17
|
import 'ts-morph';
|
|
18
18
|
import 'unplugin';
|
|
19
19
|
import '@stryke/fs/resolve';
|
|
20
|
-
import 'node:fs';
|
|
21
20
|
import '@stryke/types/tsconfig';
|
|
22
21
|
import 'typescript';
|
|
23
22
|
import '@stryke/types/array';
|