18 Commits

Author SHA1 Message Date
9d4de700e1 1.0.27 2023-10-12 01:29:03 +02:00
97a491ab6d fix(core): update 2023-10-12 01:29:03 +02:00
3115d2349e 1.0.26 2023-10-12 01:21:37 +02:00
048c329133 fix(core): update 2023-10-12 01:21:37 +02:00
44a303e710 1.0.25 2023-10-12 01:21:12 +02:00
c5eb97efff fix(core): update 2023-10-12 01:21:12 +02:00
2c4db09ac1 switch to new org scheme 2023-07-11 00:54:01 +02:00
0450388295 switch to new org scheme 2023-07-10 02:56:46 +02:00
01068a7ff0 1.0.24 2021-05-17 15:49:20 +00:00
7320344788 fix(core): update 2021-05-17 15:49:20 +00:00
d82b8a6dbd 1.0.23 2021-05-17 15:47:00 +00:00
40d12bc91e fix(core): update 2021-05-17 15:46:59 +00:00
6477b8a375 1.0.22 2021-05-17 15:45:46 +00:00
4b5b2e7ca5 fix(core): update 2021-05-17 15:45:46 +00:00
83a9cabab8 1.0.21 2020-01-17 16:36:01 +00:00
b046812ff9 fix(core): update 2020-01-17 16:36:00 +00:00
46a1048884 1.0.20 2020-01-17 16:35:39 +00:00
69b6aa38c3 fix(readme): update 2020-01-17 16:35:38 +00:00
20 changed files with 6772 additions and 3385 deletions

View File

@ -0,0 +1,66 @@
name: Default (not tags)
on:
push:
tags-ignore:
- '**'
env:
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
jobs:
security:
runs-on: ubuntu-latest
continue-on-error: true
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Install pnpm and npmci
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
- name: Run npm prepare
run: npmci npm prepare
- name: Audit production dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --prod
continue-on-error: true
- name: Audit development dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --dev
continue-on-error: true
test:
if: ${{ always() }}
needs: security
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Test stable
run: |
npmci node install stable
npmci npm install
npmci npm test
- name: Test build
run: |
npmci node install stable
npmci npm install
npmci npm build

View File

@ -0,0 +1,124 @@
name: Default (tags)
on:
push:
tags:
- '*'
env:
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
jobs:
security:
runs-on: ubuntu-latest
continue-on-error: true
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
npmci npm prepare
- name: Audit production dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --prod
continue-on-error: true
- name: Audit development dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --dev
continue-on-error: true
test:
if: ${{ always() }}
needs: security
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
npmci npm prepare
- name: Test stable
run: |
npmci node install stable
npmci npm install
npmci npm test
- name: Test build
run: |
npmci node install stable
npmci npm install
npmci npm build
release:
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
npmci npm prepare
- name: Release
run: |
npmci node install stable
npmci npm publish
metadata:
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @shipzone/npmci
npmci npm prepare
- name: Code quality
run: |
npmci command npm install -g typescript
npmci npm install
- name: Trigger
run: npmci trigger
- name: Build docs and upload artifacts
run: |
npmci node install stable
npmci npm install
pnpm install -g @git.zone/tsdoc
npmci command tsdoc
continue-on-error: true

4
.gitignore vendored
View File

@ -15,8 +15,6 @@ node_modules/
# builds # builds
dist/ dist/
dist_web/ dist_*/
dist_serve/
dist_ts_web/
# custom # custom

View File

@ -1,126 +0,0 @@
# gitzone ci_default
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
cache:
paths:
- .npmci_cache/
key: '$CI_BUILD_STAGE'
stages:
- security
- test
- release
- metadata
# ====================
# security stage
# ====================
mirror:
stage: security
script:
- npmci git mirror
tags:
- lossless
- docker
- notpriv
snyk:
image: registry.gitlab.com/hosttoday/ht-docker-node:snyk
stage: security
script:
- npmci npm prepare
- npmci command npm install --ignore-scripts
- npmci command snyk test
tags:
- lossless
- docker
- notpriv
# ====================
# test stage
# ====================
testStable:
stage: test
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- lossless
- docker
- priv
testBuild:
stage: test
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- lossless
- docker
- notpriv
release:
stage: release
script:
- npmci node install stable
- npmci npm publish
only:
- tags
tags:
- lossless
- docker
- notpriv
# ====================
# metadata stage
# ====================
codequality:
stage: metadata
allow_failure: true
script:
- npmci command npm install -g tslint typescript
- npmci npm prepare
- npmci npm install
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
tags:
- lossless
- docker
- priv
trigger:
stage: metadata
script:
- npmci trigger
only:
- tags
tags:
- lossless
- docker
- notpriv
pages:
stage: metadata
script:
- npmci node install lts
- npmci command npm install -g @gitzone/tsdoc
- npmci npm prepare
- npmci npm install
- npmci command tsdoc
tags:
- lossless
- docker
- notpriv
only:
- tags
artifacts:
expire_in: 1 week
paths:
- public
allow_failure: true

11
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "npm test",
"name": "Run npm test",
"request": "launch",
"type": "node-terminal"
}
]
}

26
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,26 @@
{
"json.schemas": [
{
"fileMatch": ["/npmextra.json"],
"schema": {
"type": "object",
"properties": {
"npmci": {
"type": "object",
"description": "settings for npmci"
},
"gitzone": {
"type": "object",
"description": "settings for gitzone",
"properties": {
"projectType": {
"type": "string",
"enum": ["website", "element", "service", "npm", "wcc"]
}
}
}
}
}
}
]
}

View File

@ -4,12 +4,13 @@
"npmAccessLevel": "public" "npmAccessLevel": "public"
}, },
"gitzone": { "gitzone": {
"projectType": "npm",
"module": { "module": {
"githost": "gitlab.com", "githost": "gitlab.com",
"gitscope": "pushrocks", "gitscope": "push.rocks",
"gitrepo": "smartlegal", "gitrepo": "smartlegal",
"shortDescription": "go legal programmatically", "description": "go legal programmatically",
"npmPackagename": "@pushrocks/smartlegal", "npmPackagename": "@push.rocks/smartlegal",
"license": "MIT" "license": "MIT"
} }
} }

3104
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +1,18 @@
{ {
"name": "@pushrocks/smartlegal", "name": "@push.rocks/smartlegal",
"version": "1.0.19", "version": "1.0.27",
"private": false, "private": false,
"description": "go legal programmatically", "description": "go legal programmatically",
"main": "dist/index.js", "main": "dist_ts/index.js",
"typings": "dist/index.d.ts", "typings": "dist_ts/index.d.ts",
"scripts": { "scripts": {
"test": "tstest test/", "test": "(tstest test/ --web)",
"build": "tsbuild" "build": "(tsbuild --web)",
"buildDocs": "tsdoc"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+ssh://git@gitlab.com/pkunz/legal.git" "url": "git+ssh://git@gitlab.com/push.rocks/smartlegal.git"
}, },
"keywords": [ "keywords": [
"legal", "legal",
@ -22,35 +23,38 @@
"author": "Lossless GmbH", "author": "Lossless GmbH",
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
"url": "https://gitlab.com/pkunz/legal/issues" "url": "https://gitlab.com/push.rocks/smartlegal/issues"
}, },
"homepage": "https://gitlab.com/pkunz/legal#README", "homepage": "https://gitlab.com/push.rocks/smartlegal#README",
"dependencies": { "dependencies": {
"@pushrocks/smartmarkdown": "^2.0.2", "@push.rocks/smartmarkdown": "^3.0.1",
"@pushrocks/smartmustache": "^2.0.9", "@push.rocks/smartmustache": "^3.0.2",
"@pushrocks/smartpromise": "^3.0.6", "@push.rocks/smartpnpm": "^1.0.6",
"@tsclass/tsclass": "^2.0.13", "@push.rocks/smartpromise": "^4.0.3",
"@umbrellazone/legal-docs": "^1.0.12", "@push.rocks/smartshell": "^3.0.3",
"license-checker": "^25.0.1" "@tsclass/tsclass": "^4.0.43"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.17", "@git.zone/tsbuild": "^2.1.25",
"@gitzone/tsrun": "^1.2.8", "@git.zone/tsrun": "^1.2.12",
"@gitzone/tstest": "^1.0.28", "@git.zone/tstest": "^1.0.54",
"@pushrocks/tapbundle": "^3.2.0", "@push.rocks/tapbundle": "^5.0.15",
"@types/node": "^13.1.7", "@types/node": "^20.8.4"
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",
"ts_web/**/*", "ts_web/**/*",
"dist/**/*", "dist/**/*",
"dist_web/**/*", "dist_*/**/*",
"dist_ts/**/*",
"dist_ts_web/**/*", "dist_ts_web/**/*",
"assets/**/*", "assets/**/*",
"cli.js", "cli.js",
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
] ],
"browserslist": [
"last 1 chrome versions"
],
"type": "module"
} }

6429
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,33 +1,34 @@
# @pushrocks/smartlegal # @push.rocks/smartlegal
go legal programmatically go legal programmatically
## Availabililty and Links ## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/smartlegal) * [npmjs.org (npm package)](https://www.npmjs.com/package/@push.rocks/smartlegal)
* [gitlab.com (source)](https://gitlab.com/pushrocks/smartlegal) * [gitlab.com (source)](https://gitlab.com/push.rocks/smartlegal)
* [github.com (source mirror)](https://github.com/pushrocks/smartlegal) * [github.com (source mirror)](https://github.com/push.rocks/smartlegal)
* [docs (typedoc)](https://pushrocks.gitlab.io/smartlegal/) * [docs (typedoc)](https://push.rocks.gitlab.io/smartlegal/)
## Status for master ## Status for master
[![build status](https://gitlab.com/pushrocks/smartlegal/badges/master/build.svg)](https://gitlab.com/pushrocks/smartlegal/commits/master)
[![coverage report](https://gitlab.com/pushrocks/smartlegal/badges/master/coverage.svg)](https://gitlab.com/pushrocks/smartlegal/commits/master) Status Category | Status Badge
[![npm downloads per month](https://img.shields.io/npm/dm/@pushrocks/smartlegal.svg)](https://www.npmjs.com/package/@pushrocks/smartlegal) -- | --
[![Known Vulnerabilities](https://snyk.io/test/npm/@pushrocks/smartlegal/badge.svg)](https://snyk.io/test/npm/@pushrocks/smartlegal) GitLab Pipelines | [![pipeline status](https://gitlab.com/push.rocks/smartlegal/badges/master/pipeline.svg)](https://lossless.cloud)
[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/push.rocks/smartlegal/badges/master/coverage.svg)](https://lossless.cloud)
[![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) npm | [![npm downloads per month](https://badgen.net/npm/dy/@push.rocks/smartlegal)](https://lossless.cloud)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/) Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/push.rocks/smartlegal)](https://lossless.cloud)
TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud)
node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@push.rocks/smartlegal)](https://lossless.cloud)
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@push.rocks/smartlegal)](https://lossless.cloud)
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@push.rocks/smartlegal)](https://lossless.cloud)
## Usage ## Usage
Use TypeScript for best in class instellisense. Use TypeScript for best in class instellisense.
legal implements classes that are designed to smartlegal implements
For further information read the linked docs at the top of this README. - a license checker for checking dependency trees against a set of licenses
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://umbrellazone.gitlab.io/assets/repo-footer.svg)](https://push.rocks)
## Contribution ## Contribution
@ -35,7 +36,6 @@ We are always happy for code contributions. If you are not the code contributing
For further information read the linked docs at the top of this readme. For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) ## Legal
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)

View File

@ -1,23 +1,17 @@
import { tap, expect } from '@pushrocks/tapbundle'; import { tap, expect } from '@push.rocks/tapbundle';
import * as legal from '../ts/index'; import * as legal from '../ts/index.js';
tap.test('should create instance of licenseChecker', async () => {
const licenseChecker = await legal.createLicenseChecker();
let plainResultArray = await licenseChecker.createPlainResultArray(process.cwd());
expect(plainResultArray).to.be.instanceof(Array);
expect(plainResultArray[0]).to.have.property('license');
});
tap.test('should exclude certain licenses', async () => { tap.test('should exclude certain licenses', async () => {
const licenseChecker = await legal.createLicenseChecker(); const licenseChecker = await legal.createLicenseChecker();
const checkResult = await licenseChecker.excludeLicenseWithinPath(process.cwd(), ['MIT']); const checkResult = await licenseChecker.excludeLicenseWithinPath(process.cwd(), ['MIT']);
expect(checkResult.failingModules.length).to.be.greaterThan(10); expect(checkResult.failingModules.length).toBeGreaterThan(10);
console.log(checkResult);
}); });
tap.test('should include certain licenses', async () => { tap.test('should include certain licenses', async () => {
const licenseChecker = await legal.createLicenseChecker(); const licenseChecker = await legal.createLicenseChecker();
const checkResult = await licenseChecker.includeLicencesWithinPath(process.cwd(), ['MIT']); const checkResult = await licenseChecker.includeLicencesWithinPath(process.cwd(), ['MIT']);
expect(checkResult.failingModules.length).to.be.greaterThan(10); expect(checkResult.failingModules.length).toBeGreaterThan(10);
}); });
tap.start(); tap.start();

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@push.rocks/smartlegal',
version: '1.0.27',
description: 'go legal programmatically'
}

View File

@ -1,7 +1,4 @@
import * as plugins from './legal.plugins';
import { ICompany } from '@tsclass/tsclass';
export const createLicenseChecker = async () => { export const createLicenseChecker = async () => {
const licenseCheckerMod = await import('./mod.licensechecker/classes.licensechecker'); const licenseCheckerMod = await import('./mod.licensechecker/classes.licensechecker.js');
return new licenseCheckerMod.LicenseChecker(); return new licenseCheckerMod.LicenseChecker();
}; };

View File

@ -1,13 +1,8 @@
// sub packages
import * as legalDocs from '@umbrellazone/legal-docs';
export { legalDocs };
// @tsclass // @tsclass
import * as tsclass from '@tsclass/tsclass'; import * as tsclass from '@tsclass/tsclass';
export { tsclass }; export { tsclass };
// @pushrocks // @pushrocks
import * as smartpromise from '@pushrocks/smartpromise'; import * as smartpromise from '@push.rocks/smartpromise';
import * as smartmarkdown from '@pushrocks/smartmarkdown'; import * as smartshell from '@push.rocks/smartshell';
import * as smartmustache from '@pushrocks/smartmustache'; export { smartpromise, smartshell };
export { smartpromise, smartmarkdown, smartmustache };

View File

@ -0,0 +1,14 @@
import * as plugins from './plugins.js';
export class CheckResult {
passingModules: plugins.smartpnpm.IPnpmLicenseResult[] = [];
failingModules: plugins.smartpnpm.IPnpmLicenseResult[] = [];
public addPassing(moduleResultArg: plugins.smartpnpm.IPnpmLicenseResult) {
this.passingModules.push(moduleResultArg);
}
public addFailing(moduleResultArg: plugins.smartpnpm.IPnpmLicenseResult) {
this.failingModules.push(moduleResultArg);
}
}

View File

@ -1,33 +1,13 @@
import * as plugins from '../legal.plugins'; import * as plugins from './plugins.js';
import * as licenseChecker from 'license-checker'; import { CheckResult } from './classes.checkresult.js';
export interface IModuleLicenseResult {
moduleName: string;
license: string;
repository: string;
publisher: string;
email: string;
path: string;
licenseFile: string;
}
export class CheckResult {
passingModules: IModuleLicenseResult[] = [];
failingModules: IModuleLicenseResult[] = [];
addPassing(moduleResultArg: IModuleLicenseResult) {
this.passingModules.push(moduleResultArg);
}
addFailing(moduleResultArg: IModuleLicenseResult) {
this.failingModules.push(moduleResultArg);
}
}
export class LicenseChecker { export class LicenseChecker {
async excludeLicenseWithinPath(pathArg: string, licenseArrayArg: string[]) { async excludeLicenseWithinPath(pathArg: string, licenseArrayArg: string[]) {
const checkResult = new CheckResult(); const checkResult = new CheckResult();
const plainResultArray = await this.createPlainResultArray(pathArg); const pnpm = new plugins.smartpnpm.SmartPnpm(pathArg);
plainResultArray.forEach(licenseResult => { const plainResultArray = await pnpm.getDependencyLicenseFlatArray();
plainResultArray.forEach((licenseResult) => {
if (licenseArrayArg.indexOf(licenseResult.license) === -1) { if (licenseArrayArg.indexOf(licenseResult.license) === -1) {
checkResult.addPassing(licenseResult); checkResult.addPassing(licenseResult);
} else { } else {
@ -39,8 +19,9 @@ export class LicenseChecker {
async includeLicencesWithinPath(pathArg: string, licenseArrayArg: string[]) { async includeLicencesWithinPath(pathArg: string, licenseArrayArg: string[]) {
const checkResult = new CheckResult(); const checkResult = new CheckResult();
const plainResultArray = await this.createPlainResultArray(pathArg); const pnpm = new plugins.smartpnpm.SmartPnpm(pathArg);
plainResultArray.forEach(licenseResult => { const plainResultArray = await pnpm.getDependencyLicenseFlatArray();
plainResultArray.forEach((licenseResult) => {
if (licenseArrayArg.indexOf(licenseResult.license) !== -1) { if (licenseArrayArg.indexOf(licenseResult.license) !== -1) {
checkResult.addPassing(licenseResult); checkResult.addPassing(licenseResult);
} else { } else {
@ -49,39 +30,4 @@ export class LicenseChecker {
}); });
return checkResult; return checkResult;
} }
async createPlainResultArray(pathArg: string) {
const licenseJson = await this.getJsonForPath(pathArg);
const resultArray: IModuleLicenseResult[] = [];
for (let moduleKey in licenseJson) {
const refObject = licenseJson[moduleKey];
resultArray.push({
moduleName: moduleKey,
email: refObject.email,
licenseFile: refObject.licenseFile,
license: refObject.licenses,
path: refObject.path,
publisher: refObject.publisher,
repository: refObject.repository
});
}
return resultArray;
}
private async getJsonForPath(checkPathArg) {
let done = plugins.smartpromise.defer<any>();
licenseChecker.init(
{
start: checkPathArg
},
function(err, licenseJson) {
if (err) {
done.reject(err);
} else {
done.resolve(licenseJson);
}
}
);
return await done.promise;
}
} }

View File

@ -0,0 +1,7 @@
export * from '../legal.plugins.js'
import * as smartpnpm from '@push.rocks/smartpnpm';
export {
smartpnpm,
}

14
tsconfig.json Normal file
View File

@ -0,0 +1,14 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"verbatimModuleSyntax": true
},
"exclude": [
"dist_*/**/*.d.ts"
]
}

View File

@ -1,17 +0,0 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}