-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): added missing semantic-release configuration file and typ…
…ings file
- Loading branch information
1 parent
3fdff33
commit bd3f43a
Showing
5 changed files
with
22 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export function toUnicode(domain: string, options?: { useStd3ASCII: boolean }): string; | ||
export function toAscii(domain: string, options?: { transitional: boolean, useStd3ASCII: boolean, verifyDnsLength: boolean }): string; | ||
|
||
export function convert(domains: string): { IDN: string; PC: string; } | ||
export function convert(domains: string[]): { IDN: string[]; PC: string[]; } | ||
export function convert(domains: string | string[]): { IDN: string | string[]; PC: string | string[]; }; |
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,14 @@ | ||
const cfg = require('@hexonet/semantic-release-github-npm-config'); | ||
cfg.plugins.unshift([ | ||
'@semantic-release/exec', | ||
{ | ||
prepareCmd: 'npm run build && npx lint-staged', | ||
}, | ||
]); | ||
cfg.plugins = cfg.plugins.map((plugin) => { | ||
if (plugin[0] === '@semantic-release/git') { | ||
plugin[1].assets.push('dist/index.d.ts', 'dist/index.bundle.js'); | ||
} | ||
return plugin; | ||
}); | ||
module.exports = cfg; |