Skip to content

Commit

Permalink
Remove unneeded build script
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 7, 2022
1 parent 7bc88c5 commit 79d0698
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 24 deletions.
18 changes: 0 additions & 18 deletions build.js

This file was deleted.

12 changes: 11 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,23 @@
*/

import {afinn165} from 'afinn-165'
import {emoji} from './emoji.js'
import {emojiEmotion} from 'emoji-emotion'

/** @type {Record<string, number>} */
export const polarities = {}

const own = {}.hasOwnProperty

/** @type {Record<string, number>} */
const emoji = {}
let index = 0

while (++index < emojiEmotion.length) {
const info = emojiEmotion[index]
polarities[info.emoji] = info.polarity
polarities[':' + info.name + ':'] = info.polarity
}

inject(afinn165)
inject(emoji)

Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@
"types": "index.d.ts",
"files": [
"index.d.ts",
"index.js",
"emoji.js"
"index.js"
],
"dependencies": {
"afinn-165": "^2.0.0"
"afinn-165": "^2.0.0",
"emoji-emotion": "^3.0.0"
},
"devDependencies": {
"@types/node": "^18.0.0",
"c8": "^7.0.0",
"emoji-emotion": "^3.0.0",
"gemoji": "^7.0.0",
"nyc": "^15.0.0",
"prettier": "^2.0.0",
Expand All @@ -53,7 +52,6 @@
},
"scripts": {
"prepack": "npm run build && npm run format",
"generate": "node build.js",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "node --conditions development test/index.js",
Expand Down

0 comments on commit 79d0698

Please sign in to comment.