update
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartnpm.plugins';
|
||||
import * as plugins from './smartnpm.plugins.js';
|
||||
|
||||
export * from './smartnpm.classes.npmregistry';
|
||||
export * from './smartnpm.classes.npmpackage';
|
||||
export * from './smartnpm.classes.npmregistry.js';
|
||||
export * from './smartnpm.classes.npmpackage.js';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as plugins from './smartnpm.plugins';
|
||||
import { NpmRegistry } from './smartnpm.classes.npmregistry';
|
||||
import { PackageDisttag } from './smartnpm.classes.packagedisttag';
|
||||
import { PackageVersion, IVersionData } from './smartnpm.classes.packageversion';
|
||||
import * as plugins from './smartnpm.plugins.js';
|
||||
import { NpmRegistry } from './smartnpm.classes.npmregistry.js';
|
||||
import { PackageDisttag } from './smartnpm.classes.packagedisttag.js';
|
||||
import { PackageVersion, IVersionData } from './smartnpm.classes.packageversion.js';
|
||||
|
||||
export class NpmPackage {
|
||||
public static async createFromFullMetadataAndVersionData(
|
||||
|
@ -1,12 +1,12 @@
|
||||
import * as plugins from './smartnpm.plugins';
|
||||
import * as paths from './smartnpm.paths';
|
||||
import * as plugins from './smartnpm.plugins.js';
|
||||
import * as paths from './smartnpm.paths.js';
|
||||
|
||||
// interfaces
|
||||
import { ISearchObject } from './smartnpm.interfaces';
|
||||
import { ISearchObject } from './smartnpm.interfaces.js';
|
||||
|
||||
// classes
|
||||
import { NpmPackage } from './smartnpm.classes.npmpackage';
|
||||
import { ICacheDescriptor, RegistryCache } from './smartnpm.classes.registrycache';
|
||||
import { NpmPackage } from './smartnpm.classes.npmpackage.js';
|
||||
import { ICacheDescriptor, RegistryCache } from './smartnpm.classes.registrycache.js';
|
||||
|
||||
export interface INpmRegistryConstructorOptions {
|
||||
npmRegistryUrl?: string;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartnpm.plugins';
|
||||
import * as plugins from './smartnpm.plugins.js';
|
||||
|
||||
export class PackageDisttag {
|
||||
name: string;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartnpm.plugins';
|
||||
import * as plugins from './smartnpm.plugins.js';
|
||||
|
||||
export interface IVersionData {
|
||||
name: string;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { NpmRegistry } from './smartnpm.classes.npmregistry';
|
||||
import * as plugins from './smartnpm.plugins';
|
||||
import { NpmRegistry } from './smartnpm.classes.npmregistry.js';
|
||||
import * as plugins from './smartnpm.plugins.js';
|
||||
|
||||
|
||||
export interface ICacheDescriptor {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartnpm.plugins';
|
||||
import * as plugins from './smartnpm.plugins.js';
|
||||
|
||||
export const packageDir = plugins.path.join(__dirname, '../');
|
||||
export const packageDir = plugins.path.join(plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), '../');
|
||||
export const nogitDir = plugins.path.join(packageDir, '.nogit/');
|
||||
|
@ -8,12 +8,13 @@ import * as consolecolor from '@pushrocks/consolecolor';
|
||||
import * as levelcache from '@pushrocks/levelcache';
|
||||
import * as smartarchive from '@pushrocks/smartarchive';
|
||||
import * as smartfile from '@pushrocks/smartfile';
|
||||
import * as smartpath from '@pushrocks/smartpath';
|
||||
import * as smartpromise from '@pushrocks/smartpromise';
|
||||
import * as smartrequest from '@pushrocks/smartrequest';
|
||||
import * as smartversion from '@pushrocks/smartversion';
|
||||
import * as smarttime from '@pushrocks/smarttime';
|
||||
|
||||
export { consolecolor, levelcache, smartarchive, smartfile, smartpromise, smartrequest, smartversion, smarttime };
|
||||
export { consolecolor, levelcache, smartarchive, smartfile, smartpath, smartpromise, smartrequest, smartversion, smarttime };
|
||||
|
||||
// third party scope
|
||||
import packageJson from 'package-json';
|
||||
|
Reference in New Issue
Block a user