Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

distribute ECMAScript module #26

Merged
merged 2 commits into from Apr 24, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -13,5 +13,8 @@ lerna-debug.log
# build output
dist/

# esm output
module/

# test output
coverage/
4 changes: 3 additions & 1 deletion .vscode/settings.json
Expand Up @@ -55,6 +55,8 @@
"serializable",
"truthy",
"uniqys",
"validators"
"validators",
"unpkg",
"jsdelivr"
]
}
16,929 changes: 13,838 additions & 3,091 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions packages/easy-client/package.json
Expand Up @@ -10,12 +10,18 @@
},
"files": [
"/dist",
"/lib"
"/lib",
"/module"
],
"main": "./dist/index.js",
"module": "./module/index.js",
"types": "./dist/index.d.ts",
"unpkg": "./lib/easy.js",
"jsdelivr": "./lib/easy.js",
"scripts": {
"build": "run-p build:*",
"build:tcs": "tsc -p tsconfig.build.json",
"build:tsc-cjs": "tsc -p tsconfig.build.json",
"build:tsc-esm": "tsc -p tsconfig.module.json",
"build:webpack": "webpack",
"lint": "tslint -c tslint.json -p tsconfig.json",
"test": "run-s test:build test:lint",
Expand Down
9 changes: 9 additions & 0 deletions packages/easy-client/tsconfig.module.json
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"target": "es5",
"module": "esnext",
"outDir": "./module",
"declaration": false,
}
}
9 changes: 7 additions & 2 deletions packages/easy-types/package.json
Expand Up @@ -9,11 +9,16 @@
"access": "public"
},
"files": [
"/dist"
"/dist",
"/module"
],
"main": "./dist/index.js",
"module": "./module/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.build.json",
"build": "run-p build:*",
"build:tsc-cjs": "tsc -p tsconfig.build.json",
"build:tsc-esm": "tsc -p tsconfig.module.json",
"lint": "tslint -c tslint.json -p tsconfig.json",
"test": "run-s test:build test:lint test:jest",
"test:build": "tsc -p tsconfig.json --noEmit",
Expand Down
9 changes: 9 additions & 0 deletions packages/easy-types/tsconfig.module.json
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"target": "es5",
"module": "esnext",
"outDir": "./module",
"declaration": false,
}
}
9 changes: 7 additions & 2 deletions packages/serialize/package.json
Expand Up @@ -9,11 +9,16 @@
"access": "public"
},
"files": [
"/dist"
"/dist",
"/module"
],
"main": "./dist/index.js",
"module": "./module/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.build.json",
"build": "run-p build:*",
"build:tsc-cjs": "tsc -p tsconfig.build.json",
"build:tsc-esm": "tsc -p tsconfig.module.json",
"lint": "tslint -c tslint.json -p tsconfig.json",
"test": "run-s test:lint test:build test:jest",
"test:build": "tsc -p tsconfig.json --noEmit",
Expand Down
9 changes: 9 additions & 0 deletions packages/serialize/tsconfig.module.json
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"target": "es5",
"module": "esnext",
"outDir": "./module",
"declaration": false,
}
}
9 changes: 7 additions & 2 deletions packages/signature/package.json
Expand Up @@ -9,11 +9,16 @@
"access": "public"
},
"files": [
"/dist"
"/dist",
"/module"
],
"main": "./dist/index.js",
"module": "./module/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.build.json",
"build": "run-p build:*",
"build:tsc-cjs": "tsc -p tsconfig.build.json",
"build:tsc-esm": "tsc -p tsconfig.module.json",
"lint": "tslint -c tslint.json -p tsconfig.json",
"test": "run-s test:build test:lint test:jest",
"test:build": "tsc -p tsconfig.json --noEmit",
Expand Down
9 changes: 9 additions & 0 deletions packages/signature/tsconfig.module.json
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"target": "es5",
"module": "esnext",
"outDir": "./module",
"declaration": false,
}
}
9 changes: 7 additions & 2 deletions packages/types/package.json
Expand Up @@ -9,11 +9,16 @@
"access": "public"
},
"files": [
"/dist"
"/dist",
"/module"
],
"main": "./dist/index.js",
"module": "./module/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.build.json",
"build": "run-p build:*",
"build:tsc-cjs": "tsc -p tsconfig.build.json",
"build:tsc-esm": "tsc -p tsconfig.module.json",
"lint": "tslint -c tslint.json -p tsconfig.json",
"test": "run-s test:lint test:build test:jest",
"test:build": "tsc -p tsconfig.json --noEmit",
Expand Down
9 changes: 9 additions & 0 deletions packages/types/tsconfig.module.json
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"target": "es5",
"module": "esnext",
"outDir": "./module",
"declaration": false,
}
}