This repository was archived by the owner on Apr 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "path" : {
3+ "modules" : " ./" ,
4+ "entry" : {
5+ "script" : " ./src/module/Main.ts" ,
6+ "sass" : " ./src/css/bundle.scss"
7+ },
8+ "assets" : [
9+ [" module.json" , " ./" ],
10+ [" LICENSE" , " ./" ],
11+ [" src/templates/**/*" , " ./templates" ],
12+ [" FVTT-Common/src/templates/**/*" , " ./templates" ],
13+ [" src/packs/**/*" , " ./packs" ]
14+ ]
15+ },
16+ "dist" : {
17+ "name" : " pf2e-toolbox" ,
18+ "bundle" : " bundle.js"
19+ }
20+ }
Original file line number Diff line number Diff line change 1616
1717'use strict' ;
1818
19- import { rejects } from 'assert' ;
20-
2119const BASE_BUILD_ARGUMENTS = {
2220 sourceType : 'module' ,
2321 debug : true ,
2422} ;
2523
26- const resolveRequires = ( ) => { } ;
27-
2824const loadFoundryConfig = async ( fs ) => {
29- const config = JSON . parse ( fs . readFileSync ( './foundryconfig.json' ) ) ;
25+ let configPath = './foundryconfig.json' ;
26+ if ( ! fs . existsSync ( configPath ) ) {
27+ configPath = './foundryconfig.default.json' ;
28+ }
29+
30+ const config = JSON . parse ( fs . readFileSync ( configPath ) ) ;
3031 if ( ! fs . existsSync ( config . path . modules ) ) {
3132 throw new Error ( `Path ${ config . path . modules } does not exist. Did you set your config?` ) ;
3233 }
You can’t perform that action at this time.
0 commit comments