mirror of
https://github.com/actions/configure-pages.git
synced 2026-03-31 02:24:52 +00:00
fix compling error
This commit is contained in:
7733
dist/index.js
vendored
7733
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
|||||||
import * as fs from "fs";
|
const fs = require("fs")
|
||||||
import * as espree from "espree";
|
const espree = require("espree")
|
||||||
import format from "string-format"
|
const format = require("string-format")
|
||||||
|
|
||||||
// Parse the AST
|
// Parse the AST
|
||||||
const espreeOptions = {
|
const espreeOptions = {
|
||||||
@@ -9,8 +9,7 @@ const espreeOptions = {
|
|||||||
range: true,
|
range: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class ConfigParser {
|
class ConfigParser {
|
||||||
|
|
||||||
constructor(staticSiteConfig) {
|
constructor(staticSiteConfig) {
|
||||||
this.staticSiteConfig = staticSiteConfig
|
this.staticSiteConfig = staticSiteConfig
|
||||||
this.config = fs.existsSync(this.staticSiteConfig.filePath) ? fs.readFileSync(this.staticSiteConfig.filePath, "utf8") : null
|
this.config = fs.existsSync(this.staticSiteConfig.filePath) ? fs.readFileSync(this.staticSiteConfig.filePath, "utf8") : null
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const core = require('@actions/core')
|
const core = require('@actions/core')
|
||||||
const axios = require('axios')
|
const axios = require('axios')
|
||||||
import ConfigParser from './config-parser.js'
|
const ConfigParser = require('./config-parser')
|
||||||
|
|
||||||
async function setPagesPath({staticSiteGenerator, baseUrl}) {
|
async function setPagesPath({staticSiteGenerator, baseUrl}) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user