@contractspec/tool.create-contractspec-plugin 1.62.0 → 2.1.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/dist/index.d.ts +0 -1
- package/dist/index.js +4 -4
- package/dist/node/index.js +4 -4
- package/dist/node/templates/example-generator.js +4 -4
- package/dist/templates/example-generator.d.ts +0 -1
- package/dist/templates/example-generator.js +4 -4
- package/dist/utils.d.ts +0 -1
- package/package.json +7 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/templates/example-generator.d.ts.map +0 -1
- package/dist/utils.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -70,7 +70,7 @@ function createExampleGeneratorTemplate() {
|
|
|
70
70
|
"test:smoke": "bun test/smoke.test.ts"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@contractspec/lib.contracts": "workspace:*",
|
|
73
|
+
"@contractspec/lib.contracts-spec": "workspace:*",
|
|
74
74
|
"@contractspec/lib.schema": "workspace:*",
|
|
75
75
|
"zod": "catalog:"
|
|
76
76
|
},
|
|
@@ -82,7 +82,7 @@ function createExampleGeneratorTemplate() {
|
|
|
82
82
|
"rimraf": "^6.0.1"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"@contractspec/lib.contracts": "^1.0.0",
|
|
85
|
+
"@contractspec/lib.contracts-spec": "^1.0.0",
|
|
86
86
|
"@contractspec/lib.schema": "^1.0.0"
|
|
87
87
|
},
|
|
88
88
|
"publishConfig": {
|
|
@@ -268,7 +268,7 @@ export { {{className}} } from "./generator.js";
|
|
|
268
268
|
export type { {{className}}Config, GeneratorResult } from "./types.js";
|
|
269
269
|
export { defaultConfig } from "./config.js";`,
|
|
270
270
|
"src/types.ts": `import type { AnySchemaModel } from "@contractspec/lib.schema";
|
|
271
|
-
import type { SpecDefinition } from "@contractspec/lib.contracts";
|
|
271
|
+
import type { SpecDefinition } from "@contractspec/lib.contracts-spec";
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
274
|
* Configuration for the {{className}} plugin
|
|
@@ -435,7 +435,7 @@ import type {
|
|
|
435
435
|
ConfigurationError,
|
|
436
436
|
GenerationError
|
|
437
437
|
} from "./types.js";
|
|
438
|
-
import { schemaToMarkdown } from "@contractspec/lib.contracts";
|
|
438
|
+
import { schemaToMarkdown } from "@contractspec/lib.contracts-spec/schema-to-markdown";
|
|
439
439
|
import { validateConfig, mergeConfig } from "./config.js";
|
|
440
440
|
|
|
441
441
|
/**
|
package/dist/node/index.js
CHANGED
|
@@ -69,7 +69,7 @@ function createExampleGeneratorTemplate() {
|
|
|
69
69
|
"test:smoke": "bun test/smoke.test.ts"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@contractspec/lib.contracts": "workspace:*",
|
|
72
|
+
"@contractspec/lib.contracts-spec": "workspace:*",
|
|
73
73
|
"@contractspec/lib.schema": "workspace:*",
|
|
74
74
|
"zod": "catalog:"
|
|
75
75
|
},
|
|
@@ -81,7 +81,7 @@ function createExampleGeneratorTemplate() {
|
|
|
81
81
|
"rimraf": "^6.0.1"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@contractspec/lib.contracts": "^1.0.0",
|
|
84
|
+
"@contractspec/lib.contracts-spec": "^1.0.0",
|
|
85
85
|
"@contractspec/lib.schema": "^1.0.0"
|
|
86
86
|
},
|
|
87
87
|
"publishConfig": {
|
|
@@ -267,7 +267,7 @@ export { {{className}} } from "./generator.js";
|
|
|
267
267
|
export type { {{className}}Config, GeneratorResult } from "./types.js";
|
|
268
268
|
export { defaultConfig } from "./config.js";`,
|
|
269
269
|
"src/types.ts": `import type { AnySchemaModel } from "@contractspec/lib.schema";
|
|
270
|
-
import type { SpecDefinition } from "@contractspec/lib.contracts";
|
|
270
|
+
import type { SpecDefinition } from "@contractspec/lib.contracts-spec";
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
273
|
* Configuration for the {{className}} plugin
|
|
@@ -434,7 +434,7 @@ import type {
|
|
|
434
434
|
ConfigurationError,
|
|
435
435
|
GenerationError
|
|
436
436
|
} from "./types.js";
|
|
437
|
-
import { schemaToMarkdown } from "@contractspec/lib.contracts";
|
|
437
|
+
import { schemaToMarkdown } from "@contractspec/lib.contracts-spec/schema-to-markdown";
|
|
438
438
|
import { validateConfig, mergeConfig } from "./config.js";
|
|
439
439
|
|
|
440
440
|
/**
|
|
@@ -48,7 +48,7 @@ function createExampleGeneratorTemplate() {
|
|
|
48
48
|
"test:smoke": "bun test/smoke.test.ts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@contractspec/lib.contracts": "workspace:*",
|
|
51
|
+
"@contractspec/lib.contracts-spec": "workspace:*",
|
|
52
52
|
"@contractspec/lib.schema": "workspace:*",
|
|
53
53
|
"zod": "catalog:"
|
|
54
54
|
},
|
|
@@ -60,7 +60,7 @@ function createExampleGeneratorTemplate() {
|
|
|
60
60
|
"rimraf": "^6.0.1"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@contractspec/lib.contracts": "^1.0.0",
|
|
63
|
+
"@contractspec/lib.contracts-spec": "^1.0.0",
|
|
64
64
|
"@contractspec/lib.schema": "^1.0.0"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
@@ -246,7 +246,7 @@ export { {{className}} } from "./generator.js";
|
|
|
246
246
|
export type { {{className}}Config, GeneratorResult } from "./types.js";
|
|
247
247
|
export { defaultConfig } from "./config.js";`,
|
|
248
248
|
"src/types.ts": `import type { AnySchemaModel } from "@contractspec/lib.schema";
|
|
249
|
-
import type { SpecDefinition } from "@contractspec/lib.contracts";
|
|
249
|
+
import type { SpecDefinition } from "@contractspec/lib.contracts-spec";
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
252
|
* Configuration for the {{className}} plugin
|
|
@@ -413,7 +413,7 @@ import type {
|
|
|
413
413
|
ConfigurationError,
|
|
414
414
|
GenerationError
|
|
415
415
|
} from "./types.js";
|
|
416
|
-
import { schemaToMarkdown } from "@contractspec/lib.contracts";
|
|
416
|
+
import { schemaToMarkdown } from "@contractspec/lib.contracts-spec/schema-to-markdown";
|
|
417
417
|
import { validateConfig, mergeConfig } from "./config.js";
|
|
418
418
|
|
|
419
419
|
/**
|
|
@@ -49,7 +49,7 @@ function createExampleGeneratorTemplate() {
|
|
|
49
49
|
"test:smoke": "bun test/smoke.test.ts"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@contractspec/lib.contracts": "workspace:*",
|
|
52
|
+
"@contractspec/lib.contracts-spec": "workspace:*",
|
|
53
53
|
"@contractspec/lib.schema": "workspace:*",
|
|
54
54
|
"zod": "catalog:"
|
|
55
55
|
},
|
|
@@ -61,7 +61,7 @@ function createExampleGeneratorTemplate() {
|
|
|
61
61
|
"rimraf": "^6.0.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@contractspec/lib.contracts": "^1.0.0",
|
|
64
|
+
"@contractspec/lib.contracts-spec": "^1.0.0",
|
|
65
65
|
"@contractspec/lib.schema": "^1.0.0"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
@@ -247,7 +247,7 @@ export { {{className}} } from "./generator.js";
|
|
|
247
247
|
export type { {{className}}Config, GeneratorResult } from "./types.js";
|
|
248
248
|
export { defaultConfig } from "./config.js";`,
|
|
249
249
|
"src/types.ts": `import type { AnySchemaModel } from "@contractspec/lib.schema";
|
|
250
|
-
import type { SpecDefinition } from "@contractspec/lib.contracts";
|
|
250
|
+
import type { SpecDefinition } from "@contractspec/lib.contracts-spec";
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* Configuration for the {{className}} plugin
|
|
@@ -414,7 +414,7 @@ import type {
|
|
|
414
414
|
ConfigurationError,
|
|
415
415
|
GenerationError
|
|
416
416
|
} from "./types.js";
|
|
417
|
-
import { schemaToMarkdown } from "@contractspec/lib.contracts";
|
|
417
|
+
import { schemaToMarkdown } from "@contractspec/lib.contracts-spec/schema-to-markdown";
|
|
418
418
|
import { validateConfig, mergeConfig } from "./config.js";
|
|
419
419
|
|
|
420
420
|
/**
|
package/dist/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/tool.create-contractspec-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI tool for creating ContractSpec plugins from templates",
|
|
6
6
|
"keywords": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"lint": "bun lint:fix",
|
|
23
23
|
"lint:fix": "eslint src --fix",
|
|
24
24
|
"lint:check": "eslint src",
|
|
25
|
-
"test": "bun test",
|
|
25
|
+
"test": "bun test --pass-with-no-tests",
|
|
26
26
|
"prebuild": "contractspec-bun-build prebuild",
|
|
27
27
|
"typecheck": "tsc --noEmit"
|
|
28
28
|
},
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"README.md"
|
|
56
56
|
],
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@contractspec/lib.contracts": "1.
|
|
59
|
-
"@contractspec/lib.schema": "1.
|
|
60
|
-
"@inquirer/prompts": "^8.2.
|
|
58
|
+
"@contractspec/lib.contracts-spec": "2.1.0",
|
|
59
|
+
"@contractspec/lib.schema": "2.1.0",
|
|
60
|
+
"@inquirer/prompts": "^8.2.1",
|
|
61
61
|
"zod": "^4.3.5",
|
|
62
62
|
"commander": "^14.0.3",
|
|
63
63
|
"chalk": "^5.3.0",
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"mustache": "^4.2.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@contractspec/tool.typescript": "1.
|
|
68
|
+
"@contractspec/tool.typescript": "2.1.0",
|
|
69
69
|
"@types/fs-extra": "^11.0.4",
|
|
70
70
|
"@types/mustache": "^4.2.5",
|
|
71
71
|
"typescript": "^5.9.3",
|
|
72
|
-
"@contractspec/tool.bun": "1.
|
|
72
|
+
"@contractspec/tool.bun": "2.1.0"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public",
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;GAKG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"example-generator.d.ts","sourceRoot":"","sources":["../../src/templates/example-generator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,8BAA8B;;;;;;;;;;;;;;;;;;;;EAmkC7C"}
|
package/dist/utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAErE,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAM3E;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,GAAE,IAAiB,GAAG,MAAM,CAE1D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKjD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGhD"}
|