Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TS config to generate .js and .d.ts files #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,5 @@ FakesAssemblies/
*.js
*.map
typings/

dist
2 changes: 0 additions & 2 deletions less-bundle/less-bundle/index.ts

This file was deleted.

4 changes: 1 addition & 3 deletions less-bundle/less-bundle/lib/buildcontents.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/// <reference path="../typings/tsd.d.ts" />

import fs = require('fs');
import fs = require('fs');
import path = require('path');
import Writer = require('./writer');
import globals = require('./globals');
Expand Down
4 changes: 1 addition & 3 deletions less-bundle/less-bundle/lib/compressor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/// <reference path="../typings/tsd.d.ts" />

import fs = require('fs');
import fs = require('fs');
import path = require('path');
import globals = require('./globals');
import buildContents = require('./buildcontents');
Expand Down
4 changes: 1 addition & 3 deletions less-bundle/less-bundle/lib/globals.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/// <reference path="../typings/tsd.d.ts" />

import Writer = require('./writer');
import Writer = require('./writer');
import path = require('path');

export interface IConfig {
Expand Down
2 changes: 2 additions & 0 deletions less-bundle/less-bundle/lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import compress = require("./compressor");
export = compress;
13 changes: 10 additions & 3 deletions less-bundle/less-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@
"type": "git",
"url": "git://github.com/Platypi/less-bundle"
},
"main": "index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"homepage": "https://github.com/Platypi/less-bundle",
"engines": {
"node": ">=0.10.0"
},
"dependencies": { },
"devDependencies": { },
"dependencies": {},
"devDependencies": {
"@types/node": "^14.14.37",
"typescript": "^4.2.3"
},
"bugs": {
"url": "https://github.com/Platypi/less-bundle/issues"
}
Expand Down
8 changes: 8 additions & 0 deletions less-bundle/less-bundle/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"include": ["lib"],
"compilerOptions": {
"declaration": true,
"rootDir": "lib",
"outDir": "dist"
}
}