@madgex/design-system 10.0.0 → 10.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- [{"name":"asterisk"},{"name":"calendar"},{"name":"check"},{"name":"chevron-down"},{"name":"chevron-left"},{"name":"chevron-right"},{"name":"chevron-up"},{"name":"close"},{"name":"cross"},{"name":"doc-pdf"},{"name":"doc"},{"name":"email"},{"name":"external"},{"name":"flag"},{"name":"information"},{"name":"job"},{"name":"list-bullets"},{"name":"list-numbers"},{"name":"location-pin"},{"name":"menu"},{"name":"minus"},{"name":"plus-small"},{"name":"plus"},{"name":"question-mark"},{"name":"redo"},{"name":"search"},{"name":"share"},{"name":"social-facebook"},{"name":"social-linkedin"},{"name":"social-pinterest"},{"name":"social-reddit"},{"name":"social-twitter"},{"name":"spinner"},{"name":"star-fill"},{"name":"star-outline"},{"name":"text-italic"},{"name":"text-link"},{"name":"text-strike-through"},{"name":"text-bold"},{"name":"text-underline"},{"name":"triangle-down"},{"name":"triangle-right"},{"name":"undo"},{"name":"triangle-up"},{"name":"upload"},{"name":"user"}]
1
+ [{"name":"asterisk"},{"name":"calendar"},{"name":"chevron-down"},{"name":"check"},{"name":"chevron-left"},{"name":"chevron-right"},{"name":"chevron-up"},{"name":"close"},{"name":"cross"},{"name":"doc-pdf"},{"name":"doc"},{"name":"email"},{"name":"external"},{"name":"flag"},{"name":"information"},{"name":"job"},{"name":"list-bullets"},{"name":"list-numbers"},{"name":"location-pin"},{"name":"menu"},{"name":"minus"},{"name":"plus-small"},{"name":"plus"},{"name":"question-mark"},{"name":"redo"},{"name":"search"},{"name":"share"},{"name":"social-facebook"},{"name":"social-linkedin"},{"name":"social-pinterest"},{"name":"social-reddit"},{"name":"social-twitter"},{"name":"spinner"},{"name":"star-fill"},{"name":"star-outline"},{"name":"text-bold"},{"name":"text-italic"},{"name":"text-link"},{"name":"text-underline"},{"name":"text-strike-through"},{"name":"triangle-down"},{"name":"triangle-right"},{"name":"triangle-up"},{"name":"undo"},{"name":"upload"},{"name":"user"}]
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@madgex/design-system",
3
3
  "author": "Madgex",
4
4
  "license": "UNLICENSED",
5
- "version": "10.0.0",
5
+ "version": "10.0.2",
6
6
  "main": "dist/js/index.js",
7
7
  "exports": {
8
8
  ".": "./dist/js/index.js",
@@ -96,5 +96,5 @@
96
96
  "engines": {
97
97
  "node": ">=22"
98
98
  },
99
- "gitHead": "ae7f0dd0419354b9ae54ca99e2207eeb65760984"
99
+ "gitHead": "746cfe45bda7323e93d0d9a4b9c121ce614088b9"
100
100
  }
@@ -13,7 +13,8 @@ const baseConfig = Object.freeze({
13
13
  verbosity: 'verbose',
14
14
  },
15
15
  // This include path needs to be in posix because combineJSON util inside style dictionary only accepts that
16
- include: [path.posix.resolve(__dirname, '../src/tokens/*.json')],
16
+ // cant use `path.posix.resolve` as it does not put `C:\` at the begining of the path
17
+ include: [path.resolve(__dirname, '../src/tokens/*.json').split(path.sep).join(path.posix.sep)],
17
18
  hooks: {
18
19
  transforms: {
19
20
  /**
@@ -197,11 +198,11 @@ async function createStyleDictionary(incomingConfig = {}) {
197
198
  }
198
199
 
199
200
  const cleanTempFiles = async () => {
200
- for (const sourceFilePath of sourceFilePaths) {
201
+ for (const tmpFilePath of transformedSource) {
201
202
  try {
202
- await fs.unlink(sourceFilePath);
203
- } catch (error) {
204
- console.warn('couldnt clean temp file ', sourceFilePath);
203
+ await fs.unlink(tmpFilePath);
204
+ } catch (err) {
205
+ console.warn('couldnt clean temp file ', tmpFilePath, err);
205
206
  }
206
207
  }
207
208
  };