pulumi/pkg/codegen/nodejs
Julien P e7a1d75f05
Sort depdencies in GenerateProject (#16341)
# Description

This helps avoiding flakiness in tests using snapshots.

```
=== FAIL: . TestLanguage/forceTsc=true-/l2-failed-create-continue-on-error (54.39s)
    language_test.go:242: program snapshot validation failed:
        expected file package.json does not match actual file:
        
        --- expected
        +++ actual
        @@ -6,7 +6,7 @@
         	"dependencies": ***
         		"typescript": "^4.0.0",
         		"@pulumi/pulumi": "ROOT/artifacts/pulumi-pulumi-CORE.VERSION.tgz",
        -		"@pulumi/fail_on_create": "ROOT/artifacts/pulumi-fail_on_create-4.0.0.tgz",
        -		"@pulumi/simple": "ROOT/artifacts/pulumi-simple-2.0.0.tgz"
        +		"@pulumi/simple": "ROOT/artifacts/pulumi-simple-2.0.0.tgz",
        +		"@pulumi/fail_on_create": "ROOT/artifacts/pulumi-fail_on_create-4.0.0.tgz"
```

Fixes https://github.com/pulumi/pulumi/issues/16340

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [x] I have formatted my code using `gofumpt`

---------

Co-authored-by: Fraser Waters <fraser@pulumi.com>
2024-06-07 08:57:46 +00:00
..
gen_program_test Use `assert.NoError` rather than `assert.Nil` (#14233) 2023-10-13 09:46:07 +00:00
tstypes turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00
doc.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
doc_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
gen.go Use the local artifacts, not released artifacts in conformance tests (#15777) 2024-03-26 13:10:34 +00:00
gen_fileinfo.go [codegen/node] Implement support for lazy-loaded Node modules (#10538) 2022-09-01 18:42:44 -04:00
gen_intrinsics.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
gen_lazyloads.go pkg/codegen/nodejs: Prefer contract.Assertf over Assert 2023-03-01 13:22:32 -08:00
gen_lazyloads_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
gen_program.go Sort depdencies in GenerateProject (#16341) 2024-06-07 08:57:46 +00:00
gen_program_expressions.go Add StackReference conformance test (#15935) 2024-04-16 11:13:25 +00:00
gen_program_lower.go Fixes parseProxyApply to handle nested outputs within index expressions 2023-08-07 21:08:54 +02:00
gen_program_test.go Run conformance tests with and without ts-node (#15809) 2024-03-28 15:44:25 +00:00
gen_program_utils.go [program-gen] Fix generated utility functions for filebase64, filebase64sha256, sha1 and mimeType (#14857) 2023-12-15 11:26:00 +00:00
gen_test.go Use the local artifacts, not released artifacts in conformance tests (#15777) 2024-03-26 13:10:34 +00:00
importer.go Remove 'pluginVersion' and 'pluginName' from nodejs schema options. 2023-08-08 12:19:06 +01:00
test.go use yarn less in nodejs codegen tests (#15886) 2024-04-09 16:56:05 +00:00
utilities.go pkg/codegen/nodejs: Prefer contract.Assertf over Assert 2023-03-01 13:22:32 -08:00
utilities.ts Support returning plain values from methods (#13592) 2023-11-18 06:02:06 +00:00
utilities_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00