@lingui/conf 5.3.1 → 5.3.3

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/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const chalk = require('chalk');
3
+ const pico = require('picocolors');
4
4
  const jestValidate = require('jest-validate');
5
5
  const path = require('path');
6
6
  const fs = require('fs');
@@ -8,7 +8,7 @@ const cosmiconfig = require('cosmiconfig');
8
8
 
9
9
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
10
10
 
11
- const chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
11
+ const pico__default = /*#__PURE__*/_interopDefaultCompat(pico);
12
12
  const path__default = /*#__PURE__*/_interopDefaultCompat(path);
13
13
  const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
14
14
 
@@ -361,9 +361,9 @@ function validateLocales(config) {
361
361
  if (!Array.isArray(config.locales) || !config.locales.length) {
362
362
  console.error("No locales defined!\n");
363
363
  console.error(
364
- `Add ${chalk__default.yellow(
364
+ `Add ${pico__default.yellow(
365
365
  "'locales'"
366
- )} to your configuration. See ${chalk__default.underline(
366
+ )} to your configuration. See ${pico__default.underline(
367
367
  "https://lingui.dev/ref/conf#locales"
368
368
  )}`
369
369
  );
@@ -418,9 +418,9 @@ function getConfig({
418
418
  if (!result) {
419
419
  console.error("Lingui was unable to find a config!\n");
420
420
  console.error(
421
- `Create ${chalk__default.bold(
421
+ `Create ${pico__default.bold(
422
422
  "'lingui.config.js'"
423
- )} file with LinguiJS configuration in root of your project (next to package.json). See ${chalk__default.underline(
423
+ )} file with LinguiJS configuration in root of your project (next to package.json). See ${pico__default.underline(
424
424
  "https://lingui.dev/ref/conf"
425
425
  )}`
426
426
  );
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import chalk from 'chalk';
1
+ import pico from 'picocolors';
2
2
  import { validate, multipleValidOptions } from 'jest-validate';
3
3
  import path from 'path';
4
4
  import fs from 'fs';
@@ -353,9 +353,9 @@ function validateLocales(config) {
353
353
  if (!Array.isArray(config.locales) || !config.locales.length) {
354
354
  console.error("No locales defined!\n");
355
355
  console.error(
356
- `Add ${chalk.yellow(
356
+ `Add ${pico.yellow(
357
357
  "'locales'"
358
- )} to your configuration. See ${chalk.underline(
358
+ )} to your configuration. See ${pico.underline(
359
359
  "https://lingui.dev/ref/conf#locales"
360
360
  )}`
361
361
  );
@@ -410,9 +410,9 @@ function getConfig({
410
410
  if (!result) {
411
411
  console.error("Lingui was unable to find a config!\n");
412
412
  console.error(
413
- `Create ${chalk.bold(
413
+ `Create ${pico.bold(
414
414
  "'lingui.config.js'"
415
- )} file with LinguiJS configuration in root of your project (next to package.json). See ${chalk.underline(
415
+ )} file with LinguiJS configuration in root of your project (next to package.json). See ${pico.underline(
416
416
  "https://lingui.dev/ref/conf"
417
417
  )}`
418
418
  );
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "@lingui/conf",
3
- "version": "5.3.1",
3
+ "version": "5.3.3",
4
4
  "sideEffects": false,
5
5
  "description": "Get lingui configuration from package.json",
6
6
  "keywords": [
7
7
  "lingui",
8
8
  "config"
9
9
  ],
10
- "repository": "lingui/js-lingui",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/lingui/js-lingui.git",
13
+ "directory": "packages/conf"
14
+ },
11
15
  "bugs": "https://github.com/lingui/js-lingui/issues",
12
16
  "license": "MIT",
13
17
  "author": {
@@ -26,10 +30,10 @@
26
30
  },
27
31
  "dependencies": {
28
32
  "@babel/runtime": "^7.20.13",
29
- "chalk": "^4.1.0",
30
33
  "cosmiconfig": "^8.0.0",
31
34
  "jest-validate": "^29.4.3",
32
- "jiti": "^1.17.1"
35
+ "jiti": "^1.17.1",
36
+ "picocolors": "^1.1.1"
33
37
  },
34
38
  "files": [
35
39
  "LICENSE",
@@ -38,8 +42,7 @@
38
42
  ],
39
43
  "devDependencies": {
40
44
  "@lingui/jest-mocks": "*",
41
- "tsd": "^0.26.1",
42
45
  "unbuild": "^2.0.0"
43
46
  },
44
- "gitHead": "f2cccd1211178f34aa47f0548a0c5d8caff93f59"
47
+ "gitHead": "f8dc4af3d9110f53613bb1b2fb303d6751e7a7b1"
45
48
  }