Skip to content

Commit

Permalink
move index to root (#97)
Browse files Browse the repository at this point in the history
* move index to root

* update paths & add back into ts config

* move index to actual correc tplace

* Create many-chairs-sip.md
  • Loading branch information
mayakoneval authored May 17, 2022
1 parent 0e422f6 commit 2770795
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-chairs-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/explorer": patch
---

move index to root
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"start": "tsdx watch",
"build": "npm run build-explorer:cjs-esm",
"build-explorer:cjs-esm": "tsdx build --format cjs,esm --entry src/embeddedExplorer/index.ts --name embeddable-explorer",
"build-explorer:cjs-esm": "tsdx build --format cjs,esm --name embeddable-explorer",
"build-explorer:umd": "tsdx build --format umd --entry src/embeddedExplorer/index-umd.ts --name embeddable-explorer",
"build-sandbox:umd": "tsdx build --format umd --entry src/embeddedSandbox/index-umd.ts --name embeddable-sandbox",
"test": "tsdx test --passWithNoTests",
Expand Down
2 changes: 1 addition & 1 deletion src/embeddedExplorer/examples/react-example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import './index.css';
// we alias react & react-dom to the same version in the main package.json
import * as React from 'react';
import { createRoot } from 'react-dom/client';
import { ApolloExplorerReact } from '../../index';
import { ApolloExplorerReact } from '../../../index';
import { useState } from 'react';
import { exampleSchema } from './exampleSchema';

Expand Down
4 changes: 0 additions & 4 deletions src/embeddedExplorer/index.ts

This file was deleted.

4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { EmbeddedExplorer } from './embeddedExplorer/EmbeddedExplorer';
import { ApolloExplorerReact } from './embeddedExplorer/react';

export { EmbeddedExplorer as ApolloExplorer, ApolloExplorerReact };
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
// see https://www.typescriptlang.org/tsconfig to better understand tsconfigs
"include": ["src", "types", "tsdx.config.js"],
"include": ["src", "types", "tsdx.config.js", "src/index.ts"],
"compilerOptions": {
"module": "esnext",
"lib": ["dom", "esnext"],
Expand Down

0 comments on commit 2770795

Please sign in to comment.