UNPKG

@tygr/core

Version:

Combine redux capable node modules into angular projects with ease.

13 lines (12 loc) 466 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const fs = require("fs"); const arg = process.argv[2]; const packageConfigPath = path.join(process.cwd(), arg); const configName = arg.split('/').slice(-1)[0]; const localConfigPath = path.join(process.cwd(), '../../../configs', configName); if (fs.existsSync(localConfigPath)) { fs.copyFileSync(localConfigPath, packageConfigPath); }