Skip to content

Commit

Permalink
feat: add CommonJS core types (#102)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas C. Zakas <nicholas@humanwhocodes.com>
  • Loading branch information
fasttime and nzakas authored Aug 12, 2024
1 parent f149f85 commit 6caa5e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/core/jsr.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@eslint/core",
"version": "0.3.0",
"exports": "./src/types.ts",
"exports": "./dist/esm/types.d.ts",
"publish": {
"include": [
"src/types.ts",
"dist/esm/types.d.ts",
"README.md",
"jsr.json",
"LICENSE"
Expand Down
19 changes: 10 additions & 9 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,22 @@
"version": "0.3.0",
"description": "Runtime-agnostic core of ESLint",
"type": "module",
"types": "./src/types.ts",
"types": "./dist/esm/types.d.ts",
"exports": {
"types": {
"import": "./dist/esm/types.d.ts",
"require": "./dist/cjs/types.d.cts"
}
},
"files": [
"src"
"dist"
],
"publishConfig": {
"access": "public"
},
"directories": {
"test": "tests"
},
"scripts": {
"build": "tsc",
"build:cts": "node -e \"fs.cpSync('dist/esm/types.d.ts', 'dist/cjs/types.d.cts')\"",
"build": "tsc && npm run build:cts",
"test:jsr": "npx jsr@latest publish --dry-run"
},
"repository": {
Expand All @@ -32,9 +36,6 @@
},
"homepage": "https://github.com/eslint/rewrite#readme",
"devDependencies": {
"@types/eslint": "^9.6.0",
"eslint": "^9.0.0",
"mocha": "^10.4.0",
"typescript": "^5.4.5"
},
"engines": {
Expand Down

0 comments on commit 6caa5e1

Please sign in to comment.