Skip to content

Commit

Permalink
fix: packing
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Jul 6, 2022
1 parent 580f35a commit e4cae9a
Show file tree
Hide file tree
Showing 8 changed files with 1,021 additions and 760 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"preinstall": "npx only-allow pnpm",
"version": "pnpm i --frozen-lockfile=false && git add pnpm-lock.yaml",
"bootstrap": "lerna bootstrap",
"build": "lerna run --stream build",
"test": "lerna run test",
"lerna": "lerna",
"prerelease": "lerna run build --since --include-dependencies --no-private",
Expand Down
6 changes: 3 additions & 3 deletions packages/browser-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"@logto/browser": "^0.2.2"
},
"devDependencies": {
"@parcel/core": "^2.3.2",
"@parcel/transformer-sass": "^2.3.2",
"@parcel/core": "^2.6.2",
"@parcel/transformer-sass": "^2.6.2",
"@silverhand/eslint-config": "^0.14.0",
"@silverhand/eslint-config-react": "^0.14.0",
"buffer": "^6.0.3",
"eslint": "^8.9.0",
"lint-staged": "^13.0.0",
"parcel": "^2.3.2",
"parcel": "^2.6.2",
"postcss": "^8.4.6",
"prettier": "^2.5.1",
"process": "^0.11.10",
Expand Down
15 changes: 12 additions & 3 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"name": "@logto/browser",
"version": "0.2.2",
"source": "./src/index.ts",
"main": "./lib/index.js",
"exports": "./lib/index.js",
"typings": "./lib/index.d.ts",
"exports": {
"require": "./lib/index.js",
"import": "./lib/module.js"
},
"module": "./lib/module.js",
"types": "./lib/index.d.ts",
"files": [
"lib"
],
Expand All @@ -16,7 +21,7 @@
"scripts": {
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"precommit": "lint-staged",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
"build": "rm -rf lib/ && parcel build",
"lint": "eslint --ext .ts src",
"test": "jest",
"test:coverage": "jest --silent --coverage",
Expand All @@ -32,6 +37,9 @@
},
"devDependencies": {
"@jest/types": "^27.5.1",
"@parcel/core": "^2.6.2",
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@silverhand/eslint-config": "^0.14.0",
"@silverhand/ts-config": "^0.14.0",
"@types/jest": "^27.4.0",
Expand All @@ -42,6 +50,7 @@
"jest-location-mock": "^1.0.9",
"jest-matcher-specific-error": "^1.0.0",
"lint-staged": "^13.0.0",
"parcel": "^2.6.2",
"prettier": "^2.3.2",
"text-encoder": "^0.0.4",
"ts-jest": "^27.0.4",
Expand Down
15 changes: 12 additions & 3 deletions packages/js/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"name": "@logto/js",
"version": "0.2.0",
"source": "./src/index.ts",
"main": "./lib/index.js",
"exports": "./lib/index.js",
"typings": "./lib/index.d.ts",
"exports": {
"require": "./lib/index.js",
"import": "./lib/module.js"
},
"module": "./lib/module.js",
"types": "./lib/index.d.ts",
"files": [
"lib"
],
Expand All @@ -16,7 +21,7 @@
"scripts": {
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"precommit": "lint-staged",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
"build": "rm -rf lib/ && parcel build",
"lint": "eslint --ext .ts src",
"test": "jest",
"test:coverage": "jest --silent --env=jsdom && jest --silent --coverage",
Expand All @@ -32,6 +37,9 @@
},
"devDependencies": {
"@jest/types": "^27.5.1",
"@parcel/core": "^2.6.2",
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@peculiar/webcrypto": "^1.1.7",
"@silverhand/eslint-config": "^0.14.0",
"@silverhand/ts-config": "^0.14.0",
Expand All @@ -44,6 +52,7 @@
"lint-staged": "^13.0.0",
"nock": "^13.1.3",
"node-fetch": "^2.6.7",
"parcel": "^2.6.2",
"prettier": "^2.3.2",
"text-encoder": "^0.0.4",
"ts-jest": "^27.0.4",
Expand Down
6 changes: 3 additions & 3 deletions packages/react-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"react-router-dom": "^6.2.2"
},
"devDependencies": {
"@parcel/core": "^2.3.2",
"@parcel/transformer-sass": "^2.3.2",
"@parcel/core": "^2.6.2",
"@parcel/transformer-sass": "^2.6.2",
"@silverhand/eslint-config": "^0.14.0",
"@silverhand/eslint-config-react": "^0.14.0",
"@silverhand/ts-config": "^0.14.0",
Expand All @@ -29,7 +29,7 @@
"@types/react-router-dom": "^5.3.3",
"eslint": "^8.9.0",
"lint-staged": "^13.0.0",
"parcel": "^2.3.2",
"parcel": "^2.6.2",
"postcss": "^8.4.6",
"postcss-modules": "^4.3.0",
"prettier": "^2.5.1",
Expand Down
15 changes: 12 additions & 3 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"name": "@logto/react",
"version": "0.2.2",
"source": "./src/index.ts",
"main": "./lib/index.js",
"exports": "./lib/index.js",
"typings": "./lib/index.d.ts",
"exports": {
"require": "./lib/index.js",
"import": "./lib/module.js"
},
"module": "./lib/module.js",
"types": "./lib/index.d.ts",
"files": [
"lib"
],
Expand All @@ -16,7 +21,7 @@
"scripts": {
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"precommit": "lint-staged",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
"build": "rm -rf lib/ && parcel build",
"lint": "eslint --ext .ts --ext .tsx src",
"test": "jest",
"test:coverage": "jest --silent --coverage",
Expand All @@ -28,6 +33,9 @@
},
"devDependencies": {
"@jest/types": "^27.5.1",
"@parcel/core": "^2.6.2",
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@silverhand/eslint-config": "^0.14.0",
"@silverhand/eslint-config-react": "^0.14.0",
"@silverhand/ts-config": "^0.14.0",
Expand All @@ -38,6 +46,7 @@
"eslint": "^8.9.0",
"jest": "^27.5.1",
"lint-staged": "^13.0.0",
"parcel": "^2.6.2",
"postcss": "^8.4.6",
"prettier": "^2.5.1",
"react": "^17.0.2",
Expand Down
15 changes: 12 additions & 3 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"name": "@logto/vue",
"version": "0.2.2",
"source": "./src/index.ts",
"main": "./lib/index.js",
"exports": "./lib/index.js",
"typings": "./lib/index.d.ts",
"exports": {
"require": "./lib/index.js",
"import": "./lib/module.js"
},
"module": "./lib/module.js",
"types": "./lib/index.d.ts",
"files": [
"lib"
],
Expand All @@ -16,7 +21,7 @@
"scripts": {
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"precommit": "lint-staged",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
"build": "rm -rf lib/ && parcel build",
"lint": "eslint --ext .ts src",
"test": "jest",
"test:coverage": "jest --silent --coverage",
Expand All @@ -27,12 +32,16 @@
},
"devDependencies": {
"@jest/types": "^27.5.1",
"@parcel/core": "^2.6.2",
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@silverhand/eslint-config": "^0.14.0",
"@silverhand/ts-config": "^0.14.0",
"@types/jest": "^27.4.1",
"eslint": "^8.9.0",
"jest": "^27.5.1",
"lint-staged": "^13.0.0",
"parcel": "^2.6.2",
"postcss": "^8.4.6",
"prettier": "^2.5.1",
"stylelint": "^14.8.2",
Expand Down
Loading

0 comments on commit e4cae9a

Please sign in to comment.