Skip to content

Commit 9c3b2c8

Browse files
Move to type: module (#1058)
* update to type module to see what breaks the build in sdv4 * rm build:config
1 parent 277343a commit 9c3b2c8

File tree

179 files changed

+1815
-1599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+1815
-1599
lines changed

.changeset/breezy-ghosts-yell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/primitives': major
3+
---
4+
5+
turn into esm module

buildConfig.tsconfig.jsonc

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/storybook/package-lock.json

Lines changed: 642 additions & 686 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/storybook.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {type Page, test, expect} from '@playwright/test'
22
// eslint-disable-next-line import/extensions, import/no-unresolved
3-
import data from '../docs/storybook/storybook-static/stories.json'
3+
import data from '../docs/storybook/storybook-static/stories.json' assert {type: 'json'}
44
// eslint-disable-next-line import/extensions, import/no-unresolved
5-
import colorData from '../dist/docs/functional/themes/light.json'
5+
import colorData from '../dist/docs/functional/themes/light.json' assert {type: 'json'}
66

77
const extractNameAndValue = Object.entries(colorData)
88
.map(([_key, details]) => ({

integration/baseline.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {PrimerStyleDictionary} from '../src/PrimerStyleDictionary'
1+
import {PrimerStyleDictionary} from '../src/PrimerStyleDictionary.js'
22
import fs from 'fs'
33

44
describe('PrimerStyleDictionary', () => {

integration/integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import {PrimerStyleDictionary} from '../src/PrimerStyleDictionary'
1+
import {PrimerStyleDictionary} from '../src/PrimerStyleDictionary.js'
22
import fs from 'fs'
33

44
describe('PrimerStyleDictionary', () => {
55
const basePath = `./integration`
6-
const buildPath = `${basePath}/build/integreation`
6+
const buildPath = `${basePath}/build/integration`
77

88
beforeAll(() => {
99
const extendedSD = PrimerStyleDictionary.extend({

0 commit comments

Comments
 (0)