build: Remove bundling (#24)
* build: Remove bundling * Remove webpack bundling step from build * Publish lib directory instead of dist * Remove webpack devDependency * Move p-graph from devDependency to dependency * Change files * build: Make memory-streams a dependency
This commit is contained in:
Родитель
6b0ac734fb
Коммит
e8071db62f
|
@ -1,3 +1,2 @@
|
|||
*
|
||||
!lib/**/*.d.ts
|
||||
!dist/**/*
|
||||
!lib/**/*
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"type": "patch",
|
||||
"comment": "build: Remove bundling",
|
||||
"packageName": "@microsoft/task-scheduler",
|
||||
"email": "olwheele@microsoft.com",
|
||||
"dependentChangeType": "patch",
|
||||
"date": "2020-10-18T17:12:55.072Z"
|
||||
}
|
14
package.json
14
package.json
|
@ -5,10 +5,10 @@
|
|||
"repository": "git@github.com:microsoft/task-scheduler.git",
|
||||
"license": "MIT",
|
||||
"author": "Vincent Bailly <vibailly@tuta.io>",
|
||||
"main": "dist/index.js",
|
||||
"main": "lib/index.js",
|
||||
"typings": "lib/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc && webpack",
|
||||
"build": "tsc",
|
||||
"change": "beachball change",
|
||||
"checkchange": "beachball check",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
@ -32,6 +32,10 @@
|
|||
"git add"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"p-graph": "^1.0.2",
|
||||
"memory-streams": "^0.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^25.1.4",
|
||||
"@types/node": "12.x.x",
|
||||
|
@ -45,13 +49,9 @@
|
|||
"husk": "^0.5.3",
|
||||
"jest": "^25.2.4",
|
||||
"lint-staged": "^10.1.1",
|
||||
"memory-streams": "^0.1.3",
|
||||
"p-graph": "^1.0.2",
|
||||
"prettier": "^2.0.2",
|
||||
"ts-jest": "^25.3.0",
|
||||
"typescript": "^3.8.3",
|
||||
"webpack": "^4.42.1",
|
||||
"webpack-cli": "^3.3.11"
|
||||
"typescript": "^3.8.3"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
target: "node",
|
||||
mode: "production",
|
||||
entry: "./lib/index.js",
|
||||
output: {
|
||||
path: path.resolve(__dirname, "dist"),
|
||||
filename: "index.js",
|
||||
library: "@microsoft/task-scheduler",
|
||||
libraryTarget: "umd",
|
||||
},
|
||||
};
|
1618
yarn.lock
1618
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче