fix: gen-icon script phantom deps

This commit is contained in:
AkaraChen 2024-10-21 09:45:52 +08:00
parent 6ffedcd8f0
commit 5f93e28d75
2 changed files with 7 additions and 6 deletions

View File

@ -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 {

View File

@ -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",