mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
change to use esm
This commit is contained in:
1 parent
eb231e4056
commit
78966d351f
10 files changed
+47
-17
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@linux-odyssey/constants",
|
||||
"type": "commonjs",
|
||||
"type": "module",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"main": "dist/index.js",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@linux-odyssey/file-graph",
|
||||
"version": "1.0.0",
|
||||
"type": "commonjs",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": "./dist/index.js",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable lines-between-class-members */
|
||||
import { basename } from './utils'
|
||||
import { basename } from './utils.js'
|
||||
|
||||
interface FileObject {
|
||||
path: string
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import File from './file'
|
||||
import File from './file.js'
|
||||
import {
|
||||
DuplicateItemError,
|
||||
ParentNotExistsError,
|
||||
FileNotExistsError,
|
||||
} from './errors'
|
||||
} from './errors.js'
|
||||
import { basename, dirname } from './utils.js'
|
||||
|
||||
export default class FileNode extends File {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export { default as File } from './file'
|
||||
export { default as File } from './file.js'
|
||||
export { default as FileNode } from './fileNode.js'
|
||||
export { default as FileGraph } from './fileGraph.js'
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@linux-odyssey/models",
|
||||
"type": "commonjs",
|
||||
"type": "module",
|
||||
"version": "1.0.0",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "@linux-odyssey/utils",
|
||||
"version": "1.0.0",
|
||||
"main": "dist/index.js",
|
||||
"type": "commonjs",
|
||||
"type": "module",
|
||||
"exports": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"license": "MIT",
|
||||
|
||||
Reference in new issue
Block a user