mirror of
https://github.com/zhigang1992/viff.git
synced 2026-01-12 22:53:25 +08:00
13 lines
335 B
Bash
Executable File
13 lines
335 B
Bash
Executable File
#!/usr/bin/env coffee
|
|
|
|
spawn = require('child_process').spawn
|
|
path = require 'path'
|
|
|
|
config = require '../package.json'
|
|
version = config.version
|
|
|
|
(spawn 'npm', ['unpublish', "viff@#{version}"]).on 'close', ->
|
|
(spawn 'npm', ['publish', path.dirname __dirname ]).on 'close', ->
|
|
console.log "republishing viff@#{version} is done."
|
|
|