@equinor/eds-tokens
Advanced tools
Comparing version 0.0.1-alpha.6 to 0.0.1-alpha.7
@@ -8,2 +8,8 @@ # Changelog | ||
## [0.0.1-alpha.7] - 2020-01-22 | ||
### Changed | ||
- Better support for using as commonjs or esm modules in different node versions | ||
## [0.0.1-alpha.6] - 2020-01-20 | ||
@@ -10,0 +16,0 @@ |
{ | ||
"name": "@equinor/eds-tokens", | ||
"version": "0.0.1-alpha.6", | ||
"main": "dist/tokens.cjs.js", | ||
"version": "0.0.1-alpha.7", | ||
"type": "module", | ||
"main": "dist/tokens.esm.js", | ||
"module": "dist/tokens.esm.js", | ||
@@ -11,3 +12,4 @@ "browser": "dist/tokens.umd.js", | ||
"files": [ | ||
"dist/*" | ||
"dist/*", | ||
"commonjs/*" | ||
], | ||
@@ -35,6 +37,7 @@ "description": "Design tokens for the Equinor Design System", | ||
], | ||
"dependencies": { | ||
"@rollup/plugin-commonjs": "^11.0.1", | ||
"devDependencies": { | ||
"@rollup/plugin-node-resolve": "^7.0.0", | ||
"rollup": "^1.29.0" | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
@@ -38,4 +38,16 @@ # @equinor/eds-tokens | ||
React storybook example: | ||
#### Use as ESM Module | ||
Add `"type":"module" ` to your apps `package.json` | ||
```javascript | ||
import { tokens } from "@equinor/eds-tokens" | ||
``` | ||
#### Use as CommonJS Module | ||
CommonJS will have a separate package path | ||
```javascript | ||
import { tokens } from "@equinor/eds-tokens/commonjs" | ||
``` | ||
#### React storybook example | ||
```js | ||
@@ -42,0 +54,0 @@ import React from 'react' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
64893
0
7
75
0
Yes
2
- Removed@rollup/plugin-commonjs@^11.0.1
- Removedrollup@^1.29.0
- Removed@rollup/plugin-commonjs@11.1.0(transitive)
- Removed@rollup/pluginutils@3.1.0(transitive)
- Removed@types/estree@0.0.39(transitive)
- Removed@types/node@22.10.2(transitive)
- Removedacorn@7.4.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcommondir@1.0.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedestree-walker@1.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedglob@7.2.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-core-module@2.16.0(transitive)
- Removedis-reference@1.2.1(transitive)
- Removedmagic-string@0.25.9(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedresolve@1.22.9(transitive)
- Removedrollup@1.32.1(transitive)
- Removedsourcemap-codec@1.4.8(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedwrappy@1.0.2(transitive)