Skip to content
Permalink
Browse files

fix(design-tokens): resolve path correctly

  • Loading branch information...
TheSisb committed Aug 15, 2019
1 parent 0d996f6 commit 6f891117812acf8382b2fb81f51fc746caf0147c
@@ -1,4 +1,5 @@
import * as theo from 'theo';
import {resolve} from 'path';
import {dTSTokenFormat} from '../d.ts';

theo.registerFormat('d.ts', dTSTokenFormat);
@@ -9,7 +10,7 @@ describe('dTSFormatter', () => {
.convert({
transform: {
type: 'web',
file: './packages/paste-design-tokens/formatters/__fixtures__/index.yml',
file: resolve(__dirname, '../__fixtures__/index.yml'),
},
format: {
// @ts-ignore Theo isn't typed for custom format types
@@ -1,4 +1,5 @@
import * as theo from 'theo';
import {resolve} from 'path';
import {es6TokenFormat} from '../es6';

theo.registerFormat('es6.js', es6TokenFormat);
@@ -9,7 +10,7 @@ describe('es6Formatter', () => {
.convert({
transform: {
type: 'web',
file: './packages/paste-design-tokens/formatters/__fixtures__/index.yml',
file: resolve(__dirname, '../__fixtures__/index.yml'),
},
format: {
// @ts-ignore Theo isn't typed for custom format types
@@ -1,4 +1,5 @@
import * as theo from 'theo';
import {resolve} from 'path';
import {sketchpaletteTokenFormat} from '../sketchpalette';

theo.registerFormat('sketchpalette', sketchpaletteTokenFormat);
@@ -9,7 +10,7 @@ describe('sketchPaletteTokenFormatter', () => {
.convert({
transform: {
type: 'web',
file: './packages/paste-design-tokens/formatters/__fixtures__/colors.yml',
file: resolve(__dirname, '../__fixtures__/colors.yml'),
},
format: {
// @ts-ignore Theo isn't typed for custom format types

1 comment on commit 6f89111

@now

This comment has been minimized.

Please sign in to comment.
You can’t perform that action at this time.