mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Update build script
We now use `chdir` instead of `path.resolve` to get file-relative paths.
This commit is contained in:
parent
91573af30e
commit
1aac108356
7
build
7
build
|
|
@ -7,7 +7,8 @@ if (!require('assert').strict) {
|
|||
|
||||
var execSync = require('child_process').execSync;
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
|
||||
process.chdir(__dirname);
|
||||
|
||||
try {
|
||||
require.resolve('@babel/core');
|
||||
|
|
@ -23,8 +24,8 @@ try {
|
|||
|
||||
console.log('config.js does not exist. Creating one with default settings...');
|
||||
fs.writeFileSync(
|
||||
path.resolve(__dirname, 'config/config.js'),
|
||||
fs.readFileSync(path.resolve(__dirname, 'config/config-example.js'))
|
||||
'config/config.js',
|
||||
fs.readFileSync('config/config-example.js')
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user