pulumi/sdk/nodejs/tsconfig.json
Matt Ellis 5eb78af779 Do not lazy initialize config or settings
The pulumi runtime used to lazily load and parse both config and
settings data set by the language host. The initial reason for this
design was that we wanted the runtime to be usable in a normal node
environment, but we have moved away from supporting that.

In addition, while we claimed we loaded these value "lazily", we
actually forced their loading quite eagerly when we started
up. However, when capturing config (or settings, as we now do), we
would capture all the logic about loading these values from the
environment.

Even worse, in the case where you had two copies of @pulumi/pulumi
loaded, it would be possible to capture a config object which was not
initialized and then at runtime the initialization logic would try to
read PULUMI_CONFIG from the process environment and fail.

So we adopt a new model where configuration and settings are parsed as
we load their containing modules. In addition, to support SxS
scinerios, we continue to use `process.env` as a way to control both
configuration and settings. This means that `run.ts` must now ensure
that these values are present in the environment before either the
config or runtime modules have been loaded.
2018-08-06 15:53:38 -07:00

61 lines
1.5 KiB
JSON

{
"compilerOptions": {
"outDir": "bin",
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"sourceMap": false,
"stripInternal": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true,
"strictNullChecks": true,
},
"files": [
"index.ts",
"config.ts",
"errors.ts",
"metadata.ts",
"resource.ts",
"version.ts",
"asset/index.ts",
"asset/asset.ts",
"asset/archive.ts",
"dynamic/index.ts",
"log/index.ts",
"runtime/index.ts",
"runtime/closure/v8.ts",
"runtime/closure/createClosure.ts",
"runtime/closure/parseFunction.ts",
"runtime/closure/serializeClosure.ts",
"runtime/closure/rewriteSuper.ts",
"runtime/config.ts",
"runtime/debuggable.ts",
"runtime/invoke.ts",
"runtime/resource.ts",
"runtime/rpc.ts",
"runtime/settings.ts",
"runtime/stack.ts",
"cmd/dynamic-provider/index.ts",
"cmd/run/index.ts",
"cmd/run/run.ts",
"tests/config.spec.ts",
"tests/init.spec.ts",
"tests/util.ts",
"tests/runtime/closure.spec.ts",
"tests/runtime/props.spec.ts",
"tests/runtime/langhost/run.spec.ts"
]
}