Skip to content

Commit

Permalink
Build target bump to es2021 and make import more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
rumenpetrov committed Apr 22, 2024
1 parent 85f2c84 commit 7152b16
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# waft-design-system

## 0.0.4

### Patch Changes

- Build target bump to es2021 and make import more specific

## 0.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"main": "dist/waft.js",
"module": "dist/waft.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/button/button.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta } from '@storybook/blocks';
import { parts } from './index.ts';
import { componentTokensToWebTokens } from '../../design-tokens';
import { componentTokensToWebTokens } from '../../design-tokens/index.ts';

<Meta title="Web/Labs/Button/Extra" />

Expand Down
2 changes: 1 addition & 1 deletion src/components/button/button.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LitElement, unsafeCSS, css, html } from 'lit'
import { customElement, property } from 'lit/decorators.js'
import { classMap } from 'lit/directives/class-map.js';
import { getWebTokenValue } from '../../design-tokens';
import { getWebTokenValue } from '../../design-tokens/index.ts';

type Type = 'button' | 'submit' | 'reset';
type Appearance = 'accent' | 'default';
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './button';
export * from './button/index.ts';
2 changes: 1 addition & 1 deletion src/docs/component-contribution-process.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from "@storybook/blocks";
import { Meta } from '@storybook/blocks';

<Meta title="Contribution/Component" />

Expand Down
2 changes: 1 addition & 1 deletion src/docs/design-principles.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from "@storybook/blocks";
import { Meta } from '@storybook/blocks';

<Meta title="Foundations/Design principles" />

Expand Down
2 changes: 1 addition & 1 deletion src/docs/guides-styling.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from "@storybook/blocks";
import { Meta } from '@storybook/blocks';

<Meta title="Guides/Styling components" />

Expand Down
2 changes: 1 addition & 1 deletion src/docs/web-components-introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from "@storybook/blocks";
import { Meta } from '@storybook/blocks';

<Meta title="Web/Components/Introduction" />

Expand Down
2 changes: 1 addition & 1 deletion src/docs/web-css-variables.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, Source } from '@storybook/blocks';
import { renderTokens, isGlobalToken, transformTokenNameToWebTokenName } from '../design-tokens';
import { renderTokens, isGlobalToken, transformTokenNameToWebTokenName } from '../design-tokens/index.ts';

<Meta title="Web/CSS variables" />

Expand Down
2 changes: 1 addition & 1 deletion src/docs/web-get-started.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, Source } from '@storybook/blocks';
import { generateWebGlobalStyles } from '../design-tokens';
import { generateWebGlobalStyles } from '../design-tokens/index.ts';

<Meta title="Web/Get started" />

Expand Down
2 changes: 1 addition & 1 deletion src/docs/web-labs-introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from "@storybook/blocks";
import { Meta } from '@storybook/blocks';

<Meta title="Web/Labs/Introduction" />

Expand Down
9 changes: 5 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ES2021",
"experimentalDecorators": true,
"useDefineForClassFields": false,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ES2021", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

/* Bundler mode */
Expand All @@ -19,12 +19,13 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"declaration": true
"declaration": true,
"declarationMap": true
},
"include": ["src"],
/* Remove Storybook files */
"exclude": [
"../src/**/*.mdx",
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
]
}

0 comments on commit 7152b16

Please sign in to comment.