UNPKG

281 BJavaScriptView Raw
1#! /usr/bin/env node
2const fs = require('fs')
3const path = require('path')
4
5const assetsPath = path.join(path.dirname(require.resolve('ruo-ui')), 'assets')
6
7try {
8 fs.symlinkSync(assetsPath, './resources/ruo-ui')
9} catch (err) {
10 if (err.code !== 'EEXIST') {
11 throw err
12 }
13}