Skip to content

Commit

Permalink
fix: changed order of import and require
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrees committed Jan 13, 2023
1 parent ac79524 commit 2e341d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions/verify/validations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export function validateModule(packageJson: PackageJson, options: {outDir: strin
".": {
"types": "./${outDir}/index.d.ts",
"source": "./src/index.ts",
"import": "./${outDir}/index.esm.js",
"require": "./${outDir}/index.js",
"import": "./${outDir}/index.esm.js",
"default": "./${outDir}/index.js"
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/npm/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ export async function writePackageJson(data: PackageData, options: InjectOptions
'.': {
...(flags.typescript ? {types: `./${outDir}/index.d.ts`} : {}),
source,
import: `./${outDir}/index.esm.js`,
require: `./${outDir}/index.js`,
import: `./${outDir}/index.esm.js`,
default: `./${outDir}/index.esm.js`,
},
'./package.json': './package.json',
Expand Down

0 comments on commit 2e341d2

Please sign in to comment.