lerna-projen 0.1.325 → 0.1.327
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/.jsii +3 -3
- package/lib/index.js +2 -2
- package/package.json +31 -31
- package/node_modules/at-least-node/LICENSE +0 -6
- package/node_modules/at-least-node/README.md +0 -25
- package/node_modules/at-least-node/index.js +0 -5
- package/node_modules/at-least-node/package.json +0 -32
- package/node_modules/graceful-fs/LICENSE +0 -15
- package/node_modules/graceful-fs/README.md +0 -143
- package/node_modules/graceful-fs/clone.js +0 -23
- package/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/node_modules/graceful-fs/package.json +0 -53
- package/node_modules/graceful-fs/polyfills.js +0 -355
- package/node_modules/jsonfile/CHANGELOG.md +0 -171
- package/node_modules/jsonfile/LICENSE +0 -15
- package/node_modules/jsonfile/README.md +0 -230
- package/node_modules/jsonfile/index.js +0 -88
- package/node_modules/jsonfile/package.json +0 -40
- package/node_modules/jsonfile/utils.js +0 -14
- package/node_modules/universalify/LICENSE +0 -20
- package/node_modules/universalify/README.md +0 -76
- package/node_modules/universalify/index.js +0 -24
- package/node_modules/universalify/package.json +0 -34
package/.jsii
CHANGED
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"stability": "stable"
|
|
89
89
|
},
|
|
90
90
|
"homepage": "https://github.com/AminFazlMondo/Lerna-Projen.git",
|
|
91
|
-
"jsiiVersion": "5.
|
|
91
|
+
"jsiiVersion": "5.1.10 (build 041401a)",
|
|
92
92
|
"keywords": [
|
|
93
93
|
"lerna",
|
|
94
94
|
"monorepo",
|
|
@@ -797,6 +797,6 @@
|
|
|
797
797
|
"symbolId": "src/types:TaskCustomization"
|
|
798
798
|
}
|
|
799
799
|
},
|
|
800
|
-
"version": "0.1.
|
|
801
|
-
"fingerprint": "
|
|
800
|
+
"version": "0.1.327",
|
|
801
|
+
"fingerprint": "VDkHhrxDF7rmbDiKHQvOS53wJ2rVUvU2L9ydVySkqlg="
|
|
802
802
|
}
|
package/lib/index.js
CHANGED
|
@@ -92,7 +92,7 @@ class LernaProject extends projen_1.javascript.NodeProject {
|
|
|
92
92
|
}
|
|
93
93
|
exports.LernaProject = LernaProject;
|
|
94
94
|
_a = JSII_RTTI_SYMBOL_1;
|
|
95
|
-
LernaProject[_a] = { fqn: "lerna-projen.LernaProject", version: "0.1.
|
|
95
|
+
LernaProject[_a] = { fqn: "lerna-projen.LernaProject", version: "0.1.327" };
|
|
96
96
|
/**
|
|
97
97
|
* @pjid lerna-ts-project
|
|
98
98
|
*/
|
|
@@ -125,7 +125,7 @@ class LernaTypescriptProject extends projen_1.typescript.TypeScriptProject {
|
|
|
125
125
|
}
|
|
126
126
|
exports.LernaTypescriptProject = LernaTypescriptProject;
|
|
127
127
|
_b = JSII_RTTI_SYMBOL_1;
|
|
128
|
-
LernaTypescriptProject[_b] = { fqn: "lerna-projen.LernaTypescriptProject", version: "0.1.
|
|
128
|
+
LernaTypescriptProject[_b] = { fqn: "lerna-projen.LernaTypescriptProject", version: "0.1.327" };
|
|
129
129
|
class LernaProjectFactory {
|
|
130
130
|
constructor(project) {
|
|
131
131
|
this.project = project;
|
package/package.json
CHANGED
|
@@ -8,32 +8,6 @@
|
|
|
8
8
|
"bin": {
|
|
9
9
|
"lerna-projen": "bin/lerna-projen"
|
|
10
10
|
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "npx projen build",
|
|
13
|
-
"bump": "npx projen bump",
|
|
14
|
-
"clobber": "npx projen clobber",
|
|
15
|
-
"compat": "npx projen compat",
|
|
16
|
-
"compile": "npx projen compile",
|
|
17
|
-
"default": "npx projen default",
|
|
18
|
-
"docgen": "npx projen docgen",
|
|
19
|
-
"eject": "npx projen eject",
|
|
20
|
-
"eslint": "npx projen eslint",
|
|
21
|
-
"package": "npx projen package",
|
|
22
|
-
"package-all": "npx projen package-all",
|
|
23
|
-
"package:js": "npx projen package:js",
|
|
24
|
-
"post-compile": "npx projen post-compile",
|
|
25
|
-
"post-upgrade": "npx projen post-upgrade",
|
|
26
|
-
"pre-compile": "npx projen pre-compile",
|
|
27
|
-
"publish:github": "npx projen publish:github",
|
|
28
|
-
"publish:npm": "npx projen publish:npm",
|
|
29
|
-
"release": "npx projen release",
|
|
30
|
-
"test": "npx projen test",
|
|
31
|
-
"test:watch": "npx projen test:watch",
|
|
32
|
-
"unbump": "npx projen unbump",
|
|
33
|
-
"upgrade": "npx projen upgrade",
|
|
34
|
-
"watch": "npx projen watch",
|
|
35
|
-
"projen": "npx projen"
|
|
36
|
-
},
|
|
37
11
|
"author": {
|
|
38
12
|
"name": "Amin Fazl",
|
|
39
13
|
"email": "amin.fazl@mondo.com.au",
|
|
@@ -53,9 +27,9 @@
|
|
|
53
27
|
"jest": "^29.7.0",
|
|
54
28
|
"jest-junit": "^15",
|
|
55
29
|
"jsii": "5.x",
|
|
56
|
-
"jsii-diff": "^1.
|
|
30
|
+
"jsii-diff": "^1.94.0",
|
|
57
31
|
"jsii-docgen": "^9.2.2",
|
|
58
|
-
"jsii-pacmak": "^1.
|
|
32
|
+
"jsii-pacmak": "^1.94.0",
|
|
59
33
|
"jsii-rosetta": "5.x",
|
|
60
34
|
"projen": "^0.78.11",
|
|
61
35
|
"standard-version": "^9",
|
|
@@ -83,7 +57,7 @@
|
|
|
83
57
|
],
|
|
84
58
|
"main": "lib/index.js",
|
|
85
59
|
"license": "Apache-2.0",
|
|
86
|
-
"version": "0.1.
|
|
60
|
+
"version": "0.1.327",
|
|
87
61
|
"jest": {
|
|
88
62
|
"testMatch": [
|
|
89
63
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
|
@@ -136,5 +110,31 @@
|
|
|
136
110
|
"rootDir": "src"
|
|
137
111
|
}
|
|
138
112
|
},
|
|
139
|
-
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
|
|
140
|
-
|
|
113
|
+
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\".",
|
|
114
|
+
"scripts": {
|
|
115
|
+
"build": "npx projen build",
|
|
116
|
+
"bump": "npx projen bump",
|
|
117
|
+
"clobber": "npx projen clobber",
|
|
118
|
+
"compat": "npx projen compat",
|
|
119
|
+
"compile": "npx projen compile",
|
|
120
|
+
"default": "npx projen default",
|
|
121
|
+
"docgen": "npx projen docgen",
|
|
122
|
+
"eject": "npx projen eject",
|
|
123
|
+
"eslint": "npx projen eslint",
|
|
124
|
+
"package": "npx projen package",
|
|
125
|
+
"package-all": "npx projen package-all",
|
|
126
|
+
"package:js": "npx projen package:js",
|
|
127
|
+
"post-compile": "npx projen post-compile",
|
|
128
|
+
"post-upgrade": "npx projen post-upgrade",
|
|
129
|
+
"pre-compile": "npx projen pre-compile",
|
|
130
|
+
"publish:github": "npx projen publish:github",
|
|
131
|
+
"publish:npm": "npx projen publish:npm",
|
|
132
|
+
"release": "npx projen release",
|
|
133
|
+
"test": "npx projen test",
|
|
134
|
+
"test:watch": "npx projen test:watch",
|
|
135
|
+
"unbump": "npx projen unbump",
|
|
136
|
+
"upgrade": "npx projen upgrade",
|
|
137
|
+
"watch": "npx projen watch",
|
|
138
|
+
"projen": "npx projen"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
The ISC License
|
|
2
|
-
Copyright (c) 2020 Ryan Zimmerman <opensrc@ryanzim.com>
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
5
|
-
|
|
6
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# at-least-node
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-

|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
Sometimes you need to check if you're on _at least_ a given Node.js version, but you don't want to pull in the whole [`semver`](https://www.npmjs.com/package/semver) kitchen sink. That's what `at-least-node` is for.
|
|
8
|
-
|
|
9
|
-
| Package | Size |
|
|
10
|
-
| --------------- | ------- |
|
|
11
|
-
| `at-least-node` | 2.6 kB |
|
|
12
|
-
| `semver` | 75.5 kB |
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
const atLeastNode = require('at-least-node')
|
|
16
|
-
atLeastNode('10.12.0')
|
|
17
|
-
// -> true on Node 10.12.0+, false on anything below that
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
When passing in a version string:
|
|
21
|
-
|
|
22
|
-
- You cannot include a leading `v` (i.e. `v10.12.0`)
|
|
23
|
-
- You cannot omit sections (i.e. `10.12`)
|
|
24
|
-
- You cannot use pre-releases (i.e. `1.0.0-beta`)
|
|
25
|
-
- There is no input validation, if you make a mistake, the resulting behavior is undefined
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "at-least-node",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Lightweight Node.js version sniffing/comparison",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"semver",
|
|
7
|
-
"feature"
|
|
8
|
-
],
|
|
9
|
-
"homepage": "https://github.com/RyanZim/at-least-node#readme",
|
|
10
|
-
"bugs": {
|
|
11
|
-
"url": "https://github.com/RyanZim/at-least-node/issues"
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/RyanZim/at-least-node.git"
|
|
16
|
-
},
|
|
17
|
-
"license": "ISC",
|
|
18
|
-
"author": "Ryan Zimmerman <opensrc@ryanzim.com>",
|
|
19
|
-
"main": "index.js",
|
|
20
|
-
"files": [],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"test": "ava"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"ava": "^3.1.0",
|
|
26
|
-
"rewire": "^4.0.1",
|
|
27
|
-
"semver": "^7.1.2"
|
|
28
|
-
},
|
|
29
|
-
"engines": {
|
|
30
|
-
"node": ">= 4.0.0"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
The ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
# graceful-fs
|
|
2
|
-
|
|
3
|
-
graceful-fs functions as a drop-in replacement for the fs module,
|
|
4
|
-
making various improvements.
|
|
5
|
-
|
|
6
|
-
The improvements are meant to normalize behavior across different
|
|
7
|
-
platforms and environments, and to make filesystem access more
|
|
8
|
-
resilient to errors.
|
|
9
|
-
|
|
10
|
-
## Improvements over [fs module](https://nodejs.org/api/fs.html)
|
|
11
|
-
|
|
12
|
-
* Queues up `open` and `readdir` calls, and retries them once
|
|
13
|
-
something closes if there is an EMFILE error from too many file
|
|
14
|
-
descriptors.
|
|
15
|
-
* fixes `lchmod` for Node versions prior to 0.6.2.
|
|
16
|
-
* implements `fs.lutimes` if possible. Otherwise it becomes a noop.
|
|
17
|
-
* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or
|
|
18
|
-
`lchown` if the user isn't root.
|
|
19
|
-
* makes `lchmod` and `lchown` become noops, if not available.
|
|
20
|
-
* retries reading a file if `read` results in EAGAIN error.
|
|
21
|
-
|
|
22
|
-
On Windows, it retries renaming a file for up to one second if `EACCESS`
|
|
23
|
-
or `EPERM` error occurs, likely because antivirus software has locked
|
|
24
|
-
the directory.
|
|
25
|
-
|
|
26
|
-
## USAGE
|
|
27
|
-
|
|
28
|
-
```javascript
|
|
29
|
-
// use just like fs
|
|
30
|
-
var fs = require('graceful-fs')
|
|
31
|
-
|
|
32
|
-
// now go and do stuff with it...
|
|
33
|
-
fs.readFile('some-file-or-whatever', (err, data) => {
|
|
34
|
-
// Do stuff here.
|
|
35
|
-
})
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Sync methods
|
|
39
|
-
|
|
40
|
-
This module cannot intercept or handle `EMFILE` or `ENFILE` errors from sync
|
|
41
|
-
methods. If you use sync methods which open file descriptors then you are
|
|
42
|
-
responsible for dealing with any errors.
|
|
43
|
-
|
|
44
|
-
This is a known limitation, not a bug.
|
|
45
|
-
|
|
46
|
-
## Global Patching
|
|
47
|
-
|
|
48
|
-
If you want to patch the global fs module (or any other fs-like
|
|
49
|
-
module) you can do this:
|
|
50
|
-
|
|
51
|
-
```javascript
|
|
52
|
-
// Make sure to read the caveat below.
|
|
53
|
-
var realFs = require('fs')
|
|
54
|
-
var gracefulFs = require('graceful-fs')
|
|
55
|
-
gracefulFs.gracefulify(realFs)
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
This should only ever be done at the top-level application layer, in
|
|
59
|
-
order to delay on EMFILE errors from any fs-using dependencies. You
|
|
60
|
-
should **not** do this in a library, because it can cause unexpected
|
|
61
|
-
delays in other parts of the program.
|
|
62
|
-
|
|
63
|
-
## Changes
|
|
64
|
-
|
|
65
|
-
This module is fairly stable at this point, and used by a lot of
|
|
66
|
-
things. That being said, because it implements a subtle behavior
|
|
67
|
-
change in a core part of the node API, even modest changes can be
|
|
68
|
-
extremely breaking, and the versioning is thus biased towards
|
|
69
|
-
bumping the major when in doubt.
|
|
70
|
-
|
|
71
|
-
The main change between major versions has been switching between
|
|
72
|
-
providing a fully-patched `fs` module vs monkey-patching the node core
|
|
73
|
-
builtin, and the approach by which a non-monkey-patched `fs` was
|
|
74
|
-
created.
|
|
75
|
-
|
|
76
|
-
The goal is to trade `EMFILE` errors for slower fs operations. So, if
|
|
77
|
-
you try to open a zillion files, rather than crashing, `open`
|
|
78
|
-
operations will be queued up and wait for something else to `close`.
|
|
79
|
-
|
|
80
|
-
There are advantages to each approach. Monkey-patching the fs means
|
|
81
|
-
that no `EMFILE` errors can possibly occur anywhere in your
|
|
82
|
-
application, because everything is using the same core `fs` module,
|
|
83
|
-
which is patched. However, it can also obviously cause undesirable
|
|
84
|
-
side-effects, especially if the module is loaded multiple times.
|
|
85
|
-
|
|
86
|
-
Implementing a separate-but-identical patched `fs` module is more
|
|
87
|
-
surgical (and doesn't run the risk of patching multiple times), but
|
|
88
|
-
also imposes the challenge of keeping in sync with the core module.
|
|
89
|
-
|
|
90
|
-
The current approach loads the `fs` module, and then creates a
|
|
91
|
-
lookalike object that has all the same methods, except a few that are
|
|
92
|
-
patched. It is safe to use in all versions of Node from 0.8 through
|
|
93
|
-
7.0.
|
|
94
|
-
|
|
95
|
-
### v4
|
|
96
|
-
|
|
97
|
-
* Do not monkey-patch the fs module. This module may now be used as a
|
|
98
|
-
drop-in dep, and users can opt into monkey-patching the fs builtin
|
|
99
|
-
if their app requires it.
|
|
100
|
-
|
|
101
|
-
### v3
|
|
102
|
-
|
|
103
|
-
* Monkey-patch fs, because the eval approach no longer works on recent
|
|
104
|
-
node.
|
|
105
|
-
* fixed possible type-error throw if rename fails on windows
|
|
106
|
-
* verify that we *never* get EMFILE errors
|
|
107
|
-
* Ignore ENOSYS from chmod/chown
|
|
108
|
-
* clarify that graceful-fs must be used as a drop-in
|
|
109
|
-
|
|
110
|
-
### v2.1.0
|
|
111
|
-
|
|
112
|
-
* Use eval rather than monkey-patching fs.
|
|
113
|
-
* readdir: Always sort the results
|
|
114
|
-
* win32: requeue a file if error has an OK status
|
|
115
|
-
|
|
116
|
-
### v2.0
|
|
117
|
-
|
|
118
|
-
* A return to monkey patching
|
|
119
|
-
* wrap process.cwd
|
|
120
|
-
|
|
121
|
-
### v1.1
|
|
122
|
-
|
|
123
|
-
* wrap readFile
|
|
124
|
-
* Wrap fs.writeFile.
|
|
125
|
-
* readdir protection
|
|
126
|
-
* Don't clobber the fs builtin
|
|
127
|
-
* Handle fs.read EAGAIN errors by trying again
|
|
128
|
-
* Expose the curOpen counter
|
|
129
|
-
* No-op lchown/lchmod if not implemented
|
|
130
|
-
* fs.rename patch only for win32
|
|
131
|
-
* Patch fs.rename to handle AV software on Windows
|
|
132
|
-
* Close #4 Chown should not fail on einval or eperm if non-root
|
|
133
|
-
* Fix isaacs/fstream#1 Only wrap fs one time
|
|
134
|
-
* Fix #3 Start at 1024 max files, then back off on EMFILE
|
|
135
|
-
* lutimes that doens't blow up on Linux
|
|
136
|
-
* A full on-rewrite using a queue instead of just swallowing the EMFILE error
|
|
137
|
-
* Wrap Read/Write streams as well
|
|
138
|
-
|
|
139
|
-
### 1.0
|
|
140
|
-
|
|
141
|
-
* Update engines for node 0.6
|
|
142
|
-
* Be lstat-graceful on Windows
|
|
143
|
-
* first
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
module.exports = clone
|
|
4
|
-
|
|
5
|
-
var getPrototypeOf = Object.getPrototypeOf || function (obj) {
|
|
6
|
-
return obj.__proto__
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
function clone (obj) {
|
|
10
|
-
if (obj === null || typeof obj !== 'object')
|
|
11
|
-
return obj
|
|
12
|
-
|
|
13
|
-
if (obj instanceof Object)
|
|
14
|
-
var copy = { __proto__: getPrototypeOf(obj) }
|
|
15
|
-
else
|
|
16
|
-
var copy = Object.create(null)
|
|
17
|
-
|
|
18
|
-
Object.getOwnPropertyNames(obj).forEach(function (key) {
|
|
19
|
-
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
return copy
|
|
23
|
-
}
|