Skip to content

Commit b77e7a9

Browse files
committed
read desc
- some qol (type fixes, eslint & testing) - move from PNPM to Bun - move util folder out of classes directory - changed Tweet `link` domain from 'twitter.com' to 'x.com'
1 parent 404f954 commit b77e7a9

13 files changed

+51
-2640
lines changed

.eslintrc.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@
1212
"rules": {
1313
"no-console": "off",
1414
"no-useless-escape": "off",
15-
"@typescript-eslint/no-unused-vars": "warn",
16-
"no-unused-vars": "warn",
15+
"no-unused-vars": "off",
1716
"no-undef": "warn",
17+
"@typescript-eslint/no-unused-vars": "warn",
18+
"@typescript-eslint/consistent-type-imports": "warn",
1819
"@typescript-eslint/no-var-requires": "off",
1920
"@typescript-eslint/ban-ts-comment": "off",
21+
"@typescript-eslint/no-explicit-any": "off",
2022
"semi": ["error", "never"],
2123
"no-unreachable": ["error"],
2224
"no-unexpected-multiline": ["error"],
23-
"prefer-const": "warn"
25+
"prefer-const": "warn",
26+
"no-self-compare": "error"
2427
}
2528
}

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Owen Stubbs
3+
Copyright (c) 2023 Owen3H
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

bun.lockb

137 KB
Binary file not shown.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twittxr",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "Extract information from Twitter using the Syndication API.",
55
"type": "module",
66
"types": "./dist/index.d.ts",
@@ -10,15 +10,15 @@
1010
"default": "./dist/index.cjs"
1111
},
1212
"scripts": {
13-
"prepublishOnly": "pnpm run ci",
13+
"prepublishOnly": "bun run ci",
1414
"test-dist": "node src/tests/test.js",
1515
"test": "vitest run --config vitest.config.ts",
1616
"coverage": "vitest run --coverage",
17-
"clean": "npx rimraf dist",
18-
"build": "pnpm run clean && npx rollup -c && pnpm run dts",
17+
"clean": "rimraf dist",
18+
"build": "bun run clean && rollup -c && bun run dts",
1919
"dts": "tsc --declaration true --emitDeclarationOnly true --declarationMap true",
2020
"lint": "eslint .",
21-
"ci": "pnpm run lint && pnpm run test && pnpm run build"
21+
"ci": "bun run lint && bun run test && bun run build"
2222
},
2323
"repository": {
2424
"type": "git",

0 commit comments

Comments
 (0)