Skip to content

Commit

Permalink
fix(lib): Fixed the ability to import components
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswlane committed May 11, 2019
1 parent 7b7cb0c commit b3c353a
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 22 deletions.
18 changes: 18 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.circleci
.github
.storybook
coverage
src
stories
.all-contributorsrc
.babelrc
.eslintrc.js
.nvmrc
commitlint.config.js
jest.config.js
lint-staged.config.js
now.json
package-lock.json
release.config.js
renovate.json
tsconfig.json
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@
"name": "@status-board/components",
"version": "0.0.0-development",
"license": "MIT",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"publishConfig": {
"access": "public"
},
"files": [
"lib"
],
"scripts": {
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"build": "npm run build:types && npm run build:js",
"build:types": "tsc",
"build:types": "tsc --emitDeclarationOnly",
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline",
"clean": "rimraf lib coverage",
"commit": "git-cz",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Widget/IconWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { CSSProperties, ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import { withTheme } from 'emotion-theming';
import { Theme } from '@status-board/theme-manager/lib/types';

Expand Down
2 changes: 1 addition & 1 deletion src/components/WidgetCounter/CountText.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { CSSProperties, ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import { typography } from '@status-board/theme-manager';
import { Theme } from '@status-board/theme-manager/lib/types';
import { withTheme } from 'emotion-theming';
Expand Down
2 changes: 1 addition & 1 deletion src/components/WidgetCounter/PostLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { CSSProperties, ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import { withTheme } from 'emotion-theming';
import { typography } from '@status-board/theme-manager';
import { Theme } from '@status-board/theme-manager/lib/types';
Expand Down
2 changes: 1 addition & 1 deletion src/components/WidgetCounter/PreLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { CSSProperties, ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import { typography } from '@status-board/theme-manager';
import { Theme } from '@status-board/theme-manager/lib/types';
import { withTheme } from 'emotion-theming';
Expand Down
2 changes: 1 addition & 1 deletion src/components/WidgetCounter/Unit.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { CSSProperties, ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import { typography } from '@status-board/theme-manager';
import { Theme } from '@status-board/theme-manager/lib/types';
import { withTheme } from 'emotion-theming';
Expand Down
2 changes: 1 addition & 1 deletion src/components/WidgetLabel/Addon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { CSSProperties, ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import { Theme } from '@status-board/theme-manager/lib/types';
import { withTheme } from 'emotion-theming';

Expand Down
2 changes: 1 addition & 1 deletion src/components/WidgetLabel/Label.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { CSSProperties, ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import { Theme } from '@status-board/theme-manager/lib/types';
import { withTheme } from 'emotion-theming';

Expand Down
2 changes: 1 addition & 1 deletion src/components/WidgetListItem/Title.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { CSSProperties, ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import { typography } from '@status-board/theme-manager';
import { Theme } from '@status-board/theme-manager/lib/types';
import { withTheme } from 'emotion-theming';
Expand Down
33 changes: 20 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
{
"compilerOptions": {
"target": "es5",
"outDir": "lib",
"allowSyntheticDefaultImports": true,
"target": "esnext",
"module": "esnext",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"importHelpers": true,
"declaration": true,
"sourceMap": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"alwaysStrict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve"
"jsx": "react",
"esModuleInterop": true
},
"include": [
"src"
"src/**/*"
]
}

1 comment on commit b3c353a

@vercel
Copy link

@vercel vercel bot commented on b3c353a May 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.