diff --git a/api/package.json b/api/package.json index 55bf1738..0ef07492 100644 --- a/api/package.json +++ b/api/package.json @@ -9,9 +9,9 @@ "preinstall": "node merge-extensions-deps.js", "postinstall": "patch-package", "build:clean": "rm -rf src/.hexabot", - "build:channels": "mkdir -p src/.hexabot/channels && cp -R node_modules/hexabot-channel-* src/.hexabot/channels/", - "build:helpers": "mkdir -p src/.hexabot/helpers && cp -R node_modules/hexabot-helper-* src/.hexabot/helpers/", - "build:plugins": "mkdir -p src/.hexabot/plugins && cp -R node_modules/hexabot-plugin-* src/.hexabot/plugins/", + "build:channels": "mkdir -p src/.hexabot/channels && find node_modules/ -name 'hexabot-channel-*' -exec cp -R {} src/.hexabot/channels/ \\;", + "build:helpers": "mkdir -p src/.hexabot/helpers && find node_modules/ -name 'hexabot-helper-*' -exec cp -R {} src/.hexabot/helpers/ \\;", + "build:plugins": "mkdir -p src/.hexabot/plugins && find node_modules/ -name 'hexabot-plugin-*' -exec cp -R {} src/.hexabot/plugins/ \\;", "build:extensions": "npm run build:channels && npm run build:helpers && npm run build:plugins", "build:prepare": "npm run build:clean && npm run build:extensions", "build": "npm run build:prepare && nest build",