set up similar to other addons

This commit is contained in:
Labhansh Agrawal
2020-05-01 14:26:03 +05:30
parent dcca79baef
commit fb65cea115
3 changed files with 17 additions and 18 deletions
+4 -4
View File
@@ -6,11 +6,11 @@
!*.js !*.js
!*.json !*.json
# Whitelist - lib/ # Whitelist - out/
!lib/**/*.d.ts !out/**/*.d.ts
!lib/**/*.js !out/**/*.js
!lib/**/*.js.map !out/**/*.js.map
# Whitelist - src/ # Whitelist - src/
!src/**/*.ts !src/**/*.ts
+9 -11
View File
@@ -13,16 +13,14 @@
"engines": { "engines": {
"node": ">8.0.0" "node": ">8.0.0"
}, },
"main": "lib/LigaturesAddon.js", "main": "out/LigaturesAddon.js",
"types": "typings/xterm-addon-ligatures.d.ts", "types": "typings/xterm-addon-ligatures.d.ts",
"scripts": { "scripts": {
"prepare": "node bin/download-fonts.js", "prepare": "node bin/download-fonts.js",
"lint": "tslint --project tsconfig.json --fix", "build": "tsc -p src",
"prebuild": "npm run lint", "watch": "tsc -w -p src",
"build": "tsc",
"watch": "tsc -w",
"pretest": "npm run build", "pretest": "npm run build",
"test": "nyc mocha lib/**/*.test.js", "test": "nyc mocha out/**/*.test.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls", "coveralls": "nyc report --reporter=text-lcov | coveralls",
"prepublish": "npm run build" "prepublish": "npm run build"
}, },
@@ -67,13 +65,13 @@
"json" "json"
], ],
"include": [ "include": [
"lib/**/*.js" "out/**/*.js"
], ],
"exclude": [ "exclude": [
"lib/**/*.test.*", "out/**/*.test.*",
"lib/**/*.integration.*", "out/**/*.integration.*",
"lib/**/*.d.ts", "out/**/*.d.ts",
"lib/**/*.map*" "out/**/*.map*"
] ]
} }
} }
@@ -3,13 +3,14 @@
"target": "es2017", "target": "es2017",
"module": "commonjs", "module": "commonjs",
"sourceMap": true, "sourceMap": true,
"outDir": "lib", "outDir": "../out",
"rootDir": "src", "rootDir": ".",
"strict": true, "strict": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"preserveWatchOutput": true "preserveWatchOutput": true
}, },
"include": [ "include": [
"src" "./**/*",
"../../../typings/xterm.d.ts"
] ]
} }