Skip to content

Commit

Permalink
prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvernes committed Jul 4, 2023
1 parent 940ae98 commit 35f3d56
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
7 changes: 7 additions & 0 deletions packages/eds-tokens/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.9.2] - 2023-07-04

### Changed

- 📦️ Use `.mjs` file extension for es-modules in the build output, added `exports` field in package.json by @oddvernes in https://github.com/equinor/design-system/pull/2866
- ⬆️ Updated `rollup` to v3.x by @oddvernes in https://github.com/equinor/design-system/pull/2908

## [0.9.1] - 2023-04-25

### Added
Expand Down
18 changes: 14 additions & 4 deletions packages/eds-tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
{
"name": "@equinor/eds-tokens",
"version": "0.9.1",
"version": "0.9.2-dev-20230704",
"description": "Design tokens for the Equinor Design System",
"main": "dist/tokens.cjs.js",
"module": "dist/esm/index.mjs",
"types": "dist/types/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/tokens.cjs",
"default": "./dist/tokens.cjs"
},
"./tokens.css": "./tokens.css",
"./elements.css": "./elements.css"
},
"types": "./dist/types/index.d.ts",
"main": "./dist/tokens.cjs",
"license": "MIT",
"author": {
"name": "EDS Core Team",
Expand Down
3 changes: 1 addition & 2 deletions packages/eds-tokens/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import { babel } from '@rollup/plugin-babel'
import del from 'rollup-plugin-delete'
import pkg from './package.json'

const extensions = ['.jsx', '.js', '.tsx', '.ts']

Expand Down Expand Up @@ -31,7 +30,7 @@ export default [
format: 'es',
entryFileNames: '[name].mjs',
},
{ file: pkg.main, format: 'cjs' },
{ file: './dist/tokens.cjs', format: 'cjs' },
],
},
]

0 comments on commit 35f3d56

Please sign in to comment.