@atlaskit/codemod-cli 0.11.2 → 0.11.4

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/codemod-cli
2
2
 
3
+ ## 0.11.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`708957d360f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/708957d360f) - Upgrade a dependency package simple-git
8
+
9
+ ## 0.11.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`b14dca751fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b14dca751fa) - Exclude the chart tokens from the list of tokens that we pass into the codemod.
14
+
3
15
  ## 0.11.2
4
16
 
5
17
  ### Patch Changes
package/dist/cjs/main.js CHANGED
@@ -387,7 +387,7 @@ function _main() {
387
387
  case 4:
388
388
  _yield$parseArgs = _context5.sent;
389
389
  packages = _yield$parseArgs.packages;
390
- _process$env$_PACKAGE = "0.11.2", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
390
+ _process$env$_PACKAGE = "0.11.4", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
391
391
  logger.log(_chalk.default.bgBlue(_chalk.default.black("\uD83D\uDCDA Atlassian-Frontend codemod library @ ".concat(_PACKAGE_VERSION_, " \uD83D\uDCDA"))));
392
392
 
393
393
  if (packages && packages.length > 0) {
@@ -16,7 +16,7 @@ var tokens = _tokensRaw.light.filter(function (t) {
16
16
  }).map(function (t) {
17
17
  return t.name.replace(/\.\[default\]/g, '');
18
18
  }).filter(function (t) {
19
- return !t.includes('UNSAFE') && !t.includes('interaction');
19
+ return !t.includes('UNSAFE') && !t.includes('interaction') && !t.includes('chart');
20
20
  });
21
21
 
22
22
  exports.tokens = tokens;
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/codemod-cli",
3
- "version": "0.11.2"
3
+ "version": "0.11.4"
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { light as rawTokens } from '@atlaskit/tokens/tokens-raw';
2
- export const tokens = rawTokens.filter(t => t.attributes.state === 'active').map(t => t.name.replace(/\.\[default\]/g, '')).filter(t => !t.includes('UNSAFE') && !t.includes('interaction'));
2
+ export const tokens = rawTokens.filter(t => t.attributes.state === 'active').map(t => t.name.replace(/\.\[default\]/g, '')).filter(t => !t.includes('UNSAFE') && !t.includes('interaction') && !t.includes('chart'));
3
3
  export const getUniqueWordsFromTokens = tokens.reduce((accum, val) => [...accum, ...val.split('.')], []).reduce((accum, val) => [...accum, ...val.split(/(?=[A-Z])/g).map(e => e.toLowerCase())], []).reduce((accum, val) => {
4
4
  if (!accum.includes(val)) {
5
5
  accum.push(val);
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/codemod-cli",
3
- "version": "0.11.2"
3
+ "version": "0.11.4"
4
4
  }
package/dist/esm/main.js CHANGED
@@ -365,7 +365,7 @@ function _main() {
365
365
  case 4:
366
366
  _yield$parseArgs = _context5.sent;
367
367
  packages = _yield$parseArgs.packages;
368
- _process$env$_PACKAGE = "0.11.2", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
368
+ _process$env$_PACKAGE = "0.11.4", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
369
369
  logger.log(chalk.bgBlue(chalk.black("\uD83D\uDCDA Atlassian-Frontend codemod library @ ".concat(_PACKAGE_VERSION_, " \uD83D\uDCDA"))));
370
370
 
371
371
  if (packages && packages.length > 0) {
@@ -5,7 +5,7 @@ export var tokens = rawTokens.filter(function (t) {
5
5
  }).map(function (t) {
6
6
  return t.name.replace(/\.\[default\]/g, '');
7
7
  }).filter(function (t) {
8
- return !t.includes('UNSAFE') && !t.includes('interaction');
8
+ return !t.includes('UNSAFE') && !t.includes('interaction') && !t.includes('chart');
9
9
  });
10
10
  export var getUniqueWordsFromTokens = tokens.reduce(function (accum, val) {
11
11
  return [].concat(_toConsumableArray(accum), _toConsumableArray(val.split('.')));
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/codemod-cli",
3
- "version": "0.11.2"
3
+ "version": "0.11.4"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/codemod-cli",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "A cli for distributing codemods for atlassian-frontend components and services",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  "postcss-less": "^6.0.0",
37
37
  "projector-spawn": "^1.0.1",
38
38
  "semver": "^7.3.0",
39
- "simple-git": "^3.15.0"
39
+ "simple-git": "^3.16.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@atlaskit/docs": "*",