typespec-vscode 0.52.0-dev.1 → 0.52.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typespec-vscode",
3
- "version": "0.52.0-dev.1",
3
+ "version": "0.52.0-dev.2",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Language Support for VS Code",
6
6
  "homepage": "https://microsoft.github.io/typespec",
@@ -21,8 +21,8 @@
21
21
  "categories": [
22
22
  "Programming Languages"
23
23
  ],
24
- "type": "commonjs",
25
- "main": "./extension-shim.js",
24
+ "type": "module",
25
+ "main": "./dist/src/extension.cjs",
26
26
  "engines": {
27
27
  "vscode": "^1.85.0"
28
28
  },
@@ -108,6 +108,7 @@
108
108
  "devDependencies": {
109
109
  "@rollup/plugin-commonjs": "~25.0.4",
110
110
  "@rollup/plugin-node-resolve": "~15.2.1",
111
+ "@rollup/plugin-typescript": "~11.1.5",
111
112
  "@types/mocha": "~10.0.6",
112
113
  "@types/node": "~18.11.9",
113
114
  "@types/vscode": "~1.85.0",
@@ -128,15 +129,14 @@
128
129
  "dependencies": {},
129
130
  "peerDependencies": {},
130
131
  "scripts": {
131
- "clean": "rimraf ./dist ./dist-dev ./temp",
132
- "build": "npm run compile && npm run rollup && npm run copy-tmlanguage && npm run generate-language-configuration && npm run generate-third-party-notices && npm run package-vsix",
133
- "compile": "tsc -p .",
134
- "watch": "tsc -p . --watch",
132
+ "clean": "rimraf ./dist ./temp",
133
+ "build": "npm run compile && npm run copy-tmlanguage && npm run generate-language-configuration && npm run generate-third-party-notices && npm run package-vsix",
134
+ "compile": "rollup --config rollup.config.ts --configPlugin typescript --failAfterWarnings 2>&1",
135
+ "watch": "rollup --config rollup.config.ts --configPlugin typescript --watch",
135
136
  "dogfood": "node scripts/dogfood.js",
136
137
  "copy-tmlanguage": "node scripts/copy-tmlanguage.js",
137
138
  "generate-language-configuration": "node scripts/generate-language-configuration.js",
138
139
  "generate-third-party-notices": "typespec-build-tool generate-third-party-notices",
139
- "rollup": "rollup --config --failAfterWarnings 2>&1",
140
140
  "package-vsix": "vsce package"
141
141
  }
142
142
  }
Binary file
package/extension-shim.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = require(
2
- process.env.TYPESPEC_DEVELOPMENT_MODE ? "./dist-dev/src/extension.js" : "./dist/src/extension.js"
3
- );