Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type definition for config #47

Merged
merged 6 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.5.0/schema.json",
"$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "seek-oss/browserslist-config-seek" }
],
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "master"
"baseBranch": "master",
"snapshot": {
"useCalculatedVersion": true
}
}
5 changes: 5 additions & 0 deletions .changeset/pretty-files-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'browserslist-config-seek': minor
---

Add type definition for default export
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('eslint-config-seek');
module.exports = require('eslint-config-seek/base');
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const browserslistConfigSeek: string[];
export default browserslistConfigSeek;
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "3.1.0",
"description": "Shareable Browserslist config for SEEK",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "node test.js",
"format": "pnpm run '/format:.*/'",
Expand All @@ -11,11 +12,13 @@
"lint": "pnpm run '/lint:.*/'",
"lint:eslint": "eslint .",
"lint:prettier": "prettier . --list-different",
"lint:tsc": "tsc",
"release": "changeset publish",
"version": "changeset version"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],
"repository": {
"type": "git",
Expand All @@ -30,6 +33,7 @@
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@tsconfig/node20": "^20.1.4",
"browserslist": "^4.23.0",
"eslint": "^9.13.0",
"eslint-config-seek": "^14.1.0",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

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

7 changes: 7 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"noEmit": true
},
"files": ["index.d.ts"]
}