@outputai/core 0.1.12-next.0990e42.0 → 0.1.12-next.76bcede.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/bin/copy_assets.js +16 -0
- package/package.json +3 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { copyFileSync, mkdirSync, globSync } from 'node:fs';
|
|
3
|
+
import { dirname, join } from 'node:path';
|
|
4
|
+
|
|
5
|
+
const srcDir = 'src';
|
|
6
|
+
const destDir = 'dist';
|
|
7
|
+
const matchers = [ '**/*.prompt', '**/*.yml.enc', '**/*.key', '**/*.md' ];
|
|
8
|
+
|
|
9
|
+
for ( const pattern of matchers ) {
|
|
10
|
+
for ( const file of globSync( pattern, { cwd: srcDir } ) ) {
|
|
11
|
+
const src = join( srcDir, file );
|
|
12
|
+
const dest = join( destDir, file );
|
|
13
|
+
mkdirSync( dirname( dest ), { recursive: true } );
|
|
14
|
+
copyFileSync( src, dest );
|
|
15
|
+
}
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outputai/core",
|
|
3
|
-
"version": "0.1.12-next.
|
|
3
|
+
"version": "0.1.12-next.76bcede.0",
|
|
4
4
|
"description": "The core module of the output framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"bin": {
|
|
29
29
|
"output-worker": "./bin/worker.sh",
|
|
30
30
|
"outputai": "./bin/worker.sh",
|
|
31
|
-
"output-healthcheck": "./bin/healthcheck.mjs"
|
|
31
|
+
"output-healthcheck": "./bin/healthcheck.mjs",
|
|
32
|
+
"output-copy-assets": "./bin/copy_assets.js"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@aws-sdk/client-s3": "3.1018.0",
|