@digest/scripts 3.5.0 → 3.6.0

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.
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- const path_1 = __importDefault(require("path"));
29
+ const node_path_1 = __importDefault(require("node:path"));
30
30
  const find_up_1 = __importDefault(require("find-up"));
31
31
  const package_1 = __importDefault(require("../package"));
32
32
  const production_1 = __importDefault(require("../production"));
@@ -60,7 +60,7 @@ const config = settings_1.keys.reduce((prev, key) => {
60
60
  switch (key) {
61
61
  case 'cache': {
62
62
  prev[key] = resolveSetting ?
63
- path_1.default.join(cwd, resolveSetting) :
63
+ node_path_1.default.join(cwd, resolveSetting) :
64
64
  resolveSetting;
65
65
  break;
66
66
  }
@@ -70,7 +70,7 @@ const config = settings_1.keys.reduce((prev, key) => {
70
70
  }
71
71
  case 'reports': {
72
72
  prev[key] = resolveSetting === 'reports' ?
73
- path_1.default.join(cwd, 'reports') :
73
+ node_path_1.default.join(cwd, 'reports') :
74
74
  resolveSetting;
75
75
  break;
76
76
  }
@@ -83,16 +83,16 @@ const config = settings_1.keys.reduce((prev, key) => {
83
83
  digestName: DIGEST_NAME
84
84
  });
85
85
  config.cache = config.cache ?
86
- path_1.default.join(config.cache, config.library ?
86
+ node_path_1.default.join(config.cache, config.library ?
87
87
  'library' :
88
88
  (production_1.default ?
89
89
  'production' :
90
90
  'development')) :
91
91
  config.cache;
92
92
  config.staticPath = config.staticPath === 'public' ?
93
- path_1.default.join(cwd, config.library ?
93
+ node_path_1.default.join(cwd, config.library ?
94
94
  'lib' :
95
95
  'public') :
96
96
  config.staticPath;
97
- config.context = path_1.default.join(process.cwd(), config.sourcePath);
97
+ config.context = node_path_1.default.join(process.cwd(), config.sourcePath);
98
98
  exports.default = config;
@@ -67,6 +67,7 @@ declare type completeDigest = {
67
67
  pwa: boolean;
68
68
  react: boolean;
69
69
  reactNative: boolean;
70
+ reactNativeWeb: boolean;
70
71
  reports: string | false;
71
72
  seleniumChromeDriver: string;
72
73
  seleniumDriver: string;
@@ -90,6 +91,7 @@ declare type completeDigest = {
90
91
  webpackGraphQL: boolean;
91
92
  webpackPostCSS: boolean;
92
93
  webpackReact: boolean;
94
+ webpackReactNative: boolean;
93
95
  webpackStyleLint: boolean;
94
96
  webpackTypeScript: boolean;
95
97
  webpackWorkbox: boolean;
@@ -137,6 +139,7 @@ declare type digest = Omit<Partial<completeDigest>, 'context'> & {
137
139
  pwa?: true;
138
140
  react?: false;
139
141
  reactNative?: false;
142
+ reactNativeWeb?: true;
140
143
  reports?: string | false;
141
144
  sourceMaps?: false;
142
145
  stylelint?: string | false;
@@ -149,6 +152,7 @@ declare type digest = Omit<Partial<completeDigest>, 'context'> & {
149
152
  webpackGraphQL?: false;
150
153
  webpackPostCSS?: false;
151
154
  webpackReact?: false;
155
+ webpackReactNative?: false;
152
156
  webpackStyleLint?: false;
153
157
  webpackTypeScript?: false;
154
158
  webpackWorkbox?: false;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.keys = void 0;
7
- const path_1 = __importDefault(require("path"));
7
+ const node_path_1 = __importDefault(require("node:path"));
8
8
  const production_1 = __importDefault(require("../production"));
9
9
  const settings = {
10
10
  angular: {
@@ -108,7 +108,7 @@ const settings = {
108
108
  type: 'string'
109
109
  },
110
110
  cache: {
111
- defaults: path_1.default.join('node_modules', '.cache'),
111
+ defaults: node_path_1.default.join('node_modules', '.cache'),
112
112
  env: 'DIGEST_CACHE',
113
113
  ignore: true,
114
114
  packageName: false,
@@ -214,6 +214,13 @@ const settings = {
214
214
  resolve: false,
215
215
  type: 'true'
216
216
  },
217
+ eslintReactNative: {
218
+ defaults: true,
219
+ env: 'DIGEST_ESLINT_REACT_NATIVE',
220
+ packageName: '@digest/eslint-config-react-native',
221
+ resolve: false,
222
+ type: 'true'
223
+ },
217
224
  eslintTypeScript: {
218
225
  defaults: true,
219
226
  env: 'DIGEST_ESLINT_TYPESCRIPT',
@@ -387,6 +394,13 @@ const settings = {
387
394
  resolve: false,
388
395
  type: 'true'
389
396
  },
397
+ reactNativeWeb: {
398
+ defaults: false,
399
+ env: 'DIGEST_REACT_NATIVE_WEB',
400
+ packageName: false,
401
+ resolve: false,
402
+ type: 'false'
403
+ },
390
404
  reports: {
391
405
  defaults: 'reports',
392
406
  env: 'DIGEST_REPORTS',
@@ -549,6 +563,13 @@ const settings = {
549
563
  resolve: false,
550
564
  type: 'true'
551
565
  },
566
+ webpackReactNative: {
567
+ defaults: true,
568
+ env: 'DIGEST_WEBPACK_REACT_NATIVE',
569
+ packageName: '@digest/webpack-react-native',
570
+ resolve: false,
571
+ type: 'true'
572
+ },
552
573
  webpackStyleLint: {
553
574
  defaults: true,
554
575
  env: 'DIGEST_WEBPACK_STYLELINT',
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/scripts",
3
3
  "title": "Digest Scripts",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "3.5.0",
5
+ "version": "3.6.0",
6
6
  "description": "Helper scripts for various digests",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -40,5 +40,5 @@
40
40
  "digest",
41
41
  "scripts"
42
42
  ],
43
- "gitHead": "578118d8dbf2ac96e0ad93dda474934679e6563e"
43
+ "gitHead": "6dbabfc3844f33f4b2864fd4273a2b630504830f"
44
44
  }