Skip to content

Commit

Permalink
0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dejurin committed May 13, 2024
1 parent b3eebbb commit 354e753
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 23 deletions.
6 changes: 3 additions & 3 deletions dist/browser/latest.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/browser/latest.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/esnext/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export type SkinTone = '' | 'none' | 'light' | 'mediumLight' | 'medium' | 'mediu
* Visit us at: https://qit.tools
*
* πŸͺ„ Qit.tools
* @name @packageName
* @version @packageVersion
* @license @packageLicense
* @name packageName
* @version packageVersion
* @license packageLicense
* @copyright Copyright (c) 2024 Qit.tools.
* @see https://github.com/Qit-tools/skin-tone
* @see https://www.npmjs.com/package/@qit.tools/skin-tone
Expand Down
6 changes: 3 additions & 3 deletions dist/esnext/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esnext/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export type SkinTone = '' | 'none' | 'light' | 'mediumLight' | 'medium' | 'mediu
* Visit us at: https://qit.tools
*
* πŸͺ„ Qit.tools
* @name @packageName
* @version @packageVersion
* @license @packageLicense
* @name packageName
* @version packageVersion
* @license packageLicense
* @copyright Copyright (c) 2024 Qit.tools.
* @see https://github.com/Qit-tools/skin-tone
* @see https://www.npmjs.com/package/@qit.tools/skin-tone
Expand All @@ -23,7 +23,6 @@ export default function skinTone(emoji: string, tone?: SkinTone): string {
if (!tone) {
return emoji;
}

const skinTonMap = {
none: '',
light: '\u{1F3FB}',
Expand Down
67 changes: 67 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@eslint/js": "^9.2.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^20.12.11",
"@types/tape": "^5.6.4",
Expand Down
10 changes: 5 additions & 5 deletions rollup.browser.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typescript from '@rollup/plugin-typescript';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import { terser } from 'rollup-plugin-minification';
import terser from '@rollup/plugin-terser';
import replace from '@rollup/plugin-replace';
import pkg from './package.json' assert { type: 'json' };

Expand All @@ -17,14 +17,14 @@ export default {
compress: {
drop_console: true, // Remove console statements
drop_debugger: true, // Remove debugger statements
}
},
}),
replace({
preventAssignment: true,
values: {
'@packageName': pkg.name,
'@packageVersion': pkg.version,
'@packageLicense': pkg.license,
'packageName': pkg.name,
'packageVersion': pkg.version,
'packageLicense': pkg.license,
},
}),
nodeResolve(),
Expand Down
6 changes: 3 additions & 3 deletions rollup.esnext.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export default {
replace({
preventAssignment: true,
values: {
'@packageName': pkg.name,
'@packageVersion': pkg.version,
'@packageLicense': pkg.license,
'packageName': pkg.name,
'packageVersion': pkg.version,
'packageLicense': pkg.license,
},
}),
nodeResolve(),
Expand Down

0 comments on commit 354e753

Please sign in to comment.