Skip to content

Commit

Permalink
fix: adjust boostrap preset
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Jun 20, 2022
1 parent 325f4cc commit 8cf63c9
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions src/commands/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,39 @@ import { createCommand } from "../command";

/** The default bob fields that should be within a package.json */
const presetFields = {
main: "index.js",
module: "index.mjs",
typings: "index.d.ts",
main: "dist/index.js",
module: "dist/index.mjs",
typings: "dist/index.d.ts",
typescript: {
definition: "index.d.ts",
definition: "dist/index.d.ts",
},
exports: {
".": {
require: {
default: "./index.js",
types: "./index.d.ts",
default: "./dist/index.js",
types: "./dist/index.d.ts",
},
import: {
default: "./index.mjs",
types: "./index.d.ts",
default: "./dist/index.mjs",
types: "./dist/index.d.ts",
},
},
"./*": {
require: {
default: "./*.js",
types: "./*.d.ts",
default: "./dist/*.js",
types: "./dist/*.d.ts",
},
import: {
default: "./*.mjs",
types: "./*.d.ts",
default: "./dist/*.mjs",
types: "./dist/*.d.ts",
},
},
"./package.json": "./package.json",
},
publishConfig: {
directory: "dist",
access: "public",
},
};

export const bootstrapCommand = createCommand<{}, {}>((api) => {
Expand Down

0 comments on commit 8cf63c9

Please sign in to comment.