@modernpoacher/deps 2.1.34 → 2.1.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.1.34",
3
+ "version": "2.1.36",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -23,25 +23,25 @@
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
26
- "url": "git://github.com/modernpoacher/deps"
26
+ "url": "git://github.com/modernpoacher/deps.git"
27
27
  },
28
28
  "homepage": "https://github.com/modernpoacher/deps",
29
29
  "bugs": {
30
30
  "url": "https://github.com/modernpoacher/deps/issues"
31
31
  },
32
32
  "scripts": {
33
- "deps": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps.mjs",
34
- "deps-deps": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/deps.mjs",
35
- "deps-execute": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/execute.mjs",
36
- "deps-head": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/head.mjs",
37
- "deps-install": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/install.mjs",
38
- "deps-push": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/push.mjs",
39
- "deps-wipe": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/wipe.mjs",
40
- "lint": "eslint . --ext .mjs,.cjs",
33
+ "deps": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps.mjs",
34
+ "deps-deps": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/deps.mjs",
35
+ "deps-execute": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/execute.mjs",
36
+ "deps-head": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/head.mjs",
37
+ "deps-install": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/install.mjs",
38
+ "deps-push": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/push.mjs",
39
+ "deps-wipe": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/wipe.mjs",
40
+ "lint": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning eslint . --ext .mjs,.cjs",
41
41
  "lint:fix": "npm run lint -- --fix",
42
42
  "prepare": "husky",
43
43
  "start": "npm run deps",
44
- "test": "cross-env DEBUG_COLORS=yes NODE_ENV=test mocha test --recursive --verbose --color"
44
+ "test": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=test mocha test --recursive --verbose --color"
45
45
  },
46
46
  "bin": {
47
47
  "deps": "bin/deps.mjs",
@@ -7,6 +7,7 @@ import {
7
7
 
8
8
  const {
9
9
  env: {
10
+ NODE_OPTIONS = '--disable-warning=ExperimentalWarning',
10
11
  SSH_AUTH_SOCK,
11
12
  HOME,
12
13
  PATH
@@ -21,6 +22,7 @@ export const OPTIONS = {
21
22
  FORCE_COLOR: PLATFORM === 'win32'
22
23
  ? 3
23
24
  : 2,
25
+ NODE_OPTIONS,
24
26
  SSH_AUTH_SOCK,
25
27
  HOME,
26
28
  PATH
@@ -44,12 +46,17 @@ log(`\`common/options\` (${VERSION} - ${PLATFORM}) is awake`)
44
46
  * env: {
45
47
  * DEBUG_COLORS: string,
46
48
  * FORCE_COLOR: number,
47
- * PROCESS: string
49
+ * NODE_OPTIONS: string,
50
+ * SSH_AUTH_SOCK?: string,
51
+ * HOME?: string,
52
+ * PATH?: string
48
53
  * }
49
54
  * cwd: string
50
55
  * }}
51
56
  */
52
57
  export function getOptions (cwd) {
58
+ log('getOptions')
59
+
53
60
  return {
54
61
  ...OPTIONS,
55
62
  cwd
package/babel.config.cjs DELETED
@@ -1,38 +0,0 @@
1
- const debug = require('debug')
2
-
3
- const log = debug('@modernpoacher/deps')
4
-
5
- const {
6
- env: {
7
- NODE_ENV = 'development'
8
- }
9
- } = process
10
-
11
- log('`@modernpoacher/deps` is awake')
12
-
13
- function env () {
14
- log({ NODE_ENV })
15
-
16
- return (
17
- NODE_ENV === 'production'
18
- )
19
- }
20
-
21
- module.exports = (api) => {
22
- if (api) api.cache.using(env)
23
-
24
- return {
25
- presets: [
26
- [
27
- '@babel/env',
28
- {
29
- targets: {
30
- node: 'current'
31
- },
32
- useBuiltIns: 'usage',
33
- corejs: 3
34
- }
35
- ]
36
- ]
37
- }
38
- }