Skip to content

Commit

Permalink
Consolidate to single package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
schnerd committed Dec 7, 2019
1 parent 8f5fd04 commit df4e9f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 2 additions & 1 deletion packages/react-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"kamijin_fanta <kamijin@live.jp>"
],
"license": "MIT",
"main": "lib",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./lib/esm/index.d.ts",
"sideEffects": false,
"repository": {
Expand Down
7 changes: 3 additions & 4 deletions packages/react-icons/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ async function dirInit() {

await write(
[icon.id, "index.js"],
"// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\n"
"// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../').GenIcon\n"
);
await write(
[icon.id, "index.esm.js"],
"// THIS FILE IS AUTO GENERATED\nimport { GenIcon } from '../lib';\n"
"// THIS FILE IS AUTO GENERATED\nimport { GenIcon } from '../';\n"
);
await write(
[icon.id, "index.d.ts"],
"import { IconTree, IconType } from '../lib'\n// THIS FILE IS AUTO GENERATED\n"
"import { IconTree, IconType } from '../'\n// THIS FILE IS AUTO GENERATED\n"
);
await write(
[icon.id, "package.json"],
Expand Down Expand Up @@ -229,7 +229,6 @@ async function writeIconsManifest() {
"src/iconsManifest.d.ts",
path.resolve(LIB, "cjs", "iconsManifest.d.ts")
);
await copyFile("src/package.json", path.resolve(LIB, "package.json"));
}

async function writeLicense() {
Expand Down
4 changes: 0 additions & 4 deletions packages/react-icons/src/package.json

This file was deleted.

0 comments on commit df4e9f2

Please sign in to comment.