projen 0.54.4 → 0.54.7

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.
Files changed (121) hide show
  1. package/.jsii +2 -2
  2. package/changelog.md +1 -1
  3. package/lib/awscdk/auto-discover.js +4 -4
  4. package/lib/awscdk/awscdk-app-java.js +1 -1
  5. package/lib/awscdk/awscdk-app-py.js +1 -1
  6. package/lib/awscdk/awscdk-app-ts.js +1 -1
  7. package/lib/awscdk/awscdk-construct.js +2 -2
  8. package/lib/awscdk/awscdk-deps-java.js +1 -1
  9. package/lib/awscdk/awscdk-deps-js.js +1 -1
  10. package/lib/awscdk/awscdk-deps.js +1 -1
  11. package/lib/awscdk/cdk-config.js +1 -1
  12. package/lib/awscdk/cdk-tasks.js +1 -1
  13. package/lib/awscdk/integration-test.js +1 -1
  14. package/lib/awscdk/lambda-extension.js +1 -1
  15. package/lib/awscdk/lambda-function.js +2 -2
  16. package/lib/build/build-workflow.js +1 -1
  17. package/lib/cdk/auto-discover-base.js +2 -2
  18. package/lib/cdk/construct-lib.js +1 -1
  19. package/lib/cdk/integration-test-base.js +1 -1
  20. package/lib/cdk/jsii-docgen.js +1 -1
  21. package/lib/cdk/jsii-project.js +1 -1
  22. package/lib/cdk8s/auto-discover.js +2 -2
  23. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  24. package/lib/cdk8s/cdk8s-construct.js +1 -1
  25. package/lib/cdk8s/integration-test.js +1 -1
  26. package/lib/cdktf/cdktf-construct.js +1 -1
  27. package/lib/component.js +1 -1
  28. package/lib/dependencies.js +1 -1
  29. package/lib/dev-env.js +1 -1
  30. package/lib/docker-compose.js +2 -2
  31. package/lib/file.js +1 -1
  32. package/lib/gitattributes.js +1 -1
  33. package/lib/github/auto-approve.js +1 -1
  34. package/lib/github/auto-merge.js +1 -1
  35. package/lib/github/dependabot.js +1 -1
  36. package/lib/github/github-credentials.js +1 -1
  37. package/lib/github/github-project.js +1 -1
  38. package/lib/github/github.js +1 -1
  39. package/lib/github/mergify.js +1 -1
  40. package/lib/github/pr-template.js +1 -1
  41. package/lib/github/pull-request-lint.js +1 -1
  42. package/lib/github/stale.js +1 -1
  43. package/lib/github/task-workflow.js +1 -1
  44. package/lib/github/workflows.js +1 -1
  45. package/lib/gitlab/configuration.js +1 -1
  46. package/lib/gitlab/gitlab-configuration.js +1 -1
  47. package/lib/gitlab/nested-configuration.js +1 -1
  48. package/lib/gitpod.js +1 -1
  49. package/lib/ignore-file.js +1 -1
  50. package/lib/ini.js +1 -1
  51. package/lib/java/java-project.js +1 -1
  52. package/lib/java/junit.js +1 -1
  53. package/lib/java/maven-compile.js +1 -1
  54. package/lib/java/maven-packaging.js +1 -1
  55. package/lib/java/maven-sample.js +1 -1
  56. package/lib/java/pom.js +1 -1
  57. package/lib/java/projenrc.js +1 -1
  58. package/lib/javascript/bundler.js +1 -1
  59. package/lib/javascript/eslint.js +1 -1
  60. package/lib/javascript/jest.js +1 -1
  61. package/lib/javascript/node-package.js +1 -1
  62. package/lib/javascript/node-project.js +1 -1
  63. package/lib/javascript/npm-config.js +1 -1
  64. package/lib/javascript/prettier.js +1 -1
  65. package/lib/javascript/projenrc.js +1 -1
  66. package/lib/javascript/typescript-config.js +1 -1
  67. package/lib/javascript/upgrade-dependencies.js +2 -2
  68. package/lib/json.js +1 -1
  69. package/lib/license.js +1 -1
  70. package/lib/logger.js +1 -1
  71. package/lib/makefile.js +1 -1
  72. package/lib/object-file.js +1 -1
  73. package/lib/project-build.js +1 -1
  74. package/lib/project.js +1 -1
  75. package/lib/projects.js +1 -1
  76. package/lib/projenrc-json.js +1 -1
  77. package/lib/python/pip.js +1 -1
  78. package/lib/python/poetry.js +2 -2
  79. package/lib/python/projenrc.js +1 -1
  80. package/lib/python/pytest-sample.js +1 -1
  81. package/lib/python/pytest.js +1 -1
  82. package/lib/python/python-project.js +1 -1
  83. package/lib/python/python-sample.js +1 -1
  84. package/lib/python/requirements-file.js +1 -1
  85. package/lib/python/setuppy.js +1 -1
  86. package/lib/python/setuptools.js +1 -1
  87. package/lib/python/venv.js +1 -1
  88. package/lib/readme.js +1 -1
  89. package/lib/release/publisher.js +1 -1
  90. package/lib/release/release-trigger.js +1 -1
  91. package/lib/release/release.js +1 -1
  92. package/lib/run-task.js +0 -1813
  93. package/lib/sample-file.js +2 -2
  94. package/lib/semver.js +1 -1
  95. package/lib/source-code.js +1 -1
  96. package/lib/task-runtime.js +1 -1
  97. package/lib/task.js +1 -1
  98. package/lib/tasks.js +1 -1
  99. package/lib/testing.js +1 -1
  100. package/lib/textfile.js +1 -1
  101. package/lib/toml.js +1 -1
  102. package/lib/typescript/projenrc.js +1 -1
  103. package/lib/typescript/typescript-typedoc.js +1 -1
  104. package/lib/typescript/typescript.js +3 -3
  105. package/lib/version.js +1 -1
  106. package/lib/vscode/devcontainer.js +1 -1
  107. package/lib/vscode/launch-config.js +1 -1
  108. package/lib/vscode/vscode.js +1 -1
  109. package/lib/web/next.js +3 -3
  110. package/lib/web/postcss.js +1 -1
  111. package/lib/web/react.js +4 -4
  112. package/lib/web/tailwind.js +1 -1
  113. package/lib/xmlfile.js +1 -1
  114. package/lib/yaml.js +1 -1
  115. package/node_modules/graceful-fs/LICENSE +1 -1
  116. package/node_modules/graceful-fs/graceful-fs.js +23 -4
  117. package/node_modules/graceful-fs/package.json +1 -1
  118. package/node_modules/graceful-fs/polyfills.js +35 -28
  119. package/package.json +4 -4
  120. package/releasetag.txt +1 -1
  121. package/version.txt +1 -1
@@ -71,13 +71,13 @@ function patch (fs) {
71
71
  fs.lstatSync = statFixSync(fs.lstatSync)
72
72
 
73
73
  // if lchmod/lchown do not exist, then make them no-ops
74
- if (!fs.lchmod) {
74
+ if (fs.chmod && !fs.lchmod) {
75
75
  fs.lchmod = function (path, mode, cb) {
76
76
  if (cb) process.nextTick(cb)
77
77
  }
78
78
  fs.lchmodSync = function () {}
79
79
  }
80
- if (!fs.lchown) {
80
+ if (fs.chown && !fs.lchown) {
81
81
  fs.lchown = function (path, uid, gid, cb) {
82
82
  if (cb) process.nextTick(cb)
83
83
  }
@@ -94,32 +94,38 @@ function patch (fs) {
94
94
  // CPU to a busy looping process, which can cause the program causing the lock
95
95
  // contention to be starved of CPU by node, so the contention doesn't resolve.
96
96
  if (platform === "win32") {
97
- fs.rename = (function (fs$rename) { return function (from, to, cb) {
98
- var start = Date.now()
99
- var backoff = 0;
100
- fs$rename(from, to, function CB (er) {
101
- if (er
102
- && (er.code === "EACCES" || er.code === "EPERM")
103
- && Date.now() - start < 60000) {
104
- setTimeout(function() {
105
- fs.stat(to, function (stater, st) {
106
- if (stater && stater.code === "ENOENT")
107
- fs$rename(from, to, CB);
108
- else
109
- cb(er)
110
- })
111
- }, backoff)
112
- if (backoff < 100)
113
- backoff += 10;
114
- return;
115
- }
116
- if (cb) cb(er)
117
- })
118
- }})(fs.rename)
97
+ fs.rename = typeof fs.rename !== 'function' ? fs.rename
98
+ : (function (fs$rename) {
99
+ function rename (from, to, cb) {
100
+ var start = Date.now()
101
+ var backoff = 0;
102
+ fs$rename(from, to, function CB (er) {
103
+ if (er
104
+ && (er.code === "EACCES" || er.code === "EPERM")
105
+ && Date.now() - start < 60000) {
106
+ setTimeout(function() {
107
+ fs.stat(to, function (stater, st) {
108
+ if (stater && stater.code === "ENOENT")
109
+ fs$rename(from, to, CB);
110
+ else
111
+ cb(er)
112
+ })
113
+ }, backoff)
114
+ if (backoff < 100)
115
+ backoff += 10;
116
+ return;
117
+ }
118
+ if (cb) cb(er)
119
+ })
120
+ }
121
+ if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename)
122
+ return rename
123
+ })(fs.rename)
119
124
  }
120
125
 
121
126
  // if read() returns EAGAIN, then just try it again.
122
- fs.read = (function (fs$read) {
127
+ fs.read = typeof fs.read !== 'function' ? fs.read
128
+ : (function (fs$read) {
123
129
  function read (fd, buffer, offset, length, position, callback_) {
124
130
  var callback
125
131
  if (callback_ && typeof callback_ === 'function') {
@@ -140,7 +146,8 @@ function patch (fs) {
140
146
  return read
141
147
  })(fs.read)
142
148
 
143
- fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
149
+ fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync
150
+ : (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
144
151
  var eagCounter = 0
145
152
  while (true) {
146
153
  try {
@@ -199,7 +206,7 @@ function patch (fs) {
199
206
  }
200
207
 
201
208
  function patchLutimes (fs) {
202
- if (constants.hasOwnProperty("O_SYMLINK")) {
209
+ if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
203
210
  fs.lutimes = function (path, at, mt, cb) {
204
211
  fs.open(path, constants.O_SYMLINK, function (er, fd) {
205
212
  if (er) {
@@ -233,7 +240,7 @@ function patch (fs) {
233
240
  return ret
234
241
  }
235
242
 
236
- } else {
243
+ } else if (fs.futimes) {
237
244
  fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
238
245
  fs.lutimesSync = function () {}
239
246
  }
package/package.json CHANGED
@@ -59,11 +59,11 @@
59
59
  "@typescript-eslint/eslint-plugin": "^5",
60
60
  "@typescript-eslint/parser": "^5",
61
61
  "all-contributors-cli": "^6.20.0",
62
- "esbuild": "^0.14.29",
62
+ "esbuild": "^0.14.31",
63
63
  "eslint": "^8",
64
64
  "eslint-config-prettier": "^8.5.0",
65
65
  "eslint-import-resolver-node": "^0.3.6",
66
- "eslint-import-resolver-typescript": "^2.7.0",
66
+ "eslint-import-resolver-typescript": "^2.7.1",
67
67
  "eslint-plugin-import": "^2.25.4",
68
68
  "eslint-plugin-prettier": "^4.0.0",
69
69
  "jest": "^27.5.1",
@@ -75,7 +75,7 @@
75
75
  "json-schema": "^0.4.0",
76
76
  "markmac": "^0.1.146",
77
77
  "npm-check-updates": "^12",
78
- "prettier": "^2.6.1",
78
+ "prettier": "^2.6.2",
79
79
  "standard-version": "^9",
80
80
  "ts-jest": "^27.1.4",
81
81
  "typescript": "^3.9.10"
@@ -121,7 +121,7 @@
121
121
  },
122
122
  "main": "lib/index.js",
123
123
  "license": "Apache-2.0",
124
- "version": "0.54.4",
124
+ "version": "0.54.7",
125
125
  "jest": {
126
126
  "testMatch": [
127
127
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
package/releasetag.txt CHANGED
@@ -1 +1 @@
1
- v0.54.4
1
+ v0.54.7
package/version.txt CHANGED
@@ -1 +1 @@
1
- 0.54.4
1
+ 0.54.7