pulumi/pkg/codegen/internal/test/testdata/dashed-import-schema/nodejs/index.ts

33 lines
856 B
TypeScript

// *** WARNING: this file was generated by test. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
// Export members:
export * from "./provider";
// Export enums:
export * from "./types/enums";
// Export sub-modules:
import * as tree from "./tree";
import * as types from "./types";
export {
tree,
types,
};
import { Provider } from "./provider";
pulumi.runtime.registerResourcePackage("plant", {
version: utilities.getVersion(),
constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
if (type !== "pulumi:providers:plant") {
throw new Error(`unknown provider type ${type}`);
}
return new Provider(name, <any>undefined, { urn });
},
});