Skip to content

Commit

Permalink
Update build file names
Browse files Browse the repository at this point in the history
  • Loading branch information
jaalah committed Dec 29, 2023
1 parent 314c646 commit 4e42f8e
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
20 changes: 10 additions & 10 deletions config/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ export function getStyleDictionaryConfig(
files: [
{
destination: 'tokens.es6.js',
format: 'javascript/es6',
filter: {}
filter: {},
format: 'javascript/es6'
},
{
destination: 'theme.es6.js',
format: 'javascript/nested',
filter: {}
destination: 'tokens.d.ts',
format: 'typescript/es6-declarations'
},
{
destination: 'theme.d.ts',
format: 'typescript/theme-types',
filter: {}
destination: 'nested.es6.js',
filter: {},
format: 'javascript/nested'
},
{
format: 'typescript/es6-declarations',
destination: 'tokens.d.ts'
destination: 'nested.d.ts',
filter: {},
format: 'typescript/theme-types'
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions config/dark/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as Tokens from '../../dist/dark/tokens.es6.js';
import * as TokensTheme from '../../dist/dark/theme.es6.js';
import * as TokensTheme from '../../dist/dark/nested.es6.js';
import type {
AliasTypes,
ComponentTypes,
ElevationTypes,
FontTypes,
GlobalTypes
} from '../../dist/dark/theme.js';
} from '../../dist/dark/nested.d.ts';

const {
Color,
Expand Down
4 changes: 2 additions & 2 deletions config/densedDark/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as Tokens from '../../dist/densedDark/tokens.es6.js';
import * as TokensTheme from '../../dist/densedDark/theme.es6.js';
import * as TokensTheme from '../../dist/densedDark/nested.es6.js';
import type {
AliasTypes,
ComponentTypes,
ElevationTypes,
FontTypes,
GlobalTypes
} from '../../dist/densedDark/theme.js';
} from '../../dist/densedDark/nested.d.ts';

const {
Color,
Expand Down
4 changes: 2 additions & 2 deletions config/densedLight/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as Tokens from '../../dist/densedLight/tokens.es6.js';
import * as TokensTheme from '../../dist/densedLight/theme.es6.js';
import * as TokensTheme from '../../dist/densedLight/nested.es6.js';
import type {
AliasTypes,
ComponentTypes,
ElevationTypes,
FontTypes,
GlobalTypes
} from '../../dist/densedLight/theme.js';
} from '../../dist/densedLight/nested.d.ts';

const {
Color,
Expand Down
4 changes: 2 additions & 2 deletions config/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as Tokens from '../dist/tokens.es6.js';
import * as TokensTheme from '../dist/theme.es6.js';
import * as TokensTheme from '../dist/nested.es6.js';
import type {
AliasTypes,
ComponentTypes,
ElevationTypes,
FontTypes,
GlobalTypes
} from '../dist/theme.js';
} from '../dist/nested.d.ts';

const {
Color,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"target": "esnext",
"esModuleInterop": true,
"allowJs": true,
"checkJs": true,
"moduleResolution": "node"
},
"exclude": ["config", "dist", "node_modules"]
Expand Down
3 changes: 2 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default defineConfig({
entry: [
...['config/index.ts'],
...['config/dark/index.ts'],
...['config/highContast/index.ts']
...['config/densedDark/index.ts'],
...['config/densedLight/index.ts'],
],
format: ['esm'],
minify: 'terser',
Expand Down

0 comments on commit 4e42f8e

Please sign in to comment.