File tree Expand file tree Collapse file tree 9 files changed +27
-15
lines changed
esbuild-plugin-alias-path
esbuild-plugin-node-externals Expand file tree Collapse file tree 9 files changed +27
-15
lines changed Original file line number Diff line number Diff line change 2
2
3
3
ESBuild Plugins by @LinbuduLab
4
4
5
- | Package | Version | Downloads |
6
- | -------------------------------------------------------- | :----------------------------------------------------------- | ------------------------------------------------------------ |
7
- | [ alias-path] ( packages/esbuild-plugin-alias-path ) | ![ alias-path version] ( https://img.shields.io/npm/v/esbuild-plugin-alias-path.svg?label=%20 ) | ![ npm] ( https://img.shields.io/npm/dw/esbuild-plugin-alias-path ) |
8
- | [ clean] ( packages/esbuild-plugin-clean ) | ![ clean version] ( https://img.shields.io/npm/v/esbuild-plugin-clean.svg?label=%20 ) | ![ npm] ( https://img.shields.io/npm/dw/esbuild-plugin-clean ) |
9
- | [ compress] ( packages/esbuild-plugin-compress ) | ![ compress version] ( https://img.shields.io/npm/v/esbuild-plugin-compress.svg?label=%20 ) | ![ npm] ( https://img.shields.io/npm/dw/esbuild-plugin-compress ) |
10
- | [ copy] ( packages/esbuild-plugin-copy ) | ![ copy version] ( https://img.shields.io/npm/v/esbuild-plugin-copy.svg?label=%20 ) | ![ npm] ( https://img.shields.io/npm/dw/esbuild-plugin-copy ) |
5
+ | Package | Version | Downloads |
6
+ | -------------------------------------------------------- | :-------------------------------------------------------------------------------------------------- | ------- ------------------------------------------------------------ |
7
+ | [ alias-path] ( packages/esbuild-plugin-alias-path ) | ![ alias-path version] ( https://img.shields.io/npm/v/esbuild-plugin-alias-path.svg?label=%20 ) | ![ npm] ( https://img.shields.io/npm/dw/esbuild-plugin-alias-path ) |
8
+ | [ clean] ( packages/esbuild-plugin-clean ) | ![ clean version] ( https://img.shields.io/npm/v/esbuild-plugin-clean.svg?label=%20 ) | ![ npm] ( https://img.shields.io/npm/dw/esbuild-plugin-clean ) |
9
+ | [ compress] ( packages/esbuild-plugin-compress ) | ![ compress version] ( https://img.shields.io/npm/v/esbuild-plugin-compress.svg?label=%20 ) | ![ npm] ( https://img.shields.io/npm/dw/esbuild-plugin-compress ) |
10
+ | [ copy] ( packages/esbuild-plugin-copy ) | ![ copy version] ( https://img.shields.io/npm/v/esbuild-plugin-copy.svg?label=%20 ) | ![ npm] ( https://img.shields.io/npm/dw/esbuild-plugin-copy ) |
11
11
| [ node-externals] ( packages/esbuild-plugin-node-externals ) | ![ node-externals version] ( https://img.shields.io/npm/v/esbuild-plugin-node-externals.svg?label=%20 ) | ![ npm] ( https://img.shields.io/npm/dw/esbuild-plugin-node-externals ) |
12
12
13
+ ## License
14
+
15
+ [ MIT] ( LICENSE )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " esbuild-plugin-alias-path" ,
3
- "version" : " 1.1.1 " ,
3
+ "version" : " 2.0.0 " ,
4
4
"description" : " ESBuild plugin for alias path." ,
5
5
"keywords" : [
6
6
" ESBuild" ,
Original file line number Diff line number Diff line change @@ -109,7 +109,16 @@ describe('aliasPath', () => {
109
109
it ( 'should throw when no alias path is provided' , async ( ) => {
110
110
const buildFile = tmp . fileSync ( ) ;
111
111
112
- await expect ( builder ( buildFile . name , { } ) ) . rejects . toThrow ( ) ;
112
+ try {
113
+ await builder ( buildFile . name , { } ) ;
114
+ } catch ( error ) {
115
+ expect ( JSON . stringify ( error . stack ) ) . toContain (
116
+ 'Could not resolve \\"@alias/foo\\"'
117
+ ) ;
118
+ expect ( JSON . stringify ( error . stack ) ) . toContain (
119
+ 'Could not resolve \\"@alias/bar\\"'
120
+ ) ;
121
+ }
113
122
} ) ;
114
123
115
124
it ( 'should apply alias transform' , async ( ) => {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " esbuild-plugin-clean" ,
3
- "version" : " 0.9 .0" ,
3
+ "version" : " 1.0 .0" ,
4
4
"description" : " ESBuild plugin for cleaning up assets before building." ,
5
5
"keywords" : [
6
6
" esbuild" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " esbuild-plugin-compress" ,
3
- "version" : " 0.3 .0" ,
3
+ "version" : " 1.0 .0" ,
4
4
"description" : " ESBuild plugin for output compression" ,
5
5
"keywords" : [
6
6
" esbuild" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " esbuild-plugin-copy" ,
3
- "version" : " 1.2 .0" ,
3
+ "version" : " 2.0 .0" ,
4
4
"description" : " ESBuild plugin for assets copy." ,
5
5
"keywords" : [
6
6
" esbuild" ,
46
46
"sourcemap" : false ,
47
47
"clean" : true
48
48
}
49
- }
49
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " esbuild-plugin-node-externals" ,
3
- "version" : " 0.3 .0" ,
3
+ "version" : " 1.0 .0" ,
4
4
"description" : " ESBuild plugin for node externals." ,
5
5
"keywords" : [
6
6
" ESBuild" ,
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export class ReleaseHandlers {
46
46
const [ plainVersion , betaCount ] = currentVersion . split ( '-beta.' ) ;
47
47
48
48
return isBeta
49
- ? `${ plainVersion } -beta.${ betaCount + 1 } `
49
+ ? `${ plainVersion } -beta.${ Number ( betaCount ) + 1 } `
50
50
: `${ currentVersion } -beta.0` ;
51
51
}
52
52
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export default function useReleaseProject(cli: CAC) {
71
71
const {
72
72
version : inputVersion ,
73
73
skipGit,
74
- dry : dryRun ,
74
+ dry : dryRun = false ,
75
75
publishTag : _publishTag ,
76
76
beta = false ,
77
77
} = options ;
You can’t perform that action at this time.
0 commit comments