@codecademy/codebytes 0.5.2-alpha.24dcce.0 → 0.5.2-alpha.2d5feb.0

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.
@@ -0,0 +1,6 @@
1
+ @codecademy/codebytes:build: cache hit, replaying output 17128a6c8d92d82d
2
+ @codecademy/codebytes:build: $ yarn build:clean && yarn build:compile && yarn build:types
3
+ @codecademy/codebytes:build: $ rm -rf dist
4
+ @codecademy/codebytes:build: $ babel ./src --out-dir ./dist --copy-files --extensions ".ts,.tsx"
5
+ @codecademy/codebytes:build: Successfully compiled 13 files with Babel (933ms).
6
+ @codecademy/codebytes:build: $ tsc --emitDeclarationOnly
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ### [0.5.2-alpha.24dcce.0](https://github.com/Codecademy/client-modules/compare/@codecademy/codebytes@0.5.1...@codecademy/codebytes@0.5.2-alpha.24dcce.0) (2022-01-31)
6
+ ### [0.5.2-alpha.2d5feb.0](https://github.com/Codecademy/client-modules/compare/@codecademy/codebytes@0.5.1...@codecademy/codebytes@0.5.2-alpha.2d5feb.0) (2022-02-01)
7
7
 
8
8
  **Note:** Version bump only for package @codecademy/codebytes
9
9
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/codebytes",
3
3
  "description": "Codebytes Code Editor",
4
- "version": "0.5.2-alpha.24dcce.0",
4
+ "version": "0.5.2-alpha.2d5feb.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "sideEffects": [
7
7
  "**/*.css",
@@ -23,7 +23,7 @@
23
23
  "@codecademy/gamut": "*",
24
24
  "@codecademy/gamut-icons": "*",
25
25
  "@codecademy/gamut-styles": "*",
26
- "@codecademy/tracking": "0.18.0",
26
+ "@codecademy/tracking": "0.18.1-alpha.2d5feb.0",
27
27
  "@codecademy/variance": "*",
28
28
  "@emotion/react": "^11.4.0",
29
29
  "@emotion/styled": "^11.3.0",
@@ -37,8 +37,7 @@
37
37
  "build:clean": "rm -rf dist",
38
38
  "build:types": "tsc --emitDeclarationOnly",
39
39
  "build": "yarn build:clean && yarn build:compile && yarn build:types",
40
- "build:watch": "yarn build && onchange ./src -- yarn build:compile && yarn build:types",
41
- "lernaBuildTask": "yarn build"
40
+ "build:watch": "yarn build && onchange ./src -- yarn build:compile && yarn build:types"
42
41
  },
43
42
  "license": "MIT",
44
43
  "devDependencies": {
@@ -50,5 +49,5 @@
50
49
  "publishConfig": {
51
50
  "access": "public"
52
51
  },
53
- "gitHead": "853dc344f733ccc53c264e9cdeda5d974e637394"
52
+ "gitHead": "7ac4ed47252cf5ecd3ec23a1dd44be1169e71228"
54
53
  }
package/src/consts.ts CHANGED
@@ -14,6 +14,10 @@ export const LanguageOptions = {
14
14
 
15
15
  export type LanguageOption = keyof typeof LanguageOptions;
16
16
 
17
+ export const validLanguages = Object.keys(LanguageOptions).filter(
18
+ (option) => !!option
19
+ ) as LanguageOption[];
20
+
17
21
  const cpp = `#include <iostream>
18
22
  int main() {
19
23
  std::cout << "Hello world!";
File without changes
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './codeByteEditor';
2
- export { LanguageOption, LanguageOptions } from './consts';