Skip to content

Commit

Permalink
revert changes to entry file
Browse files Browse the repository at this point in the history
Ideally we could keep the entry filenames consistent with the package
name. Index files are blah. But there are module resolution issues w/
webpack/storybook I don't care to try and fix right now, so back to
index.ts everywhere for now.
  • Loading branch information
chaance committed Aug 10, 2022
1 parent 485ecee commit 0375c74
Show file tree
Hide file tree
Showing 72 changed files with 780 additions and 3,921 deletions.
4 changes: 2 additions & 2 deletions packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/accordion.tsx",
"types": "./src/accordion.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/accordion/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./accordion";
2 changes: 1 addition & 1 deletion packages/accordion/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/accordion.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/alert-dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/alert-dialog.tsx",
"types": "./src/alert-dialog.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/alert-dialog/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./alert-dialog";
2 changes: 1 addition & 1 deletion packages/alert-dialog/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/alert-dialog.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/alert.tsx",
"types": "./src/alert.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/alert/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./alert";
2 changes: 1 addition & 1 deletion packages/alert/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/alert.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/auto-id/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/auto-id.ts",
"types": "./src/auto-id.ts",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/auto-id/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./auto-id";
2 changes: 1 addition & 1 deletion packages/auto-id/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/auto-id.ts", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/checkbox.tsx",
"types": "./src/checkbox.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/checkbox/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/checkbox.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/combobox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/combobox.tsx",
"types": "./src/combobox.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/combobox/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./combobox";
2 changes: 1 addition & 1 deletion packages/combobox/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/combobox.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/descendants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/descendants.tsx",
"types": "./src/descendants.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/descendants/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./descendants";
2 changes: 1 addition & 1 deletion packages/descendants/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/descendants.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/dialog.tsx",
"types": "./src/dialog.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/dialog/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./dialog";
2 changes: 1 addition & 1 deletion packages/dialog/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/dialog.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/disclosure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/disclosure.tsx",
"types": "./src/disclosure.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/disclosure/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./disclosure";
2 changes: 1 addition & 1 deletion packages/disclosure/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/disclosure.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/dropdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/dropdown.tsx",
"types": "./src/dropdown.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/dropdown/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./dropdown";
2 changes: 1 addition & 1 deletion packages/dropdown/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/dropdown.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/listbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/listbox.tsx",
"types": "./src/listbox.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/listbox/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./listbox";
2 changes: 1 addition & 1 deletion packages/listbox/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/listbox.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/machine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/machine.ts",
"types": "./src/machine.ts",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/machine/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./machine";
2 changes: 1 addition & 1 deletion packages/machine/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/machine.ts", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/menu-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"react-dom": "^16.8.0 || 17.x",
"react-is": "^16.8.0 || 17.x"
},
"main": "./src/menu-button.tsx",
"types": "./src/menu-button.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/menu-button/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./menu-button";
2 changes: 1 addition & 1 deletion packages/menu-button/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/menu-button.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/popover.tsx",
"types": "./src/popover.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/popover/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./popover";
2 changes: 1 addition & 1 deletion packages/popover/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/popover.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/portal.tsx",
"types": "./src/portal.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/portal/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./portal";
2 changes: 1 addition & 1 deletion packages/portal/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/portal.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/rect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/rect.tsx",
"types": "./src/rect.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/rect/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./rect";
2 changes: 1 addition & 1 deletion packages/rect/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/rect.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/skip-nav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"react": "^16.8.0 || 17.x",
"react-dom": "^16.8.0 || 17.x"
},
"main": "./src/skip-nav.tsx",
"types": "./src/skip-nav.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/skip-nav/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./skip-nav";
2 changes: 1 addition & 1 deletion packages/skip-nav/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/skip-nav.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"react": "^16.9.0 || 17.x",
"react-dom": "^16.9.0 || 17.x"
},
"main": "./src/slider.tsx",
"types": "./src/slider.tsx",
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions packages/slider/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./slider";
2 changes: 1 addition & 1 deletion packages/slider/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getTsupConfig, getPackageInfo } from "@reach-internal/dev/tsup.js";
type TsupConfig = ReturnType<typeof defineConfig>;

let { name: packageName, version: packageVersion } = getPackageInfo(__dirname);
let cfg: TsupConfig = getTsupConfig("src/slider.tsx", {
let cfg: TsupConfig = getTsupConfig("src/index.ts", {
packageName,
packageVersion,
});
Expand Down
Loading

0 comments on commit 0375c74

Please sign in to comment.