Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding type=module to package.json #974

Merged
merged 32 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b4c9517
feat: add `type=module` to `package.json`
wsuwt Sep 26, 2023
c1b012b
refactor: replace `glob-promise` with `glob`
wsuwt Sep 26, 2023
e4afe90
feat: converting theme-compiler to ESM
wsuwt Sep 28, 2023
6402d85
feat: converting scripts to ESM
wsuwt Sep 28, 2023
e66d69f
chore: reverts web-component-analyzer
wsuwt Oct 2, 2023
d6d50ee
fix: use commonjs module for web-component-analyzer
wsuwt Oct 3, 2023
216b53f
Merge branch 'v7' into feat/adding-type-module-to-package-json
wsuwt Oct 3, 2023
658c26d
chore: update dependencies
wsuwt Oct 3, 2023
f0669c8
Merge branch 'feat/adding-type-module-to-package-json' of https://git…
wsuwt Oct 3, 2023
87e71ba
test: fix interactive chart mock test data (#985)
wsuwt Oct 3, 2023
f676397
fix: use type module for create-efx
wsuwt Oct 6, 2023
b1748c0
chore: update chalk to latest version
wsuwt Oct 6, 2023
a01dd69
refactor: simplify create efx tsconfig
wsuwt Oct 6, 2023
6df6c1f
chore: update ts module target
wsuwt Oct 6, 2023
cef41ae
chore: update package-lock
wsuwt Oct 6, 2023
018113b
fix: replace __dirname with esm compatible syntax
wsuwt Oct 6, 2023
4406644
Merge remote-tracking branch 'origin/v7' into feat/adding-type-module…
wsuwt Oct 9, 2023
87e8697
Merge branch 'v7' into feat/adding-type-module-to-package-json
wsuwt Oct 9, 2023
e832872
fix: replace `demo-block` start command with `vite`
wsuwt Oct 10, 2023
6ddb0be
chore: remove `.mjs` from format command
wsuwt Oct 10, 2023
62e8ebb
fix: adding await to `isValidAPI()` function that returns a Promise
wsuwt Oct 10, 2023
9a5bd94
fix: adding await to `isValidAPI()` function that returns a Promise
wsuwt Oct 10, 2023
a476133
refactor: replace `for` loop with `for of`
wsuwt Oct 10, 2023
90c417e
refactor: replace IIFE with simple try catch and utilise `getJson()` …
wsuwt Oct 10, 2023
65725a7
refactor: simplify `getElementFiles()`
wsuwt Oct 10, 2023
f76f50e
fix: theme's `package.json` should be relative to current working dir…
wsuwt Oct 10, 2023
75895bc
refactor: remove `log()` out of try...catch block
wsuwt Oct 10, 2023
6c852d5
refactor: simplify URL creation
wattachai-lseg Oct 11, 2023
cf130ef
Merge remote-tracking branch 'origin/v7' into feat/adding-type-module…
wsuwt Oct 18, 2023
a91c68c
Merge branch 'feat/adding-type-module-to-package-json' of https://git…
wsuwt Oct 18, 2023
abeaad6
Merge branch 'v7' into feat/adding-type-module-to-package-json
wsuwt Oct 19, 2023
64deff8
Merge remote-tracking branch 'origin/v7' into feat/adding-type-module…
wsuwt Oct 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
2 changes: 1 addition & 1 deletion cli.mjs → cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'node:path';
import { hideBin } from 'yargs/helpers';
import yargs from 'yargs/yargs';

import { PACKAGES_ROOT, errorHandler, getJSON } from './scripts/helpers/esm.mjs';
import { PACKAGES_ROOT, errorHandler, getJSON } from './scripts/helpers/index.js';

const argvNoBin = hideBin(process.argv);
const argv = yargs(argvNoBin)
Expand Down
5 changes: 2 additions & 3 deletions documents/esbuild.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const fg = require('fast-glob');
const esbuild = require('esbuild');
import fg from 'fast-glob';
import esbuild from 'esbuild'

const DIST = 'dist/resources';

const OPTIONS = {
format: 'esm',
bundle: true,
Expand Down
3 changes: 2 additions & 1 deletion documents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@refinitiv-ui/docs",
"version": "7.5.3",
"private": true,
"type": "module",
"description": "Element Framework Documentation",
"engines": {
"node": ">=16.11.0",
Expand All @@ -11,7 +12,7 @@
"start:dev": "concurrently \"pandora src dist --watch\" \"serve dist -s\"",
"start": "serve dist -s",
"copy:resources": "cp src/_redirects dist/_redirects && cp src/_routes.json dist/_routes.json && cp -r resources dist/resources",
"prebuild": "rm -rf build && nx run @refinitiv-ui/elements:api-analyzer && node ./scripts/element.injector.mjs",
"prebuild": "rm -rf build && nx run @refinitiv-ui/elements:api-analyzer && node ./scripts/element.injector.js",
"build": "pandora build dist --clean --logo=./resources/images/ef-logo.svg",
"postbuild": "npm run copy:resources && npm run bundle",
"bundle": "node esbuild.js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'node:path';
import fs from 'node:fs';
import fg from 'fast-glob';
import chalk from 'chalk';
import { Source, Build } from './paths.mjs';
import { Source, Build } from './paths.js';

const PACKAGE_ROOT = '../node_modules/@refinitiv-ui/elements/lib';
const ELEMENT_API_FILENAME = 'custom-elements.md';
Expand Down
2 changes: 1 addition & 1 deletion documents/scripts/paths.mjs → documents/scripts/paths.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'node:path';
import { fileDirName } from '../../scripts/helpers/esm.mjs';
import { fileDirName } from '../../scripts/helpers/index.js';

const { dirName } = fileDirName(import.meta);
const root = path.resolve(dirName, '../');
Expand Down
Loading
Loading