@typespec/compiler 0.48.0-dev.5 → 0.48.0-dev.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.
- package/dist/manifest.js +2 -2
- package/dist/src/core/formatter-fs.js +2 -2
- package/lib/decorators.tsp +1 -0
- package/package.json +1 -1
package/dist/manifest.js
CHANGED
|
@@ -18,7 +18,7 @@ export async function formatTypeSpecFiles(patterns, { exclude, debug }) {
|
|
|
18
18
|
if (e instanceof PrettierParserError) {
|
|
19
19
|
const details = debug ? e.message : "";
|
|
20
20
|
// eslint-disable-next-line no-console
|
|
21
|
-
console.error(`File '${file}' failed to
|
|
21
|
+
console.error(`File '${file}' failed to format. ${details}`);
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
throw e;
|
|
@@ -43,7 +43,7 @@ export async function findUnformattedTypeSpecFiles(patterns, { exclude, debug })
|
|
|
43
43
|
if (e instanceof PrettierParserError) {
|
|
44
44
|
const details = debug ? e.message : "";
|
|
45
45
|
// eslint-disable-next-line no-console
|
|
46
|
-
console.error(`File '${file}' failed to
|
|
46
|
+
console.error(`File '${file}' failed to format. ${details}`);
|
|
47
47
|
unformatted.push(file);
|
|
48
48
|
}
|
|
49
49
|
else {
|
package/lib/decorators.tsp
CHANGED
|
@@ -46,6 +46,7 @@ extern dec doc(target: unknown, doc: valueof string, formatArgs?: {});
|
|
|
46
46
|
* op Action<T>(): T;
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
|
+
#deprecated "@deprecated decorator is deprecated. Use the `#deprecated` directive instead."
|
|
49
50
|
extern dec deprecated(target: unknown, message: valueof string);
|
|
50
51
|
|
|
51
52
|
/**
|