@terraforge/terraform 0.0.6 → 0.0.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.
@@ -76,9 +76,16 @@ await Bun.write(
76
76
  import { createTerraformAPI } from '@terraforge/terraform'
77
77
  import { root } from './types.ts'
78
78
 
79
+ // @ts-ignore
79
80
  export const ${type} = createTerraformAPI<typeof root.${type}>({
80
81
  namespace: '${type}',
81
82
  provider: { org: '${org}', type: '${type}', version: '${version}' },
82
83
  }) as typeof root.${type}
84
+
85
+ declare module '@terraforge/${type}' {
86
+ import ${type} = root.${type}
87
+ // @ts-ignore
88
+ export { ${type} }
89
+ }
83
90
  `
84
91
  )
package/dist/index.js CHANGED
@@ -1765,7 +1765,7 @@ var generateTypes = (providers, resources, dataSources) => {
1765
1765
  `${tab(indent)}export type ${typeName}Output = ${generatePropertyOutputType(prop, indent)}`,
1766
1766
  `${tab(indent)}export class ${typeName} {`,
1767
1767
  `${tab(indent + 1)}constructor(parent: c.Group, id: string, props: ${typeName}Input, config?:c.ResourceConfig)`,
1768
- `${tab(indent + 1)}readonly $: c.ResourceMeta<${typeName}Input, ${typeName}Output>`,
1768
+ // `${tab(indent + 1)}readonly $: c.ResourceMeta<${typeName}Input, ${typeName}Output>`,
1769
1769
  generateClassProperties(prop, indent + 1),
1770
1770
  `${tab(indent)}}`
1771
1771
  ].join("\n\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terraforge/terraform",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",