Skip to content

Commit

Permalink
fix: package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Mar 10, 2022
1 parent 764f176 commit 8afd534
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/browser-sample/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "browser-sample",
"name": "@logto/browser-sample",
"version": "0.1.0",
"license": "MIT",
"private": true,
Expand Down
12 changes: 8 additions & 4 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
{
"name": "@logto/browser",
"version": "0.1.0",
"main": "lib/index.js",
"main": "./lib/index.js",
"exports": "./lib/index.js",
"typings": "lib/index.d.ts",
"typings": "./lib/index.d.ts",
"files": [
"lib"
],
"license": "MPL-2.0",
"scripts": {
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"preinstall": "npx only-allow pnpm",
"precommit": "lint-staged",
"build": "tsc -p tsconfig.build.json",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
"lint": "eslint --ext .ts src",
"package": "pnpm build && webpack",
"test": "jest",
"test:coverage": "jest --silent --coverage",
"prepublish": "pnpm package",
"report": "WITH_REPORT=true pnpm package"
"report": "WITH_REPORT=true pnpm package",
"prepack": "pnpm test && pnpm build"
},
"dependencies": {
"@logto/js": "^0.1.0",
Expand Down
12 changes: 8 additions & 4 deletions packages/js/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
{
"name": "@logto/js",
"version": "0.1.0",
"main": "lib/index.js",
"main": "./lib/index.js",
"exports": "./lib/index.js",
"typings": "lib/index.d.ts",
"typings": "./lib/index.d.ts",
"files": [
"lib"
],
"license": "MPL-2.0",
"scripts": {
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"preinstall": "npx only-allow pnpm",
"precommit": "lint-staged",
"build": "tsc -p tsconfig.build.json",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
"lint": "eslint --ext .ts src",
"package": "pnpm build && webpack",
"test": "jest",
"test:coverage": "jest --silent --env=jsdom && jest --silent --coverage",
"prepublish": "pnpm package",
"report": "WITH_REPORT=true pnpm package"
"report": "WITH_REPORT=true pnpm package",
"prepack": "pnpm test && pnpm build"
},
"dependencies": {
"@silverhand/essentials": "^1.1.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-sample/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-sample",
"name": "@logto/react-sample",
"version": "0.1.0",
"license": "MIT",
"private": true,
Expand Down
13 changes: 8 additions & 5 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{
"name": "@logto/react",
"version": "0.1.0",
"source": "src/index.ts",
"main": "lib/index.js",
"main": "./lib/index.js",
"exports": "./lib/index.js",
"typings": "lib/index.d.ts",
"typings": "./lib/index.d.ts",
"files": [
"lib"
],
"license": "MPL-2.0",
"scripts": {
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"preinstall": "npx only-allow pnpm",
"precommit": "lint-staged",
"build": "tsc -p tsconfig.build.json",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
"lint": "eslint --ext .ts --ext .tsx src",
"test": "jest",
"test:coverage": "jest --silent --coverage",
"prepublish": "pnpm build",
"report": "WITH_REPORT=true pnpm build"
"report": "WITH_REPORT=true pnpm build",
"prepack": "pnpm test && pnpm build"
},
"dependencies": {
"@logto/browser": "^0.1.0",
Expand Down

0 comments on commit 8afd534

Please sign in to comment.