1
0
Alex Dima 7 жил өмнө
parent
commit
e8e78d99db

+ 2 - 2
.npmignore

@@ -1,10 +1,10 @@
 /.vscode/
-/lib/
 /out/
 /scripts/
 /src/
 /test/
-/release/dev/
+/.gitignore
 /.npmignore
+/package-lock.json
 /webpack.dev.config.js
 /webpack.min.config.js

+ 5 - 5
package.json

@@ -20,11 +20,11 @@
   },
   "devDependencies": {
     "jsonc-parser": "2.0.0-next.1",
-    "monaco-editor-core": "^0.11.1",
-    "monaco-languages": "^0.9.0",
-    "typescript": "^2.7.1",
-    "vscode-json-languageservice": "^3.0.12",
-    "vscode-languageserver-types": "^3.6.1",
+    "monaco-editor-core": "0.11.1",
+    "monaco-languages": "0.9.0",
+    "typescript": "2.7.2",
+    "vscode-json-languageservice": "3.0.12",
+    "vscode-languageserver-types": "3.6.1",
     "webpack": "^4.1.1",
     "webpack-cli": "^2.0.10"
   }

+ 5 - 0
scripts/copy.js

@@ -1,3 +1,8 @@
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
 const fs = require('fs');
 const path = require('path');
 

+ 4 - 0
scripts/release.js

@@ -1,4 +1,8 @@
 "use strict";
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
 exports.__esModule = true;
 var fs = require("fs");
 var ts = require("typescript");

+ 8 - 1
scripts/rmdir.js

@@ -1,8 +1,15 @@
+/*---------------------------------------------------------------------------------------------
+ *  Copyright (c) Microsoft Corporation. All rights reserved.
+ *  Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
 const fs = require('fs');
 const path = require('path');
 
 const target = path.join(process.cwd(), process.argv[2]);
-rmDir(target);
+if (fs.existsSync(target)) {
+	rmDir(target);
+}
 console.log(`Deleted ${process.argv[2]}`);
 
 function rmDir(dirPath) {

+ 1 - 2
scripts/webpack.js

@@ -25,5 +25,4 @@ exports.createWebpackConfig = function (isDev) {
 			})
 		],
 	};
-
-}
+};