Skip to content

Commit

Permalink
Move to type: module (#1058)
Browse files Browse the repository at this point in the history
* update to type module to see what breaks the build in sdv4

* rm build:config
  • Loading branch information
lukasoppermann authored Sep 19, 2024
1 parent 277343a commit 9c3b2c8
Show file tree
Hide file tree
Showing 179 changed files with 1,815 additions and 1,599 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-ghosts-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/primitives': major
---

turn into esm module
27 changes: 0 additions & 27 deletions buildConfig.tsconfig.jsonc

This file was deleted.

1,328 changes: 642 additions & 686 deletions docs/storybook/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions e2e/storybook.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {type Page, test, expect} from '@playwright/test'
// eslint-disable-next-line import/extensions, import/no-unresolved
import data from '../docs/storybook/storybook-static/stories.json'
import data from '../docs/storybook/storybook-static/stories.json' assert {type: 'json'}
// eslint-disable-next-line import/extensions, import/no-unresolved
import colorData from '../dist/docs/functional/themes/light.json'
import colorData from '../dist/docs/functional/themes/light.json' assert {type: 'json'}

const extractNameAndValue = Object.entries(colorData)
.map(([_key, details]) => ({
Expand Down
2 changes: 1 addition & 1 deletion integration/baseline.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PrimerStyleDictionary} from '../src/PrimerStyleDictionary'
import {PrimerStyleDictionary} from '../src/PrimerStyleDictionary.js'
import fs from 'fs'

describe('PrimerStyleDictionary', () => {
Expand Down
4 changes: 2 additions & 2 deletions integration/integration.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {PrimerStyleDictionary} from '../src/PrimerStyleDictionary'
import {PrimerStyleDictionary} from '../src/PrimerStyleDictionary.js'
import fs from 'fs'

describe('PrimerStyleDictionary', () => {
const basePath = `./integration`
const buildPath = `${basePath}/build/integreation`
const buildPath = `${basePath}/build/integration`

beforeAll(() => {
const extendedSD = PrimerStyleDictionary.extend({
Expand Down
Loading

0 comments on commit 9c3b2c8

Please sign in to comment.