mirror of
https://github.com/actions/configure-pages.git
synced 2026-03-30 10:04: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";
|
||||
import * as espree from "espree";
|
||||
import format from "string-format"
|
||||
const fs = require("fs")
|
||||
const espree = require("espree")
|
||||
const format = require("string-format")
|
||||
|
||||
// Parse the AST
|
||||
const espreeOptions = {
|
||||
@@ -9,8 +9,7 @@ const espreeOptions = {
|
||||
range: true,
|
||||
}
|
||||
|
||||
export default class ConfigParser {
|
||||
|
||||
class ConfigParser {
|
||||
constructor(staticSiteConfig) {
|
||||
this.staticSiteConfig = staticSiteConfig
|
||||
this.config = fs.existsSync(this.staticSiteConfig.filePath) ? fs.readFileSync(this.staticSiteConfig.filePath, "utf8") : null
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const core = require('@actions/core')
|
||||
const axios = require('axios')
|
||||
import ConfigParser from './config-parser.js'
|
||||
const ConfigParser = require('./config-parser')
|
||||
|
||||
async function setPagesPath({staticSiteGenerator, baseUrl}) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user