From 1e6abcfca087885e0253351b1704b5fda25c7aaf Mon Sep 17 00:00:00 2001 From: ecmel Date: Fri, 24 Mar 2023 11:19:26 +0300 Subject: [PATCH] added prepack --- package-lock.json | 32 ++++++++++++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index d089afe..ab6d19e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,10 +12,27 @@ "@rollup/plugin-terser": "^0.4.0", "@rollup/plugin-typescript": "^11.0.0", "prettier": "^2.8.4", + "prettier-plugin-ejs": "file:../prettier-plugin-ejs", "rollup": "^3.19.1", "tslib": "^2.5.0" } }, + "../prettier-plugin-ejs": { + "version": "0.0.1", + "dev": true, + "license": "MIT", + "devDependencies": { + "@rollup/plugin-terser": "^0.4.0", + "@rollup/plugin-typescript": "^11.0.0", + "@types/prettier": "^2.7.2", + "prettier": "^2.8.6", + "rollup": "^3.19.1", + "tslib": "^2.5.0" + }, + "peerDependencies": { + "prettier": "^2.8.6" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", @@ -257,6 +274,10 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/prettier-plugin-ejs": { + "resolved": "../prettier-plugin-ejs", + "link": true + }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -565,6 +586,17 @@ "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==", "dev": true }, + "prettier-plugin-ejs": { + "version": "file:../prettier-plugin-ejs", + "requires": { + "@rollup/plugin-terser": "^0.4.0", + "@rollup/plugin-typescript": "^11.0.0", + "@types/prettier": "^2.7.2", + "prettier": "^2.8.6", + "rollup": "^3.19.1", + "tslib": "^2.5.0" + } + }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", diff --git a/package.json b/package.json index 56a1239..76573b5 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "scripts": { "clean": "git clean -Xdf", "format": "prettier --ignore-path .gitignore --write .", - "build": "rollup -c" + "build": "rollup -c", + "prepack": "npm run clean && npm install && npm run build" }, "devDependencies": { "@rollup/plugin-terser": "^0.4.0",