查找:在Windows中运行“ npm run common-rebuild”时缺少“ -exec”的参数

时间:2019-11-20 11:34:02

标签: reactjs windows

我发现:我从Linux转移到窗口板形式的React项目中缺少`-exec'的参数。

    "build": "rm -rf dist && NODE_ENV=production npx babel src --out-dir dist --ignore **/*.stories.js,**/*.test.js,**/*.props.js,__snapshots__ && npm run move \\;",
    "move": "npm run move:translations && npm run move:icons",
    "move:translations": "find ./src/Services/Translations/locales -type f -name '*.json' -exec cp \\{\\} ./dist/Services/Translations/locales \\;",
    "move:icons": "find ./src/Components/Icon/svg -type f -name '*.svg' -exec cp \\{\\} ./dist/Components/Icon/svg \\;"

0 个答案:

没有答案