mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
Merge pull request #17566 from supabase/fix/generate-embeddings-minimist
Fix: minimist import in generating embedding script
This commit is contained in:
4 files changed
+13
-4
No files matched your search
@@ -10,6 +10,7 @@ const main = (command: string[], options: any) => {
|
||||
}
|
||||
|
||||
// Run everything
|
||||
/* @ts-ignore - required for Next.js build */
|
||||
const argv = minimist(process.argv.slice(2))
|
||||
main(argv['_'], argv)
|
||||
|
||||
|
||||
@@ -84,8 +84,8 @@
|
||||
"react-markdown": "^8.0.3",
|
||||
"rehype-slug": "^5.1.0",
|
||||
"remark": "^14.0.2",
|
||||
"remark-gfm": "^3.0.1",
|
||||
"remark-emoji": "^3.1.2",
|
||||
"remark-gfm": "^3.0.1",
|
||||
"ui": "*",
|
||||
"unist-builder": "^3.0.1",
|
||||
"unist-util-filter": "^4.0.1",
|
||||
@@ -96,6 +96,7 @@
|
||||
"devDependencies": {
|
||||
"@aws-sdk/client-secrets-manager": "^3.410.0",
|
||||
"@types/hast": "^2.3.4",
|
||||
"@types/minimist": "^1.2.2",
|
||||
"@types/node": "^17.0.24",
|
||||
"@types/react": "17.0.39",
|
||||
"@types/unist": "^2.0.6",
|
||||
@@ -103,6 +104,7 @@
|
||||
"dotenv": "^16.0.3",
|
||||
"ejs": "^3.1.8",
|
||||
"globby": "^13.2.2",
|
||||
"jest-environment-jsdom": "^29.7.0",
|
||||
"minimist": "^1.2.8",
|
||||
"next-transpile-modules": "^9.0.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
@@ -111,7 +113,6 @@
|
||||
"ts-node": "^10.9.1",
|
||||
"tsconfig": "*",
|
||||
"tsx": "^3.12.2",
|
||||
"typescript": "^5.0.4",
|
||||
"jest-environment-jsdom": "^29.7.0"
|
||||
"typescript": "^5.0.4"
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createClient } from '@supabase/supabase-js'
|
||||
import dotenv from 'dotenv'
|
||||
import minimist from 'minimist'
|
||||
import 'openai'
|
||||
import { Configuration, OpenAIApi } from 'openai'
|
||||
import { inspect } from 'util'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import { fetchSources } from './sources'
|
||||
import * as minimist from 'minimist'
|
||||
|
||||
dotenv.config()
|
||||
|
||||
|
||||
Generated
+7
@@ -84,6 +84,7 @@
|
||||
"devDependencies": {
|
||||
"@aws-sdk/client-secrets-manager": "^3.410.0",
|
||||
"@types/hast": "^2.3.4",
|
||||
"@types/minimist": "^1.2.2",
|
||||
"@types/node": "^17.0.24",
|
||||
"@types/react": "17.0.39",
|
||||
"@types/unist": "^2.0.6",
|
||||
@@ -16152,6 +16153,12 @@
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/minimist": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz",
|
||||
"integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/ms": {
|
||||
"version": "0.7.31",
|
||||
"license": "MIT"
|
||||
|
||||
Reference in new issue
Block a user