Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6b9553b
remove fs-extra from lspController
Hweinstock Sep 25, 2024
3302caf
update createCert
Hweinstock Sep 25, 2024
55cc95e
createPolicy update
Hweinstock Sep 25, 2024
b29d360
remove more occurences of fs-extra
Hweinstock Sep 26, 2024
9732e0b
remove instances of fs-extra
Hweinstock Sep 27, 2024
43327df
comment out fixbytest temporarily
Hweinstock Sep 30, 2024
8410f1a
replace fs-extra in tests, first part
Hweinstock Sep 30, 2024
e9613f8
add next chunk of migration
Hweinstock Sep 30, 2024
9c9a89c
push techdebt test back a month
Hweinstock Sep 30, 2024
dfb4889
migrate next chunk of files
Hweinstock Sep 30, 2024
4213161
finish replacements
Hweinstock Sep 30, 2024
aab051e
move to our fs module
Hweinstock Sep 30, 2024
e9e7760
fix half-baked implementation
Hweinstock Sep 30, 2024
4e9d959
Merge branch 'removeFsExtra' into removeFsExtra2
Hweinstock Sep 30, 2024
c8e3efa
move over realpath usage
Hweinstock Sep 30, 2024
355fcaa
merge in upstream changes
Hweinstock Oct 2, 2024
f3cf8a1
remove fs2 references
Hweinstock Oct 2, 2024
405c126
move buffer.from to match variable name
Hweinstock Oct 2, 2024
bd5597a
add recursive options
Hweinstock Oct 2, 2024
402f916
add flags to make deletions recursive
Hweinstock Oct 2, 2024
3e616f0
add force to silence ci fs errors
Hweinstock Oct 2, 2024
5d6b5f7
add recursive option
Hweinstock Oct 2, 2024
5e2331d
Merge branch 'master' into removeFsExtra2
Hweinstock Oct 3, 2024
645229b
add async safe doesThrow
Hweinstock Oct 3, 2024
3a96dc5
merge in master
Hweinstock Oct 3, 2024
40ac03c
merge in master
Hweinstock Oct 4, 2024
3a41c8a
add line rule and exceptions
Hweinstock Oct 4, 2024
d56472a
merge in master
Hweinstock Oct 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,15 @@ module.exports = {
"Avoid importing from the core lib's dist/ folders; please use directly from the core lib defined exports.",
},
],
// The following will place an error on the `fs-extra` import since we do not want it to be used for browser compatibility reasons.
paths: [
{
name: 'fs-extra',
message:
'Avoid fs-extra, use shared/fs/fs.ts. Notify the Toolkit team if your required functionality is not available.',
},
],
},
// The following will place an error on the `fs-extra` import since we do not want it to be used for browser compatibility reasons.
// {
// name: 'fs-extra',
// message:
// 'Avoid fs-extra, use shared/fs/fs.ts. Notify the Toolkit team if your required functionality is not available.',
// },
],
},
}
1 change: 1 addition & 0 deletions packages/amazonq/scripts/build/copyFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

/* eslint-disable no-restricted-imports */
import * as fs from 'fs-extra'
import * as path from 'path'

Expand Down
1 change: 1 addition & 0 deletions packages/core/scripts/build/copyFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

/* eslint-disable no-restricted-imports */
import * as fs from 'fs-extra'
import * as path from 'path'

Expand Down
1 change: 1 addition & 0 deletions packages/core/scripts/build/generateServiceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

/* eslint-disable no-restricted-imports */
import * as proc from 'child_process'
import * as fs from 'fs-extra'
import * as path from 'path'
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/test/lambda/local/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { writeFile } from 'fs-extra'
import { EOL } from 'os'
import * as CloudFormation from '../../../shared/cloudformation/cloudformation'
import { fs } from '../../../shared'

export async function saveTemplate(templatePath: string, runtime: string, ...functionNames: string[]) {
const functionResources = functionNames
Expand Down Expand Up @@ -57,5 +57,5 @@ Outputs:
Value: !GetAtt HelloWorldFunctionRole.Arn
`

await writeFile(templatePath, templateContent, 'utf8')
await fs.writeFile(templatePath, templateContent)
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { writeFile } from 'fs-extra'

import { fs } from '../../../shared'
import * as CloudFormation from '../../../shared/cloudformation/cloudformation'

export function createBaseTemplate(): CloudFormation.Template {
Expand Down Expand Up @@ -67,7 +66,7 @@ export function createBaseImageResource(): CloudFormation.Resource {
}

export async function strToYamlFile(str: string, file: string): Promise<void> {
await writeFile(file, str, 'utf8')
await fs.writeFile(file, str)
}

export function makeSampleSamTemplateYaml(
Expand Down
1 change: 1 addition & 0 deletions packages/toolkit/scripts/build/copyFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

/* eslint-disable no-restricted-imports */
import * as fs from 'fs-extra'
import * as path from 'path'

Expand Down
Loading