Skip to content

Commit

Permalink
chore: modify dash.js -> dash.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 30, 2022
1 parent 538ca02 commit cb7539d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions build/dash.js → build/dash.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
const fs = require('fs-extra');
const { resolve: pathResolve, join: pathJoin } = require('path');
const sqlite3 = require('sqlite3');
const archiver = require('archiver');
const pkg = require('../package.json');
import fs from 'fs-extra';
import path from 'path';
import { resolve as pathResolve, join as pathJoin } from 'path';
import sqlite3 from 'sqlite3';
import archiver from 'archiver';
import {fileURLToPath} from 'url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const pkg = fs.readJSONSync(pathResolve(__dirname, '../package.json'));

const DATA_DIR = pathResolve(__dirname, '../assets/');
const INDEX_JSON_PATH = pathResolve(__dirname, '../dist/data.json');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"start": "npm run build",
"build": "node build/build.mjs",
"dash": "npm run build && node build/dash.js"
"dash": "npm run build && node build/dash.mjs"
},
"files": [
"command",
Expand Down

0 comments on commit cb7539d

Please sign in to comment.