Skip to content

Commit

Permalink
chore(lib): export lib exports and rename bin -> scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Apr 26, 2023
1 parent 2f8a018 commit 8aac5b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@phosphor-icons/react",
"version": "2.0.8",
"version": "2.0.9",
"description": "A clean and friendly icon family for React",
"author": {
"name": "Tobias Fried",
Expand All @@ -24,6 +24,10 @@
"import": "./dist/icons/*.es.js",
"types": "./dist/icons/*.d.ts"
},
"./dist/lib/*": {
"import": "./dist/lib/*.es.js",
"types": "./dist/lib/*.d.ts"
},
"./*": {
"import": "./dist/icons/*.es.js",
"types": "./dist/icons/*.d.ts"
Expand All @@ -50,9 +54,8 @@
"serve": "vite serve ./example",
"build": "vite build && tsc --emitDeclarationOnly",
"test": "vitest",
"collate": "node bin/collate.js",
"assemble": "node bin/assemble.js",
"format": "prettier --write \"./src/**/*.{js,jsx,ts,tsx,json,vue}\" \"./example/**/*.{js,jsx,ts,tsx,json,vue}\" \"./bin/**/*.{js,jsx,ts,tsx,json,vue}\""
"assemble": "node scripts/assemble.mjs",
"format": "prettier --write \"./src/**/*.{js,jsx,ts,tsx,json,vue}\" \"./example/**/*.{js,jsx,ts,tsx,json,vue}\" \"./scripts/**/*.{mjs, js,jsx,ts,tsx,json,vue}\""
},
"peerDependencies": {
"react": ">= 16.8",
Expand Down
3 changes: 1 addition & 2 deletions bin/assemble.js → scripts/assemble.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from "node:path";
import chalk from "chalk";
import { exec } from "node:child_process";

import { ASSETS_PATH, COMPONENTS_PATH, INDEX_PATH } from "./index.js";
import { ASSETS_PATH, COMPONENTS_PATH, INDEX_PATH } from "./index.mjs";
import { ALIASES } from "../core/bin/index.js";

const icons = {};
Expand Down Expand Up @@ -125,7 +125,6 @@ function generateComponents() {

let componentString = `\
/* GENERATED FILE */
"use client";
import { forwardRef, ReactElement } from "react";
import { IconWeight, Icon, IconBase } from "../lib";
Expand Down
File renamed without changes.

0 comments on commit 8aac5b4

Please sign in to comment.