feat: 添加模块引入方式
Showing
package-lock.json
0 → 100644
This source diff could not be displayed because it is too large. You can view the blob instead.
{ | { | ||
"name": "@tuia/ipc", | "name": "@tuia/ipc", | ||
"version": "0.0.1", | "version": "0.0.1", | ||
"description": "推啊IPC备案号获取", | "description": "推啊IPC备案号获取", | ||
"main": "libs/tuiaIPC.js", | "main": "libs/tuiaIPC.js", | ||
"module": "libs/tuiaIPC.module.js", | "module": "libs/tuiaIPC.module.js", | ||
"author": "ltt", | "author": "ltt", | ||
"license": "MIT", | "license": "MIT", | ||
"scripts": { | "scripts": { | ||
"watch": "rollup -c -w", | "watch": "rollup -c -w", | ||
"build": "npm run clean && cross-env NODE_ENV=prod && rollup -c", | "build": "npm run clean && cross-env NODE_ENV=prod && rollup -c", | ||
"build:debug": "npm run clean && cross-env NODE_ENV=dev rollup -c", | "build:debug": "npm run clean && cross-env NODE_ENV=dev rollup -c", | ||
"clean": "rm -rf ./dist", | "clean": "rm -rf ./dist", | ||
"test:in_html": "npm run watch & concurrently \"http-server -a localhost -p 1234\" \"open http://localhost:1234/example/inHTML/index.html\"" | "test:in_html": "npm run watch & concurrently \"http-server -a localhost -p 1234\" \"open http://localhost:1234/example/inHTML/index.html\"", | ||
}, | "test:in_module": "webpack -s" | ||
"typescript": ">=4.0", | }, | ||
"files": [ | "typescript": ">=4.0", | ||
"dist" | "files": [ | ||
], | "dist" | ||
"devDependencies": { | ], | ||
"@babel/core": "^7.12.9", | "devDependencies": { | ||
"@babel/plugin-proposal-class-properties": "^7.12.1", | "@babel/core": "^7.12.9", | ||
"@babel/plugin-transform-runtime": "^7.12.1", | "@babel/plugin-proposal-class-properties": "^7.12.1", | ||
"@babel/preset-env": "^7.12.1", | "@babel/plugin-transform-runtime": "^7.12.1", | ||
"@babel/preset-typescript": "^7.12.7", | "@babel/preset-env": "^7.12.1", | ||
"@commitlint/cli": "^11.0.0", | "@babel/preset-typescript": "^7.12.7", | ||
"@commitlint/config-conventional": "^11.0.0", | "@commitlint/cli": "^11.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | "@commitlint/config-conventional": "^11.0.0", | ||
"@rollup/plugin-node-resolve": "^10.0.0", | "@rollup/plugin-json": "^4.1.0", | ||
"@typescript-eslint/eslint-plugin": "^4.9.0", | "@rollup/plugin-node-resolve": "^10.0.0", | ||
"@typescript-eslint/parser": "^4.9.0", | "@typescript-eslint/eslint-plugin": "^4.9.0", | ||
"babel-eslint": "^10.1.0", | "@typescript-eslint/parser": "^4.9.0", | ||
"chalk": "^4.1.0", | "babel-eslint": "^10.1.0", | ||
"concurrently": "^5.3.0", | "chalk": "^4.1.0", | ||
"cross-env": "^7.0.3", | "concurrently": "^5.3.0", | ||
"eslint": "^7.15.0", | "cross-env": "^7.0.3", | ||
"eslint-config-prettier": "^7.0.0", | "eslint": "^7.15.0", | ||
"eslint-plugin-prettier": "^3.2.0", | "eslint-config-prettier": "^7.0.0", | ||
"http-server": "^0.12.3", | "eslint-plugin-prettier": "^3.2.0", | ||
"husky": "^4.3.4", | "html-webpack-plugin": "^4.5.1", | ||
"lint-staged": "^10.5.3", | "http-server": "^0.12.3", | ||
"prettier": "^2.2.1", | "husky": "^4.3.4", | ||
"rollup": "^2.33.2", | "lint-staged": "^10.5.3", | ||
"rollup-plugin-babel": "^4.4.0", | "prettier": "^2.2.1", | ||
"rollup-plugin-commonjs": "^10.1.0", | "rollup": "^2.33.2", | ||
"rollup-plugin-terser": "^7.0.2", | "rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-typescript2": "^0.29.0", | "rollup-plugin-commonjs": "^10.1.0", | ||
"standard-version": "^9.0.0", | "rollup-plugin-terser": "^7.0.2", | ||
"tslib": "^2.0.3", | "rollup-plugin-typescript2": "^0.29.0", | ||
"tuia-auto-upload": "^2.0.19", | "standard-version": "^9.0.0", | ||
"typescript": "^4.1.2" | "tslib": "^2.0.3", | ||
}, | "tuia-auto-upload": "^2.0.19", | ||
"husky": { | "typescript": "^4.1.2", | ||
"hooks": { | "webpack": "^5.18.0", | ||
"pre-commit": "lint-staged", | "webpack-cli": "^4.4.0", | ||
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS" | "webpack-dev-server": "^3.11.2" | ||
} | }, | ||
}, | "husky": { | ||
"lint-staged": { | "hooks": { | ||
"*.{.ts,.tsx}": [ | "pre-commit": "lint-staged", | ||
"prettier --write", | "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS" | ||
"eslint --fix", | |||
"git add" | |||
] | |||
} | } | ||
}, | |||
"lint-staged": { | |||
"*.{.ts,.tsx}": [ | |||
"prettier --write", | |||
"eslint --fix", | |||
"git add" | |||
] | |||
} | |||
} | } |
This source diff could not be displayed because it is too large. You can view the blob instead.
Please register or sign in to comment