Skip to content

Commit

Permalink
Add type definition for config (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis authored Nov 12, 2024
1 parent 3490175 commit e35b6c4
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 4 deletions.
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"]
}

0 comments on commit e35b6c4

Please sign in to comment.