Skip to content

Commit

Permalink
read desc
Browse files Browse the repository at this point in the history
- 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'
  • Loading branch information
Owen3H committed Jun 22, 2024
1 parent 404f954 commit b77e7a9
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 2,640 deletions.
9 changes: 6 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@
"rules": {
"no-console": "off",
"no-useless-escape": "off",
"@typescript-eslint/no-unused-vars": "warn",
"no-unused-vars": "warn",
"no-unused-vars": "off",
"no-undef": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"semi": ["error", "never"],
"no-unreachable": ["error"],
"no-unexpected-multiline": ["error"],
"prefer-const": "warn"
"prefer-const": "warn",
"no-self-compare": "error"
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Owen Stubbs
Copyright (c) 2023 Owen3H

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Binary file added bun.lockb
Binary file not shown.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twittxr",
"version": "0.7.1",
"version": "0.7.2",
"description": "Extract information from Twitter using the Syndication API.",
"type": "module",
"types": "./dist/index.d.ts",
Expand All @@ -10,15 +10,15 @@
"default": "./dist/index.cjs"
},
"scripts": {
"prepublishOnly": "pnpm run ci",
"prepublishOnly": "bun run ci",
"test-dist": "node src/tests/test.js",
"test": "vitest run --config vitest.config.ts",
"coverage": "vitest run --coverage",
"clean": "npx rimraf dist",
"build": "pnpm run clean && npx rollup -c && pnpm run dts",
"clean": "rimraf dist",
"build": "bun run clean && rollup -c && bun run dts",
"dts": "tsc --declaration true --emitDeclarationOnly true --declarationMap true",
"lint": "eslint .",
"ci": "pnpm run lint && pnpm run test && pnpm run build"
"ci": "bun run lint && bun run test && bun run build"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit b77e7a9

Please sign in to comment.