@nxgt/typespec 0.13.0 → 0.13.1

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/index.d.ts CHANGED
@@ -7,11 +7,11 @@
7
7
  * export would declare it a second time, in the global namespace.
8
8
  */
9
9
  import type { Program } from '@typespec/compiler';
10
- import { operationIds } from './operation-ids';
11
- import { queryMethod } from './query-method';
12
- export { $onEmit } from './emitter';
13
- export { $lib } from './lib';
14
- export { $linter } from './linter';
10
+ import { operationIds } from './operation-ids.js';
11
+ import { queryMethod } from './query-method.js';
12
+ export { $onEmit } from './emitter.js';
13
+ export { $lib } from './lib.js';
14
+ export { $linter } from './linter.js';
15
15
  export declare function $onValidate(program: Program): void;
16
16
  export declare const $decorators: {
17
17
  Nxgt: {
@@ -5,7 +5,7 @@
5
5
  * the interface's resource: `create` in `Users` is `createUser` (`verbs.ts`).
6
6
  */
7
7
  import { type DecoratorContext, type Interface, type Namespace, type Operation, type Program } from '@typespec/compiler';
8
- import { type OperationIdsOptions } from './resource';
8
+ import { type OperationIdsOptions } from './resource.js';
9
9
  /**
10
10
  * Marks the interface or the namespace; its ids are set once the program is
11
11
  * checked. On a template, TypeSpec runs it on each instance, which
@@ -4,7 +4,7 @@
4
4
  * them, layered from the library's, the namespaces', and the interface's.
5
5
  */
6
6
  import type { Operation, Program } from '@typespec/compiler';
7
- import { type Grammar } from './verbs';
7
+ import { type Grammar } from './verbs.js';
8
8
  /** `@operationIds`' options, as `OperationIdsOptions` declares them. */
9
9
  export interface OperationIdsOptions {
10
10
  readonly singular?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/typespec",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "scripts": {
37
37
  "build": "bun run ../../build.ts",
38
38
  "fixtures": "bun run test/generate.ts",
39
- "test": "bun run fixtures && bun test src",
39
+ "test": "bun run ../../scripts/check-dist-fresh.ts . && bun run fixtures && bun test src",
40
40
  "typecheck": "bun run fixtures && tsc --noEmit",
41
41
  "fixtures:typespec": "bun run test/generate.ts --accept"
42
42
  },
@@ -61,8 +61,8 @@
61
61
  }
62
62
  },
63
63
  "devDependencies": {
64
- "@nxgt/openapi-codegen": "^0.9.1",
65
- "@nxgt/openapi-hono": "^0.3.2",
64
+ "@nxgt/openapi-codegen": "^0.9.2",
65
+ "@nxgt/openapi-hono": "^0.3.3",
66
66
  "@types/bun": "^1.4.0",
67
67
  "@typespec/compiler": "1.17.0",
68
68
  "@typespec/http": "1.17.0",