mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix: gen-icon script phantom deps
This commit is contained in:
parent
6ffedcd8f0
commit
5f93e28d75
|
@ -1,8 +1,9 @@
|
||||||
const path = require('node:path')
|
import path from 'node:path'
|
||||||
const { open, readdir, access, mkdir, writeFile, appendFile, rm } = require('node:fs/promises')
|
import { access, appendFile, mkdir, open, readdir, rm, writeFile } from 'node:fs/promises'
|
||||||
const { parseXml } = require('@rgrove/parse-xml')
|
import { parseXml } from '@rgrove/parse-xml'
|
||||||
const camelCase = require('lodash/camelCase')
|
import { camelCase, template } from 'lodash-es'
|
||||||
const template = require('lodash/template')
|
|
||||||
|
const __dirname = path.dirname(new URL(import.meta.url).pathname)
|
||||||
|
|
||||||
const generateDir = async (currentPath) => {
|
const generateDir = async (currentPath) => {
|
||||||
try {
|
try {
|
|
@ -13,7 +13,7 @@
|
||||||
"fix": "next lint --fix",
|
"fix": "next lint --fix",
|
||||||
"eslint-fix": "eslint --fix",
|
"eslint-fix": "eslint --fix",
|
||||||
"prepare": "cd ../ && node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install ./web/.husky",
|
"prepare": "cd ../ && node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install ./web/.husky",
|
||||||
"gen-icons": "node ./app/components/base/icons/script.js",
|
"gen-icons": "node ./app/components/base/icons/script.mjs",
|
||||||
"uglify-embed": "node ./bin/uglify-embed",
|
"uglify-embed": "node ./bin/uglify-embed",
|
||||||
"check-i18n": "node ./i18n/check-i18n.js",
|
"check-i18n": "node ./i18n/check-i18n.js",
|
||||||
"auto-gen-i18n": "node ./i18n/auto-gen-i18n.js",
|
"auto-gen-i18n": "node ./i18n/auto-gen-i18n.js",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user