Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Commit f80d70f

Browse files
committed
Update deps, convert to ESM
1 parent dae014a commit f80d70f

22 files changed

Lines changed: 8925 additions & 11533 deletions

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env node
22

3-
require('../core/index')
3+
import '../core/index.js'

core/command/__tests__/archive.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { handler: archive, messages } = require('../archive')
1+
import { handler as archive, messages } from '../archive.js'
22

33
it('Must be function', () => {
44
expect(typeof archive).toBe('function')

core/command/__tests__/bundle.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { handler: bundle, messages } = require('../bundle')
1+
import { handler as bundle, messages } from '../bundle.js'
22

33
it('Must be function', () => {
44
expect(typeof bundle).toBe('function')

core/command/__tests__/create.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { handler: create, messages } = require('../create')
1+
import { handler as create, messages } from '../create.js'
22

33
it('Must be function', () => {
44
expect(typeof create).toBe('function')

core/command/__tests__/pdf.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { handler: pdf, messages } = require('../pdf')
1+
import { handler as pdf, messages } from '../pdf.js'
22

33
it('Must be function', () => {
44
expect(typeof pdf).toBe('function')

core/command/__tests__/publish.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { handler: publish, messages } = require('../publish')
1+
import { handler as publish, messages } from '../publish.js'
22

33
it('Must be function', () => {
44
expect(typeof publish).toBe('function')

core/command/__tests__/serve.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { handler: serve } = require('../serve')
1+
import { handler as serve } from '../serve.js'
22

33
it('Must be function', () => {
44
expect(typeof serve).toBe('function')

core/command/archive.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const vfs = require('vinyl-fs')
2-
const zip = require('gulp-zip')
3-
const chalk = require('chalk')
1+
import vfs from 'vinyl-fs'
2+
import zip from 'gulp-zip'
3+
import chalk from 'chalk'
44

5-
const { loadPresentationFiles } = require('../lib/presentation')
5+
import { loadPresentationFiles } from '../lib/presentation.js'
66

77
function handler ({ output, files }) {
88
const stream = loadPresentationFiles(files)
@@ -41,4 +41,4 @@ function messages ({ output }) {
4141
}
4242
}
4343

44-
module.exports = { handler, builder, messages }
44+
export { handler, builder, messages }

0 commit comments

Comments
 (0)