deploy-website
Advanced tools
Comparing version 0.0.2 to 0.0.3
#!/usr/bin/env node | ||
export {}; |
@@ -26,11 +26,8 @@ #!/usr/bin/env node | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const GH = __importStar(require("./services/github")); | ||
const AWS = __importStar(require("./services/aws")); | ||
const path_1 = __importDefault(require("path")); | ||
const path_1 = require("path"); | ||
const github = async (directory) => { | ||
const basePath = path_1.default.resolve(process.cwd(), directory); | ||
const basePath = (0, path_1.resolve)(process.cwd(), directory); | ||
await GH.publish(basePath); | ||
@@ -42,3 +39,3 @@ }; | ||
AWS.readFile(p, data => { | ||
const Key = p.replace(path_1.default.resolve(directory) + '/', ''); | ||
const Key = p.replace((0, path_1.resolve)(directory) + '/', ''); | ||
AWS.upload(Key, data); | ||
@@ -55,2 +52,3 @@ }); | ||
const invalidate = (args[2] || 'false') === 'true'; | ||
console.log('DEPLOY:', JSON.stringify({ service, directory, invalidate })); | ||
const main = async () => { | ||
@@ -57,0 +55,0 @@ if (service === 'gh') { |
@@ -0,0 +0,0 @@ import type { PathLike, StatOptions } from 'fs'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "deploy-website", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Deploy your static website to AWS S3 or GitHub Pages.", | ||
@@ -15,3 +15,4 @@ "main": "lib/index.js", | ||
"build": "tsc", | ||
"prepublishOnly": "npm run build", | ||
"prepublishOnly": "npm run build && npm install", | ||
"preReleaseHook": "prepublishOnly", | ||
"publish": "npx publish-cli" | ||
@@ -18,0 +19,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32889
884