@atlaspack/namer-default 2.14.26-dev-inline-requires-reuse-bdc9ca9c3.0 → 2.14.27-inline-requires-take-2-2a0c642df.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.
- package/CHANGELOG.md +10 -0
- package/lib/DefaultNamer.js +1 -4
- package/package.json +4 -4
- package/src/DefaultNamer.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaspack/namer-default
|
|
2
2
|
|
|
3
|
+
## 2.14.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd)]:
|
|
10
|
+
- @atlaspack/diagnostic@2.14.3
|
|
11
|
+
- @atlaspack/plugin@2.14.26
|
|
12
|
+
|
|
3
13
|
## 2.14.25
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/lib/DefaultNamer.js
CHANGED
|
@@ -73,13 +73,10 @@ var _default = exports.default = new (_plugin().Namer)({
|
|
|
73
73
|
let fullName = _path().default.relative(_path().default.dirname(loc.filePath), _path().default.join(bundle.target.distDir, distEntry));
|
|
74
74
|
let err = new (_diagnostic().default)({
|
|
75
75
|
diagnostic: {
|
|
76
|
-
// @ts-expect-error TS2345
|
|
77
76
|
message: (0, _diagnostic().md)`Target "${bundle.target.name}" declares an output file path of "${fullName}" which does not match the compiled bundle type "${bundle.type}".`,
|
|
78
77
|
codeFrames: [{
|
|
79
78
|
filePath: loc.filePath,
|
|
80
|
-
codeHighlights: [(0, _diagnostic().convertSourceLocationToHighlight)(loc,
|
|
81
|
-
// @ts-expect-error TS2345
|
|
82
|
-
(0, _diagnostic().md)`Did you mean "${fullName.slice(0, -_path().default.extname(fullName).length) + '.' + bundle.type}"?`)]
|
|
79
|
+
codeHighlights: [(0, _diagnostic().convertSourceLocationToHighlight)(loc, (0, _diagnostic().md)`Did you mean "${fullName.slice(0, -_path().default.extname(fullName).length) + '.' + bundle.type}"?`)]
|
|
83
80
|
}],
|
|
84
81
|
hints: [`Try changing the file extension of "${bundle.target.name}" in ${_path().default.relative(process.cwd(), loc.filePath)}.`]
|
|
85
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/namer-default",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.27-inline-requires-take-2-2a0c642df.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/diagnostic": "2.14.
|
|
20
|
-
"@atlaspack/plugin": "2.14.
|
|
19
|
+
"@atlaspack/diagnostic": "2.14.4-inline-requires-take-2-2a0c642df.0",
|
|
20
|
+
"@atlaspack/plugin": "2.14.27-inline-requires-take-2-2a0c642df.0",
|
|
21
21
|
"nullthrows": "^1.1.1"
|
|
22
22
|
},
|
|
23
23
|
"type": "commonjs",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"check-ts": "tsc --emitDeclarationOnly --rootDir src",
|
|
26
26
|
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "2a0c642dfe354e30a8cbd23be0b1a283eab54040"
|
|
29
29
|
}
|
package/src/DefaultNamer.ts
CHANGED
|
@@ -57,7 +57,6 @@ export default new Namer({
|
|
|
57
57
|
);
|
|
58
58
|
let err = new ThrowableDiagnostic({
|
|
59
59
|
diagnostic: {
|
|
60
|
-
// @ts-expect-error TS2345
|
|
61
60
|
message: md`Target "${bundle.target.name}" declares an output file path of "${fullName}" which does not match the compiled bundle type "${bundle.type}".`,
|
|
62
61
|
codeFrames: [
|
|
63
62
|
{
|
|
@@ -65,7 +64,6 @@ export default new Namer({
|
|
|
65
64
|
codeHighlights: [
|
|
66
65
|
convertSourceLocationToHighlight(
|
|
67
66
|
loc,
|
|
68
|
-
// @ts-expect-error TS2345
|
|
69
67
|
md`Did you mean "${
|
|
70
68
|
fullName.slice(0, -path.extname(fullName).length) +
|
|
71
69
|
'.' +
|