From f93cc1682af01677e026762d01f8e8f8db9e8882 Mon Sep 17 00:00:00 2001 From: Evan Wallace Date: Thu, 18 Mar 2021 22:31:24 -0700 Subject: [PATCH] update to "@unicode/unicode-13.0.0" (#1007) --- .github/workflows/ci.yml | 4 ++++ scripts/gen-unicode-table.js | 6 +++--- scripts/package-lock.json | 5 +++++ scripts/package.json | 1 + 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d17c7cf04ef..e238730fe33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,3 +105,7 @@ jobs: - name: Uglify Tests if: matrix.os == 'ubuntu-latest' run: make uglify + + - name: Check the unicode table generator + if: matrix.os == 'ubuntu-latest' + run: cd scripts && node gen-unicode-table.js diff --git a/scripts/gen-unicode-table.js b/scripts/gen-unicode-table.js index cb9b1c74dbb..6afbf6d383c 100644 --- a/scripts/gen-unicode-table.js +++ b/scripts/gen-unicode-table.js @@ -1,8 +1,8 @@ const fs = require('fs'); const path = require('path'); -const version = '13.0.0'; -const idStart = require(`unicode-${version}/Binary_Property/ID_Start/code-points`); -const idContinue = require(`unicode-${version}/Binary_Property/ID_Continue/code-points`); +const version = '@unicode/unicode-13.0.0'; +const idStart = require(`${version}/Binary_Property/ID_Start/code-points`); +const idContinue = require(`${version}/Binary_Property/ID_Continue/code-points`); function generateRangeTable(codePoints) { let lines = []; diff --git a/scripts/package-lock.json b/scripts/package-lock.json index 3d5632aef83..df167a0ea25 100644 --- a/scripts/package-lock.json +++ b/scripts/package-lock.json @@ -7,6 +7,11 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.6.tgz", "integrity": "sha512-6QlRuqsQ/Ox/aJEQWBEJG7A9+u7oSYl3mem/K8IzxXG/kAGbV1YPD9Bg9Zw3vyxC/YP+zONKwy8hGkSt1jxFMw==" }, + "@unicode/unicode-13.0.0": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@unicode/unicode-13.0.0/-/unicode-13.0.0-1.0.6.tgz", + "integrity": "sha512-ywSlML1wdeBSGH12b6PkblGtjzsQNMZ7+JlJj+eoPj0VuCeg52hcUTeVWfd4GmISU+zOQHWjNC6c0xmsIuVy8Q==" + }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", diff --git a/scripts/package.json b/scripts/package.json index f991968d475..32f0ca43023 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -1,6 +1,7 @@ { "dependencies": { "@types/node": "14.14.6", + "@unicode/unicode-13.0.0": "1.0.6", "fuse.js": "3.2.0", "js-yaml": "3.14.0", "react": "17.0.1",