-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix(builder): update esbuild config
- Loading branch information
1 parent
356ffb2
commit 2e186d3
Showing
19 changed files
with
5,991 additions
and
4,608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# @backan/builder | ||
|
||
## 0.0.13 | ||
|
||
### Patch Changes | ||
|
||
- Update esbuild config | ||
|
||
## 0.0.12 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import type { | ||
BuilderErrors, | ||
BuilderParams, | ||
} from './types' | ||
|
||
export class BuildError extends Error { | ||
|
||
constructor( | ||
message: BuilderErrors, | ||
data: { | ||
platform: string | ||
arch: string | ||
opts: BuilderParams | ||
} & Record<string, unknown>, | ||
) { | ||
|
||
super( message ) | ||
this.name = this.constructor.name | ||
|
||
Object.assign( this, { | ||
data, | ||
} ) | ||
|
||
if ( Error.captureStackTrace ) Error.captureStackTrace( this, this.constructor ) | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export const logger = ( | ||
{ | ||
name, | ||
isDebug = false, | ||
}: { | ||
name: string | ||
isDebug?:boolean | ||
}, | ||
) => ( { | ||
debug : ( data: object | string ) => isDebug && console.debug( '\n🔥⬛', data ), | ||
group : ( data: object | string ) => ( { | ||
start : () => { | ||
|
||
console.log( '\n🔥⬛', data ) | ||
console.group( ) | ||
|
||
}, | ||
end : () => console.groupEnd( ), | ||
} ) , | ||
info : ( data: object | string ) => console.log( `\n🔥🟦 [${name}]`, data ), | ||
success : ( data: object | string ) => console.log( `\n🔥✅ [${name}]`, data ), | ||
warn : ( data: object | string ) => console.warn( `\n🔥🟡 [${name}]`, data ), | ||
error : ( data: object | string ) => console.error( `\n🔥❌ [${name}]`, data ), | ||
} ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES2022", | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
/** | ||
* Options. | ||
*/ | ||
"strict": true, | ||
"alwaysStrict": true, | ||
"strictPropertyInitialization": true, | ||
"noImplicitAny": true, | ||
"strictNullChecks": true, | ||
"sourceMap": true, | ||
"resolveJsonModule": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"skipLibCheck": true, | ||
"useDefineForClassFields": true, | ||
// "allowImportingTsExtensions": false, | ||
// "baseUrl": ".", | ||
/** | ||
* Typecheck JS in `.svelte` and `.js` files by default. | ||
* Disable checkJs if you'd like to use dynamic types in JS. | ||
* Note that setting allowJs false does not prevent the use | ||
* of JS in `.svelte` files. | ||
*/ | ||
"allowJs": true, | ||
"checkJs": true, | ||
"noEmit": true, | ||
"isolatedModules": true, | ||
"importHelpers": true, | ||
"removeComments": false, | ||
"allowSyntheticDefaultImports": true, | ||
"outDir": "./dist", | ||
"baseUrl": "./src" | ||
}, | ||
"include": [ | ||
"./src/", | ||
"../../package.json", | ||
"./package.json" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @backan/core | ||
|
||
## 0.0.13 | ||
|
||
## 0.0.12 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# create-backan | ||
|
||
## 0.0.13 | ||
|
||
## 0.0.12 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @backan/docs | ||
|
||
## 0.0.13 | ||
|
||
## 0.0.12 | ||
|
||
## 0.0.11 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @backan/server | ||
|
||
## 0.0.13 | ||
|
||
## 0.0.12 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.