Skip to content

Commit 39182b0

Browse files
committed
fix: broken type exports
Fixes #264
1 parent e1f6618 commit 39182b0

File tree

7 files changed

+289
-4
lines changed

7 files changed

+289
-4
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"docs:serve": "npm -C docs run serve"
2323
},
2424
"devDependencies": {
25+
"@arethetypeswrong/cli": "0.17.4",
2526
"@antfu/eslint-config": "^4.4.0",
2627
"bumpp": "^10.0.3",
2728
"eslint": "^9.21.0",

packages/core/.attw.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignoreRules": ["cjs-resolves-to-esm"]
3+
}

packages/core/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"sideEffects": false,
2424
"exports": {
2525
".": {
26-
"types": "./dist/index.d.ts",
2726
"import": "./dist/index.mjs",
2827
"require": "./dist/index.cjs"
2928
}
@@ -37,7 +36,8 @@
3736
],
3837
"scripts": {
3938
"build": "unbuild",
40-
"stub": "unbuild --stub"
39+
"stub": "unbuild --stub",
40+
"test:attw": "attw --pack"
4141
},
4242
"peerDependenciesMeta": {
4343
"puppeteer": {

packages/unlighthouse/.attw.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignoreRules": ["cjs-resolves-to-esm"]
3+
}

packages/unlighthouse/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,18 @@
4242
"files": [
4343
"types.d.ts",
4444
"types.d.mts",
45+
"config.d.ts",
46+
"config.cjs",
47+
"config.js",
4548
"dist"
4649
],
4750
"engines": {
4851
"node": ">=18"
4952
},
5053
"scripts": {
5154
"build": "unbuild",
52-
"stub": "unbuild --stub"
55+
"stub": "unbuild --stub",
56+
"test:attw": "attw --pack"
5357
},
5458
"peerDependenciesMeta": {
5559
"puppeteer": {

packages/unlighthouse/types.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { DefineUnlighthouseConfig } from 'unlighthouse/config'
1+
import type { DefineUnlighthouseConfig } from '@unlighthouse/config'
22

33
export * from './dist/index'
44

0 commit comments

Comments
 (0)