Skip to content

Commit f5f7233

Browse files
chore: remove unneeded type: module marker (netlify/zip-it-and-ship-it#1488)
* chore: remove unneeded type: module marker * Update tests/main.test.ts Co-authored-by: Eduardo Bouças <[email protected]> --------- Co-authored-by: Eduardo Bouças <[email protected]>
1 parent 550820f commit f5f7233

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/zip-it-and-ship-it/tests/main.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,10 +2634,6 @@ describe('zip-it-and-ship-it', () => {
26342634
for (let index = 1; index <= length; index++) {
26352635
const funcDir = unzippedFunctions[index - 1].unzipPath
26362636

2637-
// Writing a basic package.json with `type: "module"` just so that we can
2638-
// import the functions from the test.
2639-
await writeFile(join(funcDir, 'package.json'), JSON.stringify({ type: 'module' }))
2640-
26412637
const funcFile = join(funcDir, `func${index}.mjs`)
26422638
const func = await importFunctionFile(funcFile)
26432639

@@ -2671,10 +2667,6 @@ describe('zip-it-and-ship-it', () => {
26712667
for (let index = 1; index <= length; index++) {
26722668
const funcDir = unzippedFunctions[index - 1].unzipPath
26732669

2674-
// Writing a basic package.json with `type: "module"` just so that we can
2675-
// import the functions from the test.
2676-
await writeFile(join(funcDir, 'package.json'), JSON.stringify({ type: 'module' }))
2677-
26782670
const funcFile = join(funcDir, `func${index}.mjs`)
26792671
const func = await importFunctionFile(funcFile)
26802672

0 commit comments

Comments
 (0)